cancel
Showing results for 
Search instead for 
Did you mean: 

java.lang.OutOfMemoryError: Java heap space error?

Occasional Contributor

Re: java.lang.OutOfMemoryError: Java heap space error?

In windows, I changed it to 12GB out of 16GB RAM.

Community Hero

Re: java.lang.OutOfMemoryError: Java heap space error?

Okay, just making sure I understand which OS and memory configuration we're troubleshooting there. Can you open Task Manager on windows and watch memory increase as it goes? Running hundreds of tests should not necessarily cause this sort of problem. One thing that comes to mind is to ensure you've set your memory optimizations per this article.

 

I would set every test case's settings to a Max Results of 0 and to discard successful test steps results to save memory.

 

Another piece you can try is to put in a groovy script test step / assertion that does the following code. This will force ReadyAPI to do a garbage collection. This has helped me in some instances when ReadyAPI starts using a lot of memory. 

 

System.gc();

Unfortunately, without knowing what your tests encompass or the size of data in the request and/or response, it is difficult to troubleshoot. One option might be to open a support ticket, especially if the software continues to crash with that error. 




---

Click the Accept as Solution button if my answer has helped, and remember to give kudos where appropriate too!
Moderator

Re: java.lang.OutOfMemoryError: Java heap space error?

Hi all,

 

And thank you everyone who participated in the discussion.

 

@NewAutoTester, were the suggestions above helpful? If your question was answered, could you please click the Accept as Solution button below the reply that helped you?

Or, in case you created a support case, is it possible for you to share the updates with the Community here?
Thank you in advance!

 

 


Olga Terentieva
SmartBear Assistant Community Manager

New Here?
Join us and watch the welcome video:
Top Kudoed Authors