I got the following error "java.lang.OutOfMemoryError: PermGen space" in our production
Tomcat 6.0.18, which running in windows 2003 server with 4GB of RAM. with all references for that error, I updated setenv.bat with the following entry
set "JAVA_OPTS=%JAVA_OPTS% -Xms1024m -Xmx1024m -XX:MaxPermSize=512m -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled -server".
But i am still facing the issue and i am not sure how to ensure whether tomcat pick that configuration or not? Please guide me on this, Thanks in advance.
Below is my Catalina.bat file entry
rem Get standard environment variables
if "%CATALINA_BASE%" == "" goto gotSetenvHome
if exist "%CATALINA_BASE%\bin\setenv.bat" call "%CATALINA_BASE%\bin\setenv.bat"
goto gotSetenvBase
:gotSetenvHome
if exist "%CATALINA_HOME%\bin\setenv.bat" call "%CATALINA_HOME%\bin\setenv.bat"
:gotSetenvBase