2010-12-13 45 views

回答

1

一個簡單的解決方案是連接到服務器jvm w/Jconsole。有一些說明here,我沒有使用它們,但它應該是直截了當的。

1

在您的Windows啓動選項中鍵入jconsole。

當你拿出jconsole.exe點擊它。

然後在本地進程中選擇與正在運行的glassfish域相關的進程。

您可以從任務管理器獲取進程ID。

當JConsole的面板打開,你會看到在內存選項卡下面:

1. Heap Memory Usage 
Java takes memory from the OS. Part of this memory is called Java Heap Memory. Whenever an object is newly created it is allocated memory from the Java Heap space and when it is garbage collected the memory occupied by this object is returned back to the OS. 

2.Non Heap Memory Usage 
3.Memory Pool Eden Space 
4.Memory Pool Survivor Space 
5.Memory Pool Tenured Gen 
6.Memory Pool Code Cache 
7.Memory Pool Code Gen 

其解釋很好的鏈接是在這裏: How is the java memory pool divided?

相關問題