This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Java in General and the fly likes How I can set the Non-standard option of -Xmxn of jvm Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "How I can set the Non-standard option of -Xmxn of jvm" Watch "How I can set the Non-standard option of -Xmxn of jvm" New topic
Author

How I can set the Non-standard option of -Xmxn of jvm

Bikash Paul
Ranch Hand

Joined: Dec 04, 2001
Posts: 342
Hi there,
Can any one tell me how I can set the Non-standard option of -Xmxn of jvm (setp by step).Iam using Sun's jvm(jdk1.2.2).Iam facing a error(java.lang .OutOfMemory).I want to set the maximum size of the memory allocation pool.Any help will be highly appreciated.
Thanks for ur valuable Time
Bikash
------------------
James Hobson
Ranch Hand

Joined: Aug 28, 2001
Posts: 140
When you start the application you type, or have a script that does:
c:\java myApplication
simply change that to:
c:\java -Xms128M -Xmx196M myApplication
an example is in a script I use to start JBoss:
java -Xms128M -Xmx196M %JAXP% -classpath "%CLASSPATH%" org.jboss.Main tomcat
 
 
subject: How I can set the Non-standard option of -Xmxn of jvm