aspose file tools*
The moose likes JBoss/WildFly and the fly likes increasing heap size in jboss Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "increasing heap size in jboss" Watch "increasing heap size in jboss" New topic
Author

increasing heap size in jboss

Arun Prasath
Ranch Hand

Joined: May 23, 2007
Posts: 80
hi buddies,

[*]how to increase the heap size in jboss 4.2.1?
Because i am getting out of memory exception.
can anyone help me out how to get rid of it?
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9321
    
109

The run.bat (run.sh for linux) has a section for adding the JVM parameters including the heap size. Look for JAVA_OPTS in that file and add your JVM setting there. This is what i have on my local setup:



[My Blog] [JavaRanch Journal]
Arun Prasath
Ranch Hand

Joined: May 23, 2007
Posts: 80
well, thanks for your reply

what will happen if my RAM is only 1GB and if i set 2GB as the maximum heap size in JVM?
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9321
    
109

The JVM will throw up an error and the java process will be killed.
 
jQuery in Action, 2nd edition
 
subject: increasing heap size in jboss
 
Similar Threads
app on WS4.0 not releasing memory
java.lang.OutOfMemoryError
Session Size
JBoss 5.1.0.GA heap size
what is the default size of java heap