roc230 / spymemcached

Automatically exported from code.google.com/p/spymemcached
0 stars 0 forks source link

hibernate-memcached used in web application starts thread that doesn't stop #149

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I already posted this as an issue to hibernate-memcached but after crawling 
through the source a bit i think that hibernate-memcached doesn't start any 
threads... so it must be a thread of spymemcached.

As the summary states i am using hibernate-memcached in my web application 
which runs on tomcat. As soon as i active the cache it is not possible to stop 
tomcat the normal way but i have to kill it. I tracked the problem an i am 
quite sure that this comes from a thread that is started for the communication 
with the memcached server. This thread doesn't get stopped anymore and so 
tomcat cannot be stopped as well.

Could you give me any hint on what thread this could be and how it usually is 
stopped (maybe hibernate-memcached is missing a call)?

Thanks a lot!

Original issue reported on code.google.com by Werzi2...@gmx.de on 7 Aug 2010 at 3:16

GoogleCodeExporter commented 9 years ago
The MemcachedClient has a shutdown() method that will gracefully close the 
thread.  

The threads are named, so you should be able to see if it's a spymemcached 
thread.  

Can you provide a pointer to where this should be fixed in hibernate-memcached?

Original comment by ingen...@gmail.com on 18 Feb 2011 at 7:08