Forum Discussion

Michael_Heinze's avatar
Michael_Heinze
Contributor
16 years ago

testrunner not ended when out of memory error ocurs

hi,

i am using testrunner in continous integration nightly build. but when an out of memory error ocurs the testrunner doesnt end and the ci doesnt go on running the next test project.

is there a setting i could use to end the testrunner in case of out of memory error?

regards,
Chris

3 Replies

  • Hi Chris,

    hmm.. do you have a stacktrace? What happens, does it try to continue?

    regards!

    /Ole
    eviware.com
  • Hi Ole,

    here is the stack:

    Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
    at java.util.Arrays.copyOf(Arrays.java:2882)
    at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100)
    at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390)
    at java.lang.StringBuffer.append(StringBuffer.java:224)
    at org.apache.log4j.helpers.PatternParser$LiteralPatternConverter.format(PatternParser.java:420)
    at org.apache.log4j.PatternLayout.format(PatternLayout.java:503)
    at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:301)
    at org.apache.log4j.RollingFileAppender.subAppend(RollingFileAppender.java:236)
    at org.apache.log4j.WriterAppender.append(WriterAppender.java:159)
    at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:230)
    at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:65)
    at org.apache.log4j.Category.callAppenders(Category.java:203)
    at org.apache.log4j.Category.forcedLog(Category.java:388)
    at org.apache.log4j.Category.error(Category.java:319)
    at com.eviware.soapui.SoapUI.logError(SoapUI.java:973)
    at com.eviware.soapui.SoapUI.logError(SoapUI.java:959)
    at com.eviware.soapui.tools.AbstractSoapUIRunner.runFromCommandLine(AbstractSoapUIRunner.java:89)
    at com.eviware.soapui.SoapUIProTestCaseRunner.main(SourceFile:48)

    what happens is that it just stops executing until i manually end the project in the ci tool.

    regards,
    Chris
  • Hi,

    ok.. do you need the error-log file from this run? If not, please try commenting out the FileAppender in the soapui-log4j.xml file.. (which seems to run into this.. )

    I've also added a forced exit if this occurs when running from the command-line.

    regards!

    /Ole
    eviware.com