Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Bikash Paul
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic