Win a copy of Practical SVG this week in the HTML/CSS/JavaScript 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
 
Let nothing stop you! Not even this tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!