The following test failed in the JDK20 CI:
serviceability/tmtools/jstat/GcTest01.java
Here's a snippet from the log file:
#section:main
----------messages:(7/388)----------
command: main -XX:+UsePerfData -Xmx128M GcTest01
reason: User specified action: run main/othervm -XX:+UsePerfData -Xmx128M GcTest01
started: Thu Sep 08 22:45:45 UTC 2022
Mode: othervm [/othervm specified]
Additional options from @modules: --add-modules java.base --add-exports java.base/jdk.internal.misc=ALL-UNNAMED
finished: Thu Sep 08 22:46:37 UTC 2022
elapsed time (seconds): 52.256
----------configuration:(4/111)----------
Boot Layer
add modules: java.base
add exports: java.base/jdk.internal.misc ALL-UNNAMED
----------System.out:(7/846)----------
[2022-09-08T22:46:24.074102237Z] started process 2823120 [/opt/mach5/mesos/work_dir/jib-master/install/jdk-20+14-949/linux-x64-debug.jdk/jdk-20/fastdebug/bin/jstat, -gc, 2822687] with out/err redirected to './out.3576055136421552022.txt' and './err.3576055136421552022.txt'
[2022-09-08T22:46:29.845592598Z] process 2823120 finished with exit code = 0
Process output: Exit code: 0
stdout: S0C S1C S0U S1U EC EU OC OU MC MU CCSC CCSU YGC YGCT FGC FGCT CGC CGCT GCT
0.0 0.0 0.0 0.0 25600.0 4096.0 105472.0 0.0 0.0 0.0 0.0 0.0 0 0.000 0 0.000 0 0.000 0.000
stderr:
Committed size of the pool 'Eden Space' is 25600
----------System.err:(12/912)----------
java.lang.RuntimeException: Error in the percent calculation (eden size: 25600, heap size: 17408, calculated eden percent: 1.4705882)
at utils.GcProvoker.provokeGc(GcProvoker.java:66)
at GcTest01.main(GcTest01.java:58)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:578)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:125)
at java.base/java.lang.Thread.run(Thread.java:1589)
JavaTest Message: Test threw exception: java.lang.RuntimeException: Error in the percent calculation (eden size: 25600, heap size: 17408, calculated eden percent: 1.4705882)
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Error in the percent calculation (eden size: 25600, heap size: 17408, calculated eden percent: 1.4705882)
----------rerun:(48/8663)*----------
serviceability/tmtools/jstat/GcTest01.java
Here's a snippet from the log file:
#section:main
----------messages:(7/388)----------
command: main -XX:+UsePerfData -Xmx128M GcTest01
reason: User specified action: run main/othervm -XX:+UsePerfData -Xmx128M GcTest01
started: Thu Sep 08 22:45:45 UTC 2022
Mode: othervm [/othervm specified]
Additional options from @modules: --add-modules java.base --add-exports java.base/jdk.internal.misc=ALL-UNNAMED
finished: Thu Sep 08 22:46:37 UTC 2022
elapsed time (seconds): 52.256
----------configuration:(4/111)----------
Boot Layer
add modules: java.base
add exports: java.base/jdk.internal.misc ALL-UNNAMED
----------System.out:(7/846)----------
[2022-09-08T22:46:24.074102237Z] started process 2823120 [/opt/mach5/mesos/work_dir/jib-master/install/jdk-20+14-949/linux-x64-debug.jdk/jdk-20/fastdebug/bin/jstat, -gc, 2822687] with out/err redirected to './out.3576055136421552022.txt' and './err.3576055136421552022.txt'
[2022-09-08T22:46:29.845592598Z] process 2823120 finished with exit code = 0
Process output: Exit code: 0
stdout: S0C S1C S0U S1U EC EU OC OU MC MU CCSC CCSU YGC YGCT FGC FGCT CGC CGCT GCT
0.0 0.0 0.0 0.0 25600.0 4096.0 105472.0 0.0 0.0 0.0 0.0 0.0 0 0.000 0 0.000 0 0.000 0.000
stderr:
Committed size of the pool 'Eden Space' is 25600
----------System.err:(12/912)----------
java.lang.RuntimeException: Error in the percent calculation (eden size: 25600, heap size: 17408, calculated eden percent: 1.4705882)
at utils.GcProvoker.provokeGc(GcProvoker.java:66)
at GcTest01.main(GcTest01.java:58)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:578)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:125)
at java.base/java.lang.Thread.run(Thread.java:1589)
JavaTest Message: Test threw exception: java.lang.RuntimeException: Error in the percent calculation (eden size: 25600, heap size: 17408, calculated eden percent: 1.4705882)
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Error in the percent calculation (eden size: 25600, heap size: 17408, calculated eden percent: 1.4705882)
----------rerun:(48/8663)*----------
- relates to
-
JDK-8293218 serviceability/tmtools/jstat/GcNewTest.java fails with "Error in the percent calculation"
-
- Resolved
-