You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Bruce Wayne <ch...@gmail.com> on 2009/09/16 16:00:03 UTC

Application Logout Issues

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!

Re: Application Logout Issues

Posted by Bruce Wayne <ch...@gmail.com>.
Turned out to be the load-balancer in front of the server farm.......thanks
for helping out.

On Wed, Sep 16, 2009 at 10:11 AM, Michael Ludwig <ml...@as-guides.com> wrote:

> Bruce Wayne schrieb:
>
>> Users keep getting logged out of our Java apps within a minute or two
>> for no apparent reason.
>>
>
> All of your apps? How many? All different? Do they share some
> configuration?
>
> The reason for this is likely to be found in your applications, not in
> the OS or the JVM.
>
>  I have tried various JAVA_OPTS, the most current one is at the bottom:
>>
>
> Your JAVA_OPTS are most likely absolutely irrelevant.
>
>  My timeout settings are as follows:
>> # grep -i timeout conf/*
>> conf/server.xml:               connectionTimeout="20000"
>> conf/server.xml:               acceptCount="10" debug="0"
>> connectionTimeout="60000"/>
>>
>
> Irrelevant.
>
>  conf/web.xml:        <session-timeout>30</session-timeout>
>>
>
> Relevant, but this is the default - 30 minutes.
>
> --
> Michael Ludwig
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: Application Logout Issues

Posted by Michael Ludwig <ml...@as-guides.com>.
Bruce Wayne schrieb:
> Users keep getting logged out of our Java apps within a minute or two
> for no apparent reason.

All of your apps? How many? All different? Do they share some
configuration?

The reason for this is likely to be found in your applications, not in
the OS or the JVM.

> I have tried various JAVA_OPTS, the most current one is at the bottom:

Your JAVA_OPTS are most likely absolutely irrelevant.

> My timeout settings are as follows:
> # grep -i timeout conf/*
> conf/server.xml:               connectionTimeout="20000"
> conf/server.xml:               acceptCount="10" debug="0"
> connectionTimeout="60000"/>

Irrelevant.

> conf/web.xml:        <session-timeout>30</session-timeout>

Relevant, but this is the default - 30 minutes.

-- 
Michael Ludwig

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org