How to set permgen Space in JBOSS in LINUX

Working with JBOSS is really fun but you need to know few things like given as under:

  • JAVA heap space memory
  • Permgen Space

In a previous post I wrote about setting up JAVA heap space in LINUX and today I like to share how to set permgen space settings in JBOSS in LINUX. The default permgen space in Java is 64MB and you need to add some more memory to support your high definition and big application to run in JBOSS web server. To accomplish this task you need to set the permgen space parameters in your JBOSS. Follow the under given steps to set the permgen space in JBOSS:

1. Go to the JBOSS directory (In my case its under home)


2. Under JBOSS go to bin


3. under bin directory open the run.conf file (I like to use vi editor)

vi /home/jboss-5.0.1.GA/bin/run.conf

Find the JAVA_OPTS and change the under given parameters in bold: (just change the value from lower amount to higher amount, in my case from 64m to 512m)

JAVA_OPTS="-Xms1536m -Xmx1536m -XX:MaxPermSize=512m

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.