How to Set Permgen space in JBOSS in Windows

Setting up permgen space in LINUX was my previous post and what about setting up the same thing in windows because JBOSS is a platform independent web server and very efficient in both operating systems. How to do this task on windows is very easy, just follow the under given steps and you will be done in just seconds. 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. 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 C Drive)

c:boss-5.0.1.GA

2. Under JBOSS go to bin

c:boss-5.0.1.GAbin

3. under bin directory open the run.bat file (I like to use notepad editor) (Its a big file with more than one JAVA_OPTS) find the under given line the change the required parameters:

set JAVA_OPTS=%JAVA_OPTS% -Xms1024m -Xmx1024m -XX:MaxPermSize=512

Leave a Comment

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