Ask a Question

Best value for -XX:MaxPerSize for a 8GB Ram Laptop


Best value for -XX:MaxPerSize for a 8GB Ram Laptop



I have several test suites in SoapUI Pro that includes groovy scripts, selenium webdriver stuff, loopsource etc. I started seeing the below error 


ERROR [errorlog] java.lang.OutOfMemoryError: PermGen space
java.lang.OutOfMemoryError: PermGen space


I have Windows 7 laptop with 8 GB of Ram. Currently I have the below setting in SoapUI.bat file


set JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx4096m -XX:MaxPermSize=128m

So I have two questions:


1- Should I make the -XX:MaxPermSize to 4096m as well considering I have 8 GB of Ram..??  


2- Also in soapUI-Pro-5.2.0.vmoptions fie, I have -Xms1000m. Do I need to change that and match it with what I have in my soapUI.bat file which is -Xms4096m??

SmartBear Alumni (Retired)

Hi Muhammad,


Thank you for your post. Change the the -XX:MaxPermSize parameter to a larger number such as -XX:MaxPermSize=256m or


Java Virtual Machine Parameters:


Do you use SoapUI 5.2.0 open source? I would recommend using the latest version of ReadyAPI 2.1.0 which can be downloaded from:

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Showing results for 
Search instead for 
Did you mean: