tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Igor Cicimov <>
Subject Re: Changing session timeout for a webapp via JMX or internal Tomcat API?
Date Wed, 30 Nov 2011 05:30:30 GMT
On Wed, Nov 30, 2011 at 4:11 PM, Ellecer Valencia <> wrote:

> Is there a way to change session timeouts in tomcat via JMX? I've only
> seen the operation called "expireSession", but not one that can change
> the session timeout period.
> The only way I've found so far to modify session timeouts is by
> modifying web.xml and restarting Tomcat.
> However, in our intended usage, we don't want to restart Tomcat and
> kick out users.
> We're looking at using parallel deployment in Tomcat 7, and so we'll
> have a situation with
> foo##001 -- old version
> foo##002 -- new version
> What we want to do is decrease timeouts in foo##001, so that users
> move to foo##002 sooner and allow us to get rid of the old version.
> I've had a look at the Manager MBean and there's operations to get the
> existing session IDs and to expire individual sessions, but not to
> change their timeouts (unless I've gone blind and there was something
> there staring me in the face!).
> Is there any way - either another MBean in Tomcat or by accessing
> Tomcat API - to change the session timeouts for a webapp? Someone told
> me that Weblogic has this feature, so maybe it's not impossible to do
> it in Tomcat (just speculating)
> Ellecer
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:
Can't you just restart the application you are changing the timeout for?
Why do you need to restart the whole server?

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message