我在我的网络服务器上运行码头。我当前的 jvm 设置:-Xmx4g -Xms2g,但是码头使用了更多的内存,我不知道这些额外的内存去哪里了。
Jetty 总共使用 4.547g 内存:
heap usage 显示 2.5g 时的堆内存使用情况:
Heap Usage:
New Generation (Eden + 1 Survivor Space):
capacity = 483196928 (460.8125MB)
used = 277626712 (264.76546478271484MB)
free = 205570216 (196.04703521728516MB)
57.45622455612963% used
Eden Space:
capacity = 429522944 (409.625MB)
used = 251267840 (239.627685546875MB)
free = 178255104 (169.997314453125MB)
58.4992824038755% used
From Space:
capacity = 53673984 (51.1875MB)
used = 26358872 (25.137779235839844MB)
free = 27315112 (26.049720764160156MB)
49.109214624351345% used
To Space:
capacity = 53673984 (51.1875MB)
used = 0 (0.0MB)
free = …Run Code Online (Sandbox Code Playgroud)