Forum Discussion

Vijaysharma's avatar
Vijaysharma
New Contributor
7 years ago
Solved

I am getting java memory error while executing test case

While working with SOAP UI open source version I am getting one error related to memory again and again.Please help me.
  • PramodYadav's avatar
    PramodYadav
    7 years ago

    No worries. What the link essentially says is : Go to bin -> soapui.bat file. , edit in say notepad++, find the below line and change the value of Xmx****m to a higher value (see below):

     

    set JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx256m -Dsoapui.properties=soapui.properties

    ->to higher values for the max allocated size, for example:

    set JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx2048m -Dsoapui.properties=soapui.properties

     

    NOTE: I have a system with 8GB ram, so the max I can go is till 4GB (4096=1024*4). You can change the settings based on your machine configuration.

     

    Hope this helps!