tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Kolinko <knst.koli...@gmail.com>
Subject Re: "Expire sessions" button in Tomcat Manager
Date Wed, 04 May 2011 19:35:30 GMT
2011/5/4 Jakub Królikowski <jakub@pakamera.com.pl>:
> Chris,
>
> I checked sources, HTMLManagerServlet.java is the answer.
> Button "expire" is showing only if application is deployed, it's
> hidden when app is configured with servlet.xml.
> Does anybody knows why?

Just a bug. Please file it in Bugzilla.

There is no "Undeploy" button in this case, so maybe the expire one
followed the suit, or maybe just oversight.

Deploying an app by adding it to server.xml is a rare and
non-recommended use case. Why you cannot put them into
conf/www.myapp.pl/ROOT.xml
conf/www.myapp.pl/manager.xml
respectively ?

>
> Why I want to expire sessions? Well, actually I need it only for
> performance tests.

The command is still there, if you know what URL to invoke. Though you
might want to silence the CsrfPreventionFilter -- see its init-param
named "entryPoints".

> I'm testing application with JMeter, creating a lot
> of sessions. When I want to stop test and run the next one - sessions
> from first test are still there. I would like to expire them if
> they're idle more than 10 minutes.

Maybe you want to change the value for <session-timeout> in your
web-app's web.xml (or the default one in conf/web.xml)?


Best regards,
Konstantin Kolinko

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


Mime
View raw message