We're getting the java.lang.OutOfMemoryError: PermGen space in our environment: Windows Server 2012 R2 64-bit 8GB RAM JRE 1.7 u80 Tomcat 7.0.73 ActiveMQ 5.9.0 Mule runtime 3.5.4 Mule management console 3.5.3 deployed over Tomcat 7 webservice war file that uses PhantomJS 1.9.8 deployed over Tomcat 7
setenv.bat file under Tomcat/bin folder with below settings: setenv JAVA_OPTS=-Xms512M -Xmx2048m -XX:PermSize=1024m -XX:MaxPermSize=1024m
Also, registry settings for JVM as under tomcat7w.exe: initial memory pool: 256 MB maximum memory pool: 1536 MB
Could any explain which takes precedence, setenv.bat file settings or tomcat7w.exe settings for memory pool? Also, what should be the ideal settings for this environment as these settings are currently running on windows server 2008 R2 64-bit with 16GB RAM?