how to change jvm memory heap using command line
807600Jun 18 2007 — edited Jun 18 2007Hi All,
I am quite new to java. I am having trouble with java memory heap. The default value seems too small for my application. But i am not sure how to modify the default setting correctly. I have tried the following command:
java -Xms512m -Xmx1024m
but it did not work. I executed this line at my home directory on a linux machine. Is there anything wrong with this? Do I need to execute the command in java's directory?
Millions of thanks,
Jerry