java max memory?

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

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

TOP

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

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

TOP

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

TOP