Tomcat6 will not start
Environment
- Red Hat Satellite 5.6
- Red Hat Enterprise Linux 6.5
Issue
- In
/var/log/tomcat6/catalina.out
:
JVMJ9GC017E -Xmx too small, must be at least 1 Mbytes
JVMJ9VM015W Initialization error for library j9gc24(2): Failed to initialize
Could not create the Java virtual machine.
Resolution
- Edit
/etc/sysconfig/tomcat6
file to modify the-Xmx
value :
# vi /etc/sysconfig/tomcat6
...
JAVA_OPTS="$JAVA_OPTS -ea -Xms256m -Xmx512 -Djava.awt.headless=true -Dorg.xml.sax.driver=org.apache.xerces.parsers.SAXParser -Dorg.apache.tomcat.util.http.Parameters.MAX_COUNT=1024 -Dcom.ibm.tools.attach.enable=no -XX:MaxNewSize=256 -XX:-UseConcMarkSweepGC"
- Increase to at least 1024m :
JAVA_OPTS="$JAVA_OPTS -ea -Xms256m -Xmx1024m -Djava.awt.headless=true -Dorg.xml.sax.driver=org.apache.xerces.parsers.SAXParser -Dorg.apache.tomcat.util.http.Parameters.MAX_COUNT=1024 -Dcom.ibm.tools.attach.enable=no -XX:MaxNewSize=256 -XX:-UseConcMarkSweepGC"
- Then you will need to restart tomcat6 service:
# service tomcat6 restart
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments