I am not shutting down the client, though I tried that as well -- does
not help.
Only System.exit() helps reliably, return from main or unhandled
exception make the Java to stuck as I described.
--
Alexander Zaitsev
AMG Lab Sarl
Dustin Sallings wrote:
On May 12, 2008, at 5:52, Alexander Zaitsev wrote:
When
I switched from Danga to spymemcached, the program stopped to quite
normally. The main() finishes, but Java process does not exit. I have
added explicit System.exit() call and it seemed to help, but not
always. Sometimes JVM still fails to exist and waits on unknown
condition. Below is the thread dump.
Are
you shutting down the client before attempting to exit? Perhaps a
small code example would be good.
2.1
allows you to run the IO thread as a daemon thread. It's a little
dangerous as you can issue a bunch of async commands and then kill it
before it has time to process them all, but it's there.
|