Message Boards
Threads [ Previous | Next ]
JBOSS PermGen space(java.lang.outOfMemoryError)
JBOSS PermGen space(java.lang.outOfMemoryError) Raymond Lye 4/16/08 9:44 PM
RE: JBOSS PermGen space(java.lang.outOfMemoryError) WingHoe Lim 4/16/08 10:37 PM
JBOSS PermGen space(java.lang.outOfMemoryError)
4/16/08 9:44 PM
Hi all,

Glad if anyone can help me resolve this disturbing error message of not being able to deploy my war package in JBOSS when running a jsp page on server. The console keeps throwing me this error:

10:10:22,640 ERROR [MainDeployer] Could not create deployment: file:/E:/jboss-4.2.2.GA/jboss-4.2.2.GA/server/default/deploy/testRun.war
java.lang.OutOfMemoryError: PermGen space

Can anyone tell me how to expand this PermGen space configuration in JBOSS server config file or if not this, any solution to avoid this when testing to run an application test for QA repeatedly? I got this error only if the test run is conducted consecutively. I need this urgently in order to test for the expected behaviour of events and EE features for database security authentication and need to complete this QA session before 17th April in KL. Currently, I can't proceed with any testing if this bungling error keeps blocking my way. The only successful trial run of the test app is a simple jsp page complete with a controller, conversation, action, datatype, datastore and a jsp page that simply outputs a message. If a form is included, the test run would also fail displaying either the 404, 500 or the above error.
RE: JBOSS PermGen space(java.lang.outOfMemoryError)
4/16/08 10:37 PM as a reply to Raymond Lye.
You may want to try to adjust the PermSize in run.conf file.

The run.conf file can be found in <jboss directory>\bin\run.conf.

Look for: JAVA_OPTS and add the following parameters.

JAVA_OPTS="-Xms512m -Xmx1024m -XXermSize=256m -XX:MaxPermSize=512m"

Hope this helps.
© Copyright 2001-2010 Skyway Software Inc. All Rights Reserved