Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to change jvm memory heap using command line

807600Jun 18 2007 — edited Jun 18 2007
Hi 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 16 2007
Added on Jun 18 2007
3 comments
254 views