mauriciorodrigues / memcached-session-manager

Automatically exported from code.google.com/p/memcached-session-manager
0 stars 0 forks source link

Tomcat does not stop gracefully on shutdown #14

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. $CATALINA_HOME/bin/shutdown.sh
2. ps auxww | grep -i tomcat | grep -v grep
3. Tomcat is still running and the process needs to be killed manually

Our Tomcat instance did gracefully shutdown before adding memcached
session manager.

Adding '_memcached.shutdown()' in the 'stop' method in
MemcachedBackupSessionManager.java appears to resolve 
the issue:

   public void stop() throws LifecycleException {
       if ( initialized )
       {
           _memcached.shutdown();
           destroy();
       }
   }

Thanks!

-kenan

p.s.
This implementation was exactly what we were looking for to provide
high availability sessions in a clustered environment.  Really nice work!
Thanks!

Original issue reported on code.google.com by kenan.ma...@gmail.com on 4 Jun 2009 at 10:37

GoogleCodeExporter commented 8 years ago
Great it's useful for you, and thanx for this patch! I'll include this in 1.0.

Original comment by martin.grotzke on 16 Oct 2009 at 9:32

GoogleCodeExporter commented 8 years ago
Patch committed, fixed.

Original comment by martin.grotzke on 16 Oct 2009 at 9:58