FANDOM


check tomcat versionEdit

/opt/tomcat/bin/version.sh

tomcat6 cluster Edit

tomcat 7 outofmemeory heap dump Edit

  • in catalina.sh
JAVA_OPTS='-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/path/to/dir'
  • one line java code cause out of memory
long[] l = new long[Integer.MAX_VALUE];