Discussion Locked

run time memory for JVM

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi friends,

Please suggest me how to set Run-time memory availbale for JVM. It seems that by default the JVM does not utilise all the memory available to it.

Regards,
Nise

5 replies

by okujava

u shloud start your class as follows:
java -Xms6M MyClass. -Xms provides the initial size of the memory allocation pool. it should be a multiple of 1024 or u can append k for KB und m for MB.

regards S.Okujava

by grebenyukov

java.exe can accept following options:
-Xms set initial Java heap size
-Xmx set maximum Java heap size

This discussion is closed to new replies.