
Nick
24.08.2017
18:42:11
root@1116205da8b2:/# java -Xlog:gc* -version
[0.004s][info][gc,heap] Heap region size: 1M
[0.006s][info][gc ] Using G1
[0.006s][info][gc,heap,coops] Heap address: 0x00000000e0c00000, size: 500 MB, Compressed Oops mode: 32-bit
openjdk version "9-Debian"
OpenJDK Runtime Environment (build 9-Debian+0-9b181-2)
OpenJDK 64-Bit Server VM (build 9-Debian+0-9b181-2, mixed mode)
[0.101s][info][gc,heap,exit ] Heap
[0.101s][info][gc,heap,exit ] garbage-first heap total 32768K, used 1024K [0x00000000e0c00000, 0x00000000e0d00100, 0x0000000100000000)
[0.101s][info][gc,heap,exit ] region size 1024K, 2 young (2048K), 0 survivors (0K)
[0.101s][info][gc,heap,exit ] Metaspace used 3768K, capacity 4480K, committed 4480K, reserved 1056768K
[0.101s][info][gc,heap,exit ] class space used 325K, capacity 384K, committed 384K, reserved 1048576K
root@1116205da8b2:/#
root@1116205da8b2:/#
root@1116205da8b2:/# java -Xlog:gc* -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -version
[0.001s][info][gc,heap] Setting phys_mem to the min of cgroup limit (4000MB) and initial phys_mem (1998MB)
[0.004s][info][gc,heap] Heap region size: 1M
[0.006s][info][gc ] Using G1
[0.006s][info][gc,heap,coops] Heap address: 0x00000000e0c00000, size: 500 MB, Compressed Oops mode: 32-bit
openjdk version "9-Debian"
OpenJDK Runtime Environment (build 9-Debian+0-9b181-2)
OpenJDK 64-Bit Server VM (build 9-Debian+0-9b181-2, mixed mode)
[0.101s][info][gc,heap,exit ] Heap
[0.101s][info][gc,heap,exit ] garbage-first heap total 32768K, used 1024K [0x00000000e0c00000, 0x00000000e0d00100, 0x0000000100000000)
[0.101s][info][gc,heap,exit ] region size 1024K, 2 young (2048K), 0 survivors (0K)
[0.101s][info][gc,heap,exit ] Metaspace used 3768K, capacity 4480K, committed 4480K, reserved 1056768K
[0.101s][info][gc,heap,exit ] class space used 325K, capacity 384K, committed 384K, reserved 1048576K
root@1116205da8b2:/#
root@1116205da8b2:/#
root@1116205da8b2:/# java -Xms100G -Xlog:gc* -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -version
[0.000s][info][gc,heap] Setting phys_mem to the min of cgroup limit (4000MB) and initial phys_mem (1998MB)
[0.004s][info][gc,heap] Heap region size: 32M
[0.089s][info][gc ] Using G1
openjdk version "9-Debian"
OpenJDK Runtime Environment (build 9-Debian+0-9b181-2)
OpenJDK 64-Bit Server VM (build 9-Debian+0-9b181-2, mixed mode)
[0.176s][info][gc,heap,exit] Heap
[0.176s][info][gc,heap,exit] garbage-first heap total 104857600K, used 32768K [0x00007f3dbc000000, 0x00007f3dbe006400, 0x00007f56bc000000)
[0.176s][info][gc,heap,exit] region size 32768K, 2 young (65536K), 0 survivors (0K)
[0.176s][info][gc,heap,exit] Metaspace used 3770K, capacity 4096K, committed 4096K, reserved 8192K
я думал он не даст 100G поставить)