Skip to content

Commit f04bc70

Browse files
kofemannkhys95
authored andcommitted
jvm: drop UseCompressedOops JVM option
Motivation: Starting java7, the UseCompressedOops is dynamically controed by heap size. ``` $ java -Xmx32g -XX:+PrintFlagsFinal 2>/dev/null | grep UseCompressedOops bool UseCompressedOops = false {product lp64_product} {default} $ java -Xmx28g -XX:+PrintFlagsFinal 2>/dev/null | grep UseCompressedOops bool UseCompressedOops = true {product lp64_product} {ergonomic} ``` The mismatch between UseCompressedOops endup with error: ``` OpenJDK 64-Bit Server VM warning: Max heap size too large for Compressed Oops ***** WARNING! INCORRECT SYSTEM CONFIGURATION DETECTED! ***** The system limit on number of memory mappings per process might be too low for the given [gc] max Java heap size (40960M). Please adjust /proc/sys/vm/max_map_count to allow for at [gc] least 73728 mappings (current limit is 65530). Continuing execution with the current ``` Modification: drop UseCompressedOops JVM option from defaults. Result: correct behavior on JVMs with large heap Acked-by: Lea Morschel Target: master Require-book: no Require-notes: yes (cherry picked from commit 59ea69f) Signed-off-by: Tigran Mkrtchyan <[email protected]>
1 parent 6d31a13 commit f04bc70

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

skel/share/defaults/dcache.properties

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,6 @@ dcache.log.qos.max-history=30
198198
-XX:HeapDumpPath=${dcache.java.oom.file} \
199199
-XX:+ExitOnOutOfMemoryError \
200200
-XX:+StartAttachListener \
201-
-XX:+UseCompressedOops \
202201
-javaagent:${dcache.paths.classes}/aspectjweaver-1.9.9.1.jar \
203202
-Djava.net.preferIPv6Addresses=system \
204203
--add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.base/java.text=ALL-UNNAMED --add-opens=java.sql/java.sql=ALL-UNNAMED --add-opens=java.base/java.math=ALL-UNNAMED --add-opens java.base/sun.nio.fs=ALL-UNNAMED \

0 commit comments

Comments
 (0)