-
Bug
-
Resolution: Fixed
-
P3
-
18
-
b24
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8281456 | 17.0.4-oracle | Adithya Haradi Gopal | P3 | Resolved | Fixed | b01 |
JDK-8283359 | 17.0.4 | Goetz Lindenmaier | P3 | Resolved | Fixed | b01 |
JDK-8321501 | 11.0.23-oracle | Adithya Haradi Gopal | P3 | Resolved | Fixed | b01 |
JDK-8323969 | 11.0.23 | Andrew Lu | P3 | Resolved | Fixed | b01 |
$ CONF=linux-x86_64-server-fastdebug make test TEST=gc/TestSystemGC.java TEST_VM_OPTS="-XX:+UseZGC"
...
STDOUT:
[0.026s][error][gc] Failed to commit memory (Not enough space)
[0.026s][error][gc] Failed to commit memory (Not enough space)
[0.026s][error][gc] Failed to commit memory (Not enough space)
[0.026s][error][gc] Failed to commit memory (Not enough space)
[0.026s][error][gc] Forced to lower max Java heap size from 1006M(100%) to 784M(78%)
[0.026s][error][gc] Failed to allocate initial Java heap (1006M)
STDERR:
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Started with
The system where it fails has 1G hugetlbfs configured:
HugePages_Total: 512
HugePages_Free: 512
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
Hugetlb: 1048576 kB
This looks enough for G1 and other GCs to work, but apparently not for ZGC. Adding -Xmx128m makes the test pass with ZGC.
- backported by
-
JDK-8281456 gc/TestSystemGC.java large pages subtest fails with ZGC
-
- Resolved
-
-
JDK-8283359 gc/TestSystemGC.java large pages subtest fails with ZGC
-
- Resolved
-
-
JDK-8321501 gc/TestSystemGC.java large pages subtest fails with ZGC
-
- Resolved
-
-
JDK-8323969 gc/TestSystemGC.java large pages subtest fails with ZGC
-
- Resolved
-
- relates to
-
JDK-8269077 TestSystemGC uses "require vm.gc.G1" for large pages subtest
-
- Resolved
-
- links to
-
Commit openjdk/jdk11u-dev/cc6fab36
-
Commit openjdk/jdk17u-dev/32148d26
-
Commit openjdk/jdk/91bb0d65
-
Review openjdk/jdk11u-dev/2442
-
Review openjdk/jdk17u-dev/261
-
Review openjdk/jdk/6310