Board logo

標題: java max memory? [打印本頁]

作者: petercheung    時間: 2013-1-9 15:47     標題: java max memory?

提示: 作者被禁止或刪除 內容自動屏蔽
作者: tonyli1212    時間: 2013-1-9 19:38

maxMemory

public long maxMemory()Returns the maximum amount of memory that the Java virtual machine will attempt to use. If there is no inherent limit then the value Long.MAX_VALUE will be returned.

Returns:the maximum amount of memory that the virtual machine will attempt to use, measured in bytes
作者: 死仔飽    時間: 2013-1-9 20:16

可以用 -Xmx 去 set 個 jvm 既max size

detail 可以睇番 http://docs.oracle.com/javase/7/ ... s/windows/java.html


作者: petercheung    時間: 2013-1-10 09:41

提示: 作者被禁止或刪除 內容自動屏蔽





歡迎光臨 電腦領域 HKEPC Hardware (https://h0.hkepc.com/forum/) Powered by Discuz! 7.2