JDK-8230101 : GC test concurrent/lp50yp0rp30mr70st0 failed due to IllegalArgumentException
  • Type: Bug
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 14
  • Priority: P4
  • Status: Resolved
  • Resolution: Duplicate
  • OS: linux
  • CPU: x86_64
  • Submitted: 2019-08-23
  • Updated: 2019-11-20
  • Resolved: 2019-11-20
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
The following test failed due to IllegalArgumentException

vmTestbase/vm/gc/concurrent/lp50yp0rp30mr70st0/TestDescription.java

Here's a snippet from the log file:

#section:main
----------messages:(4/400)----------
command: main -XX:-UseGCOverheadLimit vm.gc.concurrent.Concurrent -lp 50 -yp 0 -rp 30 -mr 70 -st 0 -ms high -gp randomString -gp1 nonbranchyTree(low)
reason: User specified action: run main/othervm -XX:-UseGCOverheadLimit vm.gc.concurrent.Concurrent -lp 50 -yp 0 -rp 30 -mr 70 -st 0 -ms high -gp randomString -gp1 nonbranchyTree(low) 
Mode: othervm [/othervm specified]
elapsed time (seconds): 1.072
----------configuration:(0/0)----------
----------System.out:(31/1635)----------
Stress time: 30 seconds
Stress iterations factor: 1
Stress threads factor: 1
Stress runs factor: 1
Max memory: 3713531904
Sleep time: 500
Iterations: 0
Number of threads: 16
Seed: 1566555738664
Run GC thread: false
Run mem diag thread: false
Run forever: false
The expected forest paramteres: tree height = 10 number of trees = 160 size = 6093
java.lang.IllegalArgumentException: used = 1344763328 should be <= committed = 1039925248
	at java.management/java.lang.management.MemoryUsage.<init>(MemoryUsage.java:162)
	at java.management/sun.management.MemoryImpl.getMemoryUsage0(Native Method)
	at java.management/sun.management.MemoryImpl.getHeapMemoryUsage(MemoryImpl.java:71)
	at vm.gc.concurrent.Concurrent.getPercentInfoByMBeans(Concurrent.java:315)
	at vm.gc.concurrent.Forest.createForest(Concurrent.java:93)
	at vm.gc.concurrent.Concurrent.init(Concurrent.java:343)
	at vm.gc.concurrent.Concurrent.run(Concurrent.java:366)
	at nsk.share.test.Tests$TestRunner.execute(Tests.java:82)
	at nsk.share.test.Tests$TestRunner.run(Tests.java:96)
	at nsk.share.gc.GC.runTest(GC.java:114)
	at vm.gc.concurrent.Concurrent.main(Concurrent.java:403)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
	at java.base/java.lang.Thread.run(Thread.java:830)
----------System.err:(17/1095)----------
Java HotSpot(TM) 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
nsk.share.TestFailure: Test exit code: 97
	at nsk.share.test.Tests$TestRunner.execute(Tests.java:90)
	at nsk.share.test.Tests$TestRunner.run(Tests.java:96)
	at nsk.share.gc.GC.runTest(GC.java:114)
	at vm.gc.concurrent.Concurrent.main(Concurrent.java:403)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
	at java.base/java.lang.Thread.run(Thread.java:830)

JavaTest Message: Test threw exception: nsk.share.TestFailure: Test exit code: 97
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: nsk.share.TestFailure: Test exit code: 97
----------rerun:(34/6685)*----------
Comments
Reclosing as a duplicate of JDK-8232365.
20-11-2019

Only bug with associated changesets should be closed as "Fixed".
20-11-2019

Should be fixed by the removal of CMS
20-11-2019

Potentially caused by JDK-8229420
29-08-2019

Have a similar failure in another test: vmTestbase/vm/gc/concurrent/lp50yp0rp0mr30st300/TestDescription.java Here's a snippet of the log file: #section:main ----------messages:(4/427)---------- command: main -XX:-UseGCOverheadLimit vm.gc.concurrent.Concurrent -lp 50 -yp 0 -rp 0 -mr 30 -st 300 -ms high -gp twofields(randomString) -gp1 nonbranchyTree(low) reason: User specified action: run main/othervm -XX:-UseGCOverheadLimit vm.gc.concurrent.Concurrent -lp 50 -yp 0 -rp 0 -mr 30 -st 300 -ms high -gp twofields(randomString) -gp1 nonbranchyTree(low) Mode: othervm [/othervm specified] elapsed time (seconds): 1.66 ----------configuration:(0/0)---------- ----------System.out:(31/1665)---------- Stress time: 30 seconds Stress iterations factor: 1 Stress threads factor: 1 Stress runs factor: 1 Max memory: 1992884224 Sleep time: 500 Iterations: 0 Number of threads: 32 Seed: 1566586049772 Run GC thread: false Run mem diag thread: false Run forever: false The expected forest paramteres: tree height = 9 number of trees = 288 size = 4464 java.lang.IllegalArgumentException: used = 1450043240 should be <= committed = 1117388800 at java.management/java.lang.management.MemoryUsage.<init>(MemoryUsage.java:162) at java.management/sun.management.MemoryImpl.getMemoryUsage0(Native Method) at java.management/sun.management.MemoryImpl.getHeapMemoryUsage(MemoryImpl.java:71) at vm.gc.concurrent.Concurrent.getPercentInfoByMBeans(Concurrent.java:315) at vm.gc.concurrent.Forest.createForest(Concurrent.java:93) at vm.gc.concurrent.Concurrent.init(Concurrent.java:343) at vm.gc.concurrent.Concurrent.run(Concurrent.java:366) at nsk.share.test.Tests$TestRunner.execute(Tests.java:82) at nsk.share.test.Tests$TestRunner.run(Tests.java:96) at nsk.share.gc.GC.runTest(GC.java:114) at vm.gc.concurrent.Concurrent.main(Concurrent.java:403) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:564) at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127) at java.base/java.lang.Thread.run(Thread.java:830) ----------System.err:(17/1112)---------- Java HotSpot(TM) 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release. nsk.share.TestFailure: Test exit code: 97 at nsk.share.test.Tests$TestRunner.execute(Tests.java:90) at nsk.share.test.Tests$TestRunner.run(Tests.java:96) at nsk.share.gc.GC.runTest(GC.java:114) at vm.gc.concurrent.Concurrent.main(Concurrent.java:403) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:564) at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127) at java.base/java.lang.Thread.run(Thread.java:830) JavaTest Message: Test threw exception: nsk.share.TestFailure: Test exit code: 97 JavaTest Message: shutting down test STATUS:Failed.`main' threw exception: nsk.share.TestFailure: Test exit code: 97 ----------rerun:(42/5793)*----------
23-08-2019

might be CMS-specific might be a test-bug might be a test failure triggered by JDK-8221994
23-08-2019