18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
Out of Memory Exception
When i run the script, at a particular step i am getting the following exception. Please help to understand the cause of the exception and solve this.
Thanks
Ragu
Exception in thread "Thread-24" java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Unknown Source)
at java.lang.AbstractStringBuilder.expandCapacity(Unknown Source)
at java.lang.AbstractStringBuilder.append(Unknown Source)
at java.lang.StringBuffer.append(Unknown Source)
at net.sf.sahi.RemoteRequestProcessor.handShakeExternalProxy(RemoteReque
stProcessor.java:156)
at net.sf.sahi.RemoteRequestProcessor.getTunnelledSecureSocket(RemoteReq
uestProcessor.java:145)
at net.sf.sahi.RemoteRequestProcessor.getSSLSocketToHost(RemoteRequestPr
ocessor.java:123)
at net.sf.sahi.RemoteRequestProcessor.getSocketToHost(RemoteRequestProce
ssor.java:115)
at net.sf.sahi.RemoteRequestProcessor.processHttp(RemoteRequestProcessor
.java:71)
at net.sf.sahi.RemoteRequestProcessor.processHttp(RemoteRequestProcessor
.java:64)
at net.sf.sahi.ProxyProcessor.processAsProxy(ProxyProcessor.java:118)
at net.sf.sahi.ProxyProcessor.run(ProxyProcessor.java:78)
at net.sf.sahi.ProxyProcessor.processConnect(ProxyProcessor.java:198)
at net.sf.sahi.ProxyProcessor.processAsProxy(ProxyProcessor.java:110)
at net.sf.sahi.ProxyProcessor.run(ProxyProcessor.java:78)
at java.lang.Thread.run(Unknown Source)
Thanks
Ragu
Comments
Make sure
ext.https.proxy.enable=false
or
ext.https.proxy.enable=true
but
ext.https.proxy.host port are pointing to your external proxy and not localhost 9999