[Yanel-dev] Session Persistence

basZero baszero at gmail.com
Tue Jun 23 07:14:33 EDT 2015


Maybe I'm the only one who did not know this but Tomcat has Session
Persistence ENABLED per default.

This means that during shutdown, all sessions get serialized into the file
work/Catalina/localhost/_/SESSIONS.ser

and get restored into memory at startup.

If you run an application with thousands of sessions, shutdown and startup
time can become quite long.

To disable session persistence, just uncomment this line
in conf/context.xml :
<Manager pathname="" />


Cheers, Balz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mx2.wyona.com/pipermail/yanel-development/attachments/20150623/6ed10adc/attachment.html>


More information about the Yanel-development mailing list