JDK-8078582 : java/lang/Runtime/exec/LotsOfOutput.java fails intermittently with Process consumes memory
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 9
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2015-04-24
  • Updated: 2024-03-05
  • Resolved: 2015-05-20
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8 JDK 9
8u421Fixed 9 b66Fixed
Related Reports
Duplicate :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
java/lang/Runtime/exec/LotsOfOutput.java fails intermittently with Process consumes memory

This run is on Solaris x64, run with jtreg options:
-concurrency:10  -J-Xmx512m -vmoption:-Xmx512m 

----------System.err:(12/618)----------
java.lang.Exception: Process consumes memory.
	at LotsOfOutput.main(LotsOfOutput.java:45)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:502)
	at com.sun.javatest.regtest.agent.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:218)
	at java.lang.Thread.run(Thread.java:745)

JavaTest Message: Test threw exception: java.lang.Exception
JavaTest Message: shutting down test



Comments
URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/ad4748158d5d User: lana Date: 2015-05-27 18:31:20 +0000
27-05-2015

URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/ad4748158d5d User: rriggs Date: 2015-05-20 15:19:14 +0000
20-05-2015

The threshold allowed by the test (1000000) is smaller than the minimum increment of JVM memory expansion (1048576). It is likely that some small allocation causes the VM to expand total memory. The threshold flags any increase as a failure. The threshold should be increased to 2 Mb and the test should run a full set of iterations (1 second) before reporting a failure.
19-05-2015