ZGC max heap size exceed physical memory
问题 JVM options is -server -Xmx100g -Xms100g -XX:MaxMetaspaceSize=1G -Xss512k -XX:+UnlockExperimentalVMOptions -XX:+UseZGC -XX:MaxGCPauseMillis=30 -XX:ConcGCThreads=4 -XX:ParallelGCThreads=12 -XX:+DisableExplicitGC -XX:LargePageSizeInBytes=128m RAM is 256G total used free shared buffers cached Mem: 251 250 1 100 0 138 -/+ buffers/cache: 112 139 Swap: 7 0 7 the top command show the process's RES is 303G PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 240731 xxx 20 0 17.0t 302g 297g S 6.6 119