<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
I am not shutting down the client, though I tried that as well -- does
not help.<br>
Only System.exit() helps reliably, return from main or unhandled
exception make the Java to stuck as I described.<br>
<pre class="moz-signature" cols="72">--
Alexander Zaitsev
AMG Lab Sarl
</pre>
<br>
<br>
Dustin Sallings wrote:
<blockquote cite="mid:D6D0701B-3F55-47C4-81A6-17322E203BA8@spy.net"
 type="cite"><br>
  <div>
  <div>On May 12, 2008, at 5:52, Alexander Zaitsev wrote:</div>
  <br class="Apple-interchange-newline">
  <blockquote type="cite"><span class="Apple-style-span"
 style="border-collapse: separate; color: rgb(0, 0, 0); font-family: -webkit-monospace; font-size: 10px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">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.<br>
    </span></blockquote>
  </div>
  <div><br>
  </div>
  <div><span class="Apple-tab-span" style="white-space: pre;"> </span>Are
you shutting down the client before attempting to exit? &nbsp;Perhaps a
small code example would be good.</div>
  <div><br>
  </div>
  <div><span class="Apple-tab-span" style="white-space: pre;"> </span>2.1
allows you to run the IO thread as a daemon thread. &nbsp;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.<br>
  </div>
  <div><br>
  </div>
  <div><span class="Apple-tab-span" style="white-space: pre;"> </span>BTW,
there's a list here: &nbsp;<a moz-do-not-send="true"
 href="http://groups.google.com/group/spymemcached">http://groups.google.com/group/spymemcached</a>
(people asked for it).</div>
  <div><br>
  </div>
  <div> <span class="Apple-style-span"
 style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">
  <div style="">
  <div>--&nbsp;</div>
  <div>Dustin Sallings</div>
  </div>
  </span> </div>
  <br>
</blockquote>
</body>
</html>