LoadRunner: OutOfMemoryError: Java Heap Space (583 Views)
Reply
Occasional Visitor
RajaRK
Posts: 1
Registered: ‎01-20-2014
Message 1 of 1 (583 Views)

LoadRunner: OutOfMemoryError: Java Heap Space

Hi All,

 

I have created a Webservice script and it downloads 2.5 MB files. When I run this script in controller, I am getting the below error message after a particular number of successful ransactions.

 

Error: InvokeMethod failure: java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space

 

I increased the JVM heap max size by adding -Xmx480M in Run Time settings --> Additional VM Parameters. Even then, only the number of successful transactions is increased but later I start receiving only the above mentioned error. It seems like the requests are not at all sent from the Controller, so the number of passed and failed transactions dont increase. Also even if I reduce the Vusers count, I get this error after that particular number of transactions. If I increase the JVM Max size above 480M, i am getting ACCESS VIOLATION error

 

i supsect if memory allocated during previous iterations are not getting released and be available for subsequent itearations. If that is the case, do let me know if there is a code or function to be inserted in the script to release the memory. If not, please let me know if you have any solution for this problem

 

Regards,

Raja R K

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.