Users keep getting logged out of our Java apps within a minute or two for no apparent reason.Below are my settings, any help would be appreciated.
I am running Red Hat Linux 2.6.18-164.el5 #1 SMP x86_64 x86_64 x86_64 GNU/Linux with Tomcat 6 as seen below: # /opt/tomcat/bin/version.sh Using CATALINA_BASE: /opt/tomcat Using CATALINA_HOME: /opt/tomcat Using CATALINA_TMPDIR: /opt/tomcat/temp Using JRE_HOME: /usr/java/jdk1.6.0_16 Server version: Apache Tomcat/6.0.20 Server built: May 14 2009 01:13:50 Server number: 6.0.20.0 OS Name: Linux OS Version: 2.6.18-164.el5 Architecture: amd64 JVM Version: 1.6.0_16-b01 JVM Vendor: Sun Microsystems Inc. My system has 6GB of RAM. I have tried various JAVA_OPTS, the most current one is at the bottom: #JAVA_OPTS="$JAVA_OPTS -Xmx3072M -Xms3072M" #JAVA_OPTS="$JAVA_OPTS -Djava.awt.headless=true -Dfile.encoding=UTF-8 -server -Xms2048m -Xmx2048m -XX:NewSize=1024m -XX:MaxNewSize=1024m -XX:PermSize=1024m -XX:MaxPermSize=1024m -XX:+DisableExplicitGC" #JAVA_OPTS="$JAVA_OPTS -Djava.awt.headless=true -Dfile.encoding=UTF-8 -server -Xms2048m -Xmx2048m -XX:NewSize=1024m -XX:MaxNewSize=1024m -XX:PermSize=1024m -XX:MaxPermSize=1024m -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled -XX:+UseConcMarkSweepGC" #JAVA_OPTS="$JAVA_OPTS -Djava.awt.headless=true -Dfile.encoding=UTF-8 -server -Xms2048m -Xmx2048m -XX:NewSize=1024m -XX:MaxNewSize=1024m -XX:PermSize=1024m -XX:MaxPermSize=1024m -XX:+UseConcMarkSweepGC" JAVA_OPTS="$JAVA_OPTS -Djava.awt.headless=true -Dfile.encoding=UTF-8 -server -Xms2048m -Xmx2048m -XX:NewSize=1024m -XX:MaxNewSize=1024m -XX:PermSize=1024m -XX:MaxPermSize=1024m" My timeout settings are as follows: # grep -i timeout conf/* conf/server.xml: connectionTimeout="20000" conf/server.xml: acceptCount="10" debug="0" connectionTimeout="60000"/> conf/web.xml: <!-- You can set the default session timeout (in minutes) for all newly --> conf/web.xml: <session-timeout>30</session-timeout> Thanks!