Your config looks fine to me (though a maint sleep of 1 sec is pretty aggressive and will likely cause some performance issues).  As to other branches, nothing I can do if people do not choose to send them back upstream.  That said, I am fairly confident their are no threading issues which would cause what you are seeing.  This would be the only report and the client is in heavy use by many deployments w/ no bug reports matching this.  The threading issues that do exist in the version you are running are more due to excessive locking and thread contention.  Those are mostly gone in the trunk version.  The trunk version also merged in the consistent hashing from the ketama branch, but that branch itself is way out of date and filled w/ bugs that have been fixed.  Some pretty bad.
<br><br>gw<br><br><div class="gmail_quote">On Jan 2, 2008 5:38 AM, André Cruz &lt;<a href="mailto:andre.cruz@co.sapo.pt">andre.cruz@co.sapo.pt</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello Greg.<br><div class="Ih2E3d"><br>On 2007/12/28, at 21:02, Greg Whalin wrote:<br><br>&gt; Sorry for not responding sooner. &nbsp;I have been out of town for the<br>&gt; holidays. &nbsp;This does not correspond to any known or reported bug in
<br>&gt; the Java client I am maintaining and it is in heavy use at quite a<br>&gt; few heavy installations. &nbsp;Not saying that it is out of the question,<br>&gt; but definitely not something I am aware of. &nbsp;Looking at the debug,
<br>&gt; the client is simply spitting out the response it received from the<br>&gt; server. &nbsp;How have you configured your client install (did you follow<br>&gt; the HOWTO document from the site)?<br>&gt;<br><br></div>Yes I did. Here is some code:
<br><br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;String serverList = ctx.getInitParameter(MEMCACHE_SERVERS_INIT_PARAM);<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;timeout = 1000 *<br>Long.parseLong(ctx.getInitParameter(TIMEOUT_INIT_PARAM));<br><br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;pool = 
SockIOPool.getInstance();<br><br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if (serverList != null) {<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;String[] memcaches = serverList.split(&quot; &quot;);<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if (memcaches.length &gt; 0) {<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
pool.setServers(memcaches);<br><br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br><br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;pool.setInitConn(5);<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;pool.setMinConn(5);<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;pool.setMaxConn(50);<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
pool.setMaintSleep(1000);<br><br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;pool.setHashingAlg(SockIOPool.NEW_COMPAT_HASH);<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;pool.setNagle(false);<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;pool.initialize();<br><br><br><br>I then use SockIOPool.getInstance
() in various places in my code to<br>access memcache. Are there threading issues I should be aware of?<br><br>Also, I got an email from <a href="mailto:hanson.char@gmail.com">hanson.char@gmail.com</a> saying:<br><br>&gt; Hi André,
<br>&gt;<br>&gt; I am using the java memecached client 1.6.1 with the SockIOPool<br>&gt; replaced with ketama for consistent hashing. &nbsp;I did find some<br>&gt; threading issue and fixed them. &nbsp;So currently the one I have seems to
<br>&gt; be running fine. &nbsp;Are you interested to try out my version of the java<br>&gt; memcached client to see if it still has the same problem ?<br><br><br>I don&#39;t know why he didn&#39;t submit them but maybe it would be
<br>productive if you two synched?<br><br>Thanks for the help,<br><font color="#888888">André Cruz</font></blockquote></div><br><br clear="all"><br>-- <br>Greg Whalin