john pfeiffer
  • Home
  • Categories
  • Tags
  • Archives

tomcat java optimization

export CATALINA_OPTS="-Xms1024m -Xmx1024m"


http://www.chemaxon.com/jchem/doc/admin/tomcat.html


CONFIG:  /etc/default/tomcat6 (AUTHBIND=yes)
    /var/lib/tomcat6/webapps/... spring.xml
    /usr/share/tomcat6/bin/catalina.sh
    /etc/tomcat6/web.xml (session-timeout)
    /etc/tomcat6/server.xml
    Connector port="443"  (/var/lib/sssl/cert.crt and cert.key)
    maxThreads = max concurrent client connections!



set JAVA_OPTS=%JAVA_OPTS% -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file="%CATALINA_BASE%\conf\logging.properties" -Xms1024m -Xmx1024m -XX:MaxPermSize=128m


"tomcat6 //US//Tomcat6 -JvmMs XXX -jvmMx YYY"

Replace XXX with min heap size and YYY with max heap size


INCREASE by -XX:MaxPermSize=256m (lot of Servlet's or JSP's require permanent generation)

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ran out of file descriptors (OutOfMemoryError  or Too many open files)

lsof > file-descriptors.txt

ulimit ?

  • « windows7 enable telnet
  • Fix udev ubuntu vm nic hostname »

Published

May 2, 2011

Category

java

~74 words

Tags

  • java 252
  • optimization 4
  • tomcat 8