Skip to main content
gamedev.net
🔒 Locked

[java] Memory Problem - PLEASE HELP

Started by cpp_boy Mar 20, 2005 at 2:34 PM 3 replies 700+ views
Original Post
cpp_boy
cpp_boy
Hello guys. My java program needs much more than 70MB of RAM for execution, but windows limits JVM to 70MB of RAM. How can I let JVM use more than limited amount of 70MB of RAM ? THANKS [Edited by - cpp_boy on March 20, 2005 2:51:18 PM]
Lotuspec
Lotuspec
run your application with this flag: -Xmx100m to set the maximum memory available to the VM to 100MB (obviously you can replace 100 with any number you like)

ex. java -Xmx150m MyMainClass
cpp_boy
cpp_boy
Quote:
Original post by Lotuspec
run your application with this flag: -Xmx100m to set the maximum memory available to the VM to 100MB (obviously you can replace 100 with any number you like)

ex. java -Xmx150m MyMainClass


Where exactly do I have to write this flag ?
choffstein
choffstein
If you run the Java VM from command line, calling "java" with the flag on your .class file.
cpp_boy
cpp_boy
I get it. Thanks a lot :) your rating ++ ;)

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.