Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » RCP Testing Tool » [SOLVED] Exception in thread "Output Stream Monitor" java.lang.OutOfMemoryError: Java heap(OutOfMemoryError Java heap space)
[SOLVED] Exception in thread "Output Stream Monitor" java.lang.OutOfMemoryError: Java heap [message #1711459] Fri, 16 October 2015 09:38 Go to next message
Hic LA is currently offline Hic LAFriend
Messages: 28
Registered: July 2015
Junior Member
Hi,
I have just updated my testing environment to use RCPTT 2.0.1 and now I am getting an OutOfMemory error when running some heavyweight test suite. It runs under Java 8 32bits.
It seems that if fails more or less after running 20 test cases. In other test suites of different type, I have more than 30 but they do not fail because of heap memory.
You can see in the following error log that it was consuming less than 200mb. Maybe it is related to something done with Arrays.

[java] Testcase Artifacts:124
[java] AUT-0:Launching
[java] AUT-0:Product:
[java] AUT-0:Application: org.eclipse.ui.ide.workbench
[java] AUT-0:Architecture: x86
[java] 32bit arch is selected because AUT uses launcher library
[java] "plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.300.v20150527-1151" specified in config file: MyApp.ini
[java] C:\Jenkins\jobs\workspace\aut-MyApp: AUT arguments: -os ${target.os} -arch ${target.arch} -consoleLog
[java] C:\Jenkins\jobs\workspace\aut-MyApp: AUT VM arguments: -Dosgi.requiredJavaVersion=1.8 -Xms512m -Xmx1024m -Djava.net.preferIPv4Stack=true -XX:MaxPermSize=512m -Dlogback.configurationFile=./configuration/logback.xml -DWNStandalone=true -DWNShowNewWorkspaceWizardAtStartUp=false -Djava.util.Arrays.useLegacyMergeSort=true -Dcom.sun.management.jmxremote.port=7777 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false
...
...
[java] Used memory: 182.4MB
[java] Exception in thread "Output Stream Monitor" java.lang.OutOfMemoryError: Java heap space
[java] at java.util.Arrays.copyOf(Arrays.java:3332)
[java] at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:137)
[java] at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:121)
[java] at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:421)
[java] at java.lang.StringBuilder.append(StringBuilder.java:136)
[java] at org.eclipse.rcptt.internal.launching.aut.ConsoleOutputListener$1.streamAppended(ConsoleOutputListener.java:38)
[java] at org.eclipse.debug.internal.core.OutputStreamMonitor$ContentNotifier.run(OutputStreamMonitor.java:267)
[java] at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
[java] at org.eclipse.debug.internal.core.OutputStreamMonitor$ContentNotifier.notifyAppend(OutputStreamMonitor.java:278)
[java] at org.eclipse.debug.internal.core.OutputStreamMonitor.fireStreamAppended(OutputStreamMonitor.java:118)
[java] at org.eclipse.debug.internal.core.OutputStreamMonitor.read(OutputStreamMonitor.java:159)
[java] at org.eclipse.debug.internal.core.OutputStreamMonitor.access$1(OutputStreamMonitor.java:137)
[java] at org.eclipse.debug.internal.core.OutputStreamMonitor$1.run(OutputStreamMonitor.java:212)
[java] at java.lang.Thread.run(Thread.java:745)

Does anyone have any idea?
Thank you.

[Updated on: Mon, 19 October 2015 02:17] by Moderator

Report message to a moderator

Re: Exception in thread "Output Stream Monitor" java.lang.OutOfMemoryError: Java heap spac [message #1711479 is a reply to message #1711459] Fri, 16 October 2015 11:21 Go to previous messageGo to next message
Markus Manck is currently offline Markus ManckFriend
Messages: 34
Registered: June 2015
Member
Hi,

I can offer no help on the cause of the additional memory consumption, but maybe changing the memory settings of the runner not the AUT may avoid the exception.

The runners VM settings can be changed in the pom.xml by adding the subelements as below to your configuration element.

<runner>
   <vmArgs>
       <vmArg>yourarg</vmArg>
   </vmArgs>
<runner>


This helped me for memory extensive test cases.

Re: Exception in thread "Output Stream Monitor" java.lang.OutOfMemoryError: Java heap spac [message #1711510 is a reply to message #1711479] Fri, 16 October 2015 14:04 Go to previous message
Hic LA is currently offline Hic LAFriend
Messages: 28
Registered: July 2015
Junior Member
Thank you for your support.
It seems is working fine now. We have assigned more memory for both AUT and Test Runner.
Thanks
Previous Topic:Problem first test with Maven
Next Topic:#Tool to transform get-item in global variables
Goto Forum:
  


Current Time: Tue Apr 16 06:08:18 GMT 2024

Powered by FUDForum. Page generated in 0.28263 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top