I'm using a Bitnami Tomcat 7 VM, to run a Java/Grails application. I have frequent PermGenSpace errors. I've tried to modify the :X and :XX variables, in different scripts and JAVA_OPTS variables, but so far, I still have a lot of crashes, and no certainty whether the extra memory I allowed is indeed taken into account. Looking at the Java processes running, I see this one :
jsvc.exec -java-home /opt/bitnami/java -user tomcat -pidfile /opt/bitnami/apache-tomcat/temp/catalina.pid -wait 10 -outfile /opt/bitnami/apache-tomcat/logs/catalina-daemon.out -errfile &1 -classpath /opt/bitnami/apache-tomcat/bin/bootstrap.jar:/opt/bitnami/apache-tomcat/bin/commons-daemon.jar:/opt/bitnami/apache-tomcat/bin/tomcat-juli.jar -Djava.util.logging.config.file=/opt/bitnami/apache-tomcat/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs= -Dcatalina.base=/opt/bitnami/apache-tomcat -Dcatalina.home=/opt/bitnami/apache-tomcat -Djava.io.tmpdir=/opt/bitnami/apache-tomcat/temp org.apache.catalina.startup.Bootstrap
I guess I should define the VM memory parameters on this process, but I can't locate what launches this jsvc.exec. What does launch it ? Where is the script ? Thanks for any help