tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pid <...@pidster.com>
Subject Re: two questions about the session timeout in tomcat
Date Fri, 07 Oct 2011 14:55:08 GMT
On 07/10/2011 00:20, Bill Wang wrote:
> Hi Tomcat Guru,
> 
> Recently one of Tomcat application has performance issue, which get slow
> respond with high sessions.

You should find out exactly why that is, rather than guessing.


> One team member recommend me to adjust the  session timeout from 60 minutes
> to 30 minutes.  I will do that, but before change it, I'd like to understand
> how the performance related with the expire session timeout.

Performance will only be impacted as a side-effect of memory being
consumed by the session for a shorter period of time.


>          <session-timeout>60</session-timeout>
> 
> Second, currently I monitor the session count by login the admin interface,
> the manual way is not efficiency, can I run some commands to get the
> sessions number? With that I can set a cronjob and generate the session
> report easily.

The session count per application can be read via a JMX connection and a
request to the appropriate MBean.


p


Mime
View raw message