This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Getting MEAN with Mongo, Express, Angular, and Node and have Simon Holmes on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes JBoss 5.1.0.GA heap size Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "JBoss 5.1.0.GA heap size" Watch "JBoss 5.1.0.GA heap size" New topic
Author

JBoss 5.1.0.GA heap size

M. Phaneendra Vijay
Greenhorn

Joined: Jun 10, 2009
Posts: 26
How to increase Heapspace in JBoss 5.1.0.GA in ubuntu linux?

Thanks in advance.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10423
    
175

Edit the JAVA_OPTS section in the JBOSS_HOME/bin/run.conf file.

[My Blog] [JavaRanch Journal]
M. Phaneendra Vijay
Greenhorn

Joined: Jun 10, 2009
Posts: 26
Thanks. Generally how much should the minimum and maximum size of the heap be? Also the MaxPermSize?

I run Jboss 24x7 365 days.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5850
    
    7

That depends entirely on your application. You will need to do load testing and monitor the garbage collection statistics under load. From there you can determine how much heap you need.

For suggestions on how to gather GC data and analyze it, see these white papers:
Java Garbage Collection Statistical Analysis 101
Java Garbage Collection Performance Analysis 201
at http://www.cmg.org/cgi-bin/search.cgi?q=java+peter+johnson&x=30&y=10

JBoss In Action
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: JBoss 5.1.0.GA heap size