File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How I can set the Non-standard option of -Xmxn of jvm
 
Similar Threads
Garbage collection
Killing Threads
Reading files of size >100MB
Is there any way that we can prevent an object from being Garbage collected?
How I can set the Non-standard option -Xmx of jvm