18 January 2026:


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

cragucragu Members
edited September 2009 in Sahi - Open Source
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.

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

  • narayannarayan Administrators
    Can you show what your https (ext.https.proxy.*) settings in sahi.properties are? I think you are pointing back to localhost 9999 in your sahi.properties.

    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
Sign In or Register to comment.