When I say -Xmx=1024m
, does this include permgen i.e -XX:MaxPermSize=
is taken from these 1024m or it is separate?
Looking at this I thought that it takes from 1024m, but until now I had believed they were separate.
いいえ、permGen スペースはメイン ヒープに追加されます (後者は Sun VM の -Xmx によって制限されます)
パーマネント ジェネレーションは、 によって割り当てられた別のスペース-XX:MaxPermSize=
です。これは、 で設定されたヒープに追加され-Xmx
ます。
http://www.oracle.com/technetwork/java/gc1-4-2-135950.html#3.%20Sizing%20the%20Generations|outline "3. Sizing the Generations"の図を参照してください。
これは「合計サイズ」を示します。つまりXmx
、Permanent 世代はカウントされません。
ところで、JDK 1.4 はかなり古いものです。更新されたビューについては、JDK 1.6 のオプションとリンクを確認してください: http://www.oracle.com/technetwork/java/javase/tech/vmoptions-jsp-140102.html