-
1. Re: PermGen OOME when using service.bat in JBoss 5.1
forumer Oct 19, 2010 1:34 PM (in response to forumer)OK, I am realizing that JVM parameters, set in run.conf.bat, get ignored when using service.bat. Default PermGen setting may be too low and may be causing this issue. I'll investigate this further.
-
2. Re: PermGen OOME when using service.bat in JBoss 5.1
peterj Oct 19, 2010 2:26 PM (in response to forumer)The problem is that service.bat sets JAVA_OPTS (line 26) and in run.conf.bat, all of the JAVA_OPTS settings are ignbored if it is already set (see line 15). Possible solutions are:
a) Comment out line 26 in service.bat and add the -Xrs to one of the JAVA_OPTS lines in run.conf.bat
b) Comment out line 15 in conf.run.bat; but then you would still have to add -Xrs to one of the JAVA_OPTS lines in run.conf.bat or you would have to change the first JAVA_OPTS setting in conf.run.bat (line 44) to append, rather then reset, JAVA_OPTS (text in red is new text)L
set "JAVA_OPTS=%JAVA_OPTS% -XX:+PrintHeapAtGC -Xloggc:gc3.log -Xms128M -Xmx512M -XX:MaxPermSize=256M"