Forum Discussion

JShah's avatar
JShah
Contributor
13 years ago

ERROR [SoapUIProLoadTestRunner] java.lang.OutOfMemoryError:

Hi,

When I Run the Load Tests from Command line for 50000 total runs with 50 Threads
i got the following error message

and the load test report PDF generated is also not opening.



10:44:15,735 INFO [SoapUIProLoadTestRunner] LoadTest [LoadTest 1] progress: 0.9
9998, 1
10:44:16,735 INFO [SoapUIProLoadTestRunner] LoadTest [LoadTest 1] finished with
status FINISHED
10:44:16,735 INFO [SoapUIProLoadTestRunner] Exporting log and statistics for Lo
adTest [LoadTest 1]
10:44:16,864 INFO [SoapUIProLoadTestRunner] Exported 102 log items to [C:\Users
\randell\Desktop\loadtest reports\LoadTest_1-log.txt]
10:44:17,009 INFO [SoapUIProLoadTestRunner] Exported 100 error results
10:44:17,020 INFO [SoapUIProLoadTestRunner] Exported 12 statistics to [C:\Users
\randell\Desktop\loadtest reports\LoadTest_1-statistics.txt]
10:47:42,723 ERROR [SoapUIProLoadTestRunner] java.lang.OutOfMemoryError: Java he
ap space
10:47:42,723 ERROR [SoapUI] An error occured [Java heap space], see error log fo
r details
java.lang.OutOfMemoryError: Java heap space
at com.lowagie.text.pdf.ByteBuffer.toByteArray(Unknown Source)
at com.lowagie.text.pdf.PdfContentByte.toPdf(Unknown Source)
at com.lowagie.text.pdf.PdfFormXObject.<init>(Unknown Source)
at com.lowagie.text.pdf.PdfTemplate.getFormXObject(Unknown Source)
at com.lowagie.text.pdf.PdfWriter.addSharedObjectsToBody(Unknown Source)


at com.lowagie.text.pdf.PdfWriter.close(Unknown Source)
at com.lowagie.text.pdf.PdfDocument.close(Unknown Source)
at com.lowagie.text.Document.close(Unknown Source)
at net.sf.jasperreports.engine.export.JRPdfExporter.exportReportToStream
(JRPdfExporter.java:645)
at net.sf.jasperreports.engine.export.JRPdfExporter.exportReport(JRPdfEx
porter.java:385)
at com.eviware.soapui.reporting.engine.jasper.GenerateJasperReport.a(Sou
rceFile:407)
at com.eviware.soapui.reporting.engine.jasper.GenerateJasperReport.gener
ateJasperReport(SourceFile:331)
at com.eviware.soapui.reporting.engine.jasper.JasperReportEngine$Generat
ableJasperReport.generate(SourceFile:123)
at com.eviware.soapui.SoapUIProLoadTestRunner.runWsdlLoadTest(SourceFile
:99)
at com.eviware.soapui.tools.SoapUILoadTestRunner.runTestCase(SoapUILoadT
estRunner.java:360)
at com.eviware.soapui.tools.SoapUILoadTestRunner.runSuite(SoapUILoadTest
Runner.java:332)
at com.eviware.soapui.tools.SoapUILoadTestRunner.runRunner(SoapUILoadTes
tRunner.java:266)
at com.eviware.soapui.tools.AbstractSoapUIRunner.run(AbstractSoapUIRunne
r.java:151)
at com.eviware.soapui.tools.AbstractSoapUIRunner.runFromCommandLine(Abst
ractSoapUIRunner.java:86)
at com.eviware.soapui.SoapUIProLoadTestRunner.main(SourceFile:35)


C:\Program Files\eviware\soapUI-Pro-4.0.0\bin>


Please check this one

Thanks,
krish
  • Hi,

    In my case I have used,soapui-pro batch file

    rem JVM parameters, modify as appropriate
    set JAVA_OPTS=-Xms128m -Xmx1024m -Dsoapui.properties=soapui.properties -Dgroovy.source.encoding=iso-8859-1 "-Dsoapui.home=%SOAPUI_HOME%\"


    what I needs to change
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    You can try changing the -Xmx1024m value, for instance setting it to -Xmx1536m and see if that makes a difference. If you need to go even higher you may have to run a 64-bit installation of soapUI, as a 32-bit JVM won't let you add much more memory than that.

    Regards,
    Dain
    SmartBear Software
  • I did not find soapui.bat or soapui.sh

    file to change the java_opts arguements

    PFA of my soapUI pro4.0.0 files screenshot
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi,

    either edit the .vmoptions file (if you are using the executable) or the soapui-pro.bat file - these contain the memory settings.

    regards!

    /Ole
    SmartBear Software