-
1. Re: PermGen Space
schnelzer Aug 23, 2005 4:14 PM (in response to patrickdalla)In your run.bat or run.sh try setting the MaxPermSize and PermSize to 128m. We did this and its seems to have solved the issue for us. The setting are -XX:PermSize=128m and -XX:MaxPermSize-128m. The are some tools in JDK 1.5 bin directory if you are using 1.5 that are helpful.
-
2. Re: PermGen Space
khalidhafeez Mar 14, 2008 6:50 AM (in response to patrickdalla)Hi,
Could u please let me know at which place it should be written in run.bat ?
thanx -
3. Re: PermGen Space
emuckenhuber Mar 14, 2008 6:54 AM (in response to patrickdalla)You could also use the JAVA_OPTS in the bin/run.conf, which is maybe easier to find.
-
4. Re: PermGen Space
bdaw Mar 14, 2008 6:54 AM (in response to patrickdalla)In the AS /bin directory look for the run.conf file. You need to make it:
if [ "x$JAVA_OPTS" = "x" ]; then JAVA_OPTS="-Xms128m -Xmx512m -XX:PermSize=128m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000" fi
-
5. Re: PermGen Space
sisepago Mar 14, 2008 7:15 AM (in response to patrickdalla)Hi patrickdalla,
take a look at my blog, there I explained how to solve the java.lang.OutOfMemoryError: PermGen space problem. -
6. Re: PermGen Space
pmn92 Mar 19, 2008 5:56 PM (in response to patrickdalla)The problem appears due to hibernate consuming a lot of perm gen!
It should be in a wiki, release note, documentation - or even set by default - but it is not :-(
To fix MaxPermSize :
in jboss server, customize the "run.bat" file
set JAVA_OPTS=%JAVA_OPTS% -Xms512m -Xmx1274m -XX:MaxPermSize=256m -Dcom.sun.management.jmxremote
To fix it within eclipse, use 3.3.1 or above, and customize the eclipse.ini file to include something like that
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vmargs
-Xms40m
-Xmx512m -
7. Re: PermGen Space
theute Mar 19, 2008 7:49 PM (in response to patrickdalla)http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossPortalFAQ last question