Since I am only interested in polling the stats command output I don't want the overhead of some java client slowing me down (yes it may be miniscule but in a real-time monitoring env I need all I can get).
I have since figured out how to resolve my issue and am now parsing the Telnet client outputstream to a key value pair of the statistics of memcached with a Java client to memcached; I am simply telneting into it. Thanks anyway. -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Dustin Sent: Tuesday, May 25, 2010 2:01 PM To: memcached Subject: Re: Using Java to Telnet into memcached memcached is not a telnet server (though some telnet clients work fine with our text protocol) You would be far better off using a memcached client to speak to memcached than a telnet client. It sounds like you have one that works. On May 25, 10:34 am, "Tim Sneed" <[email protected]> wrote: > Hey all, > > I am attempting to use a standard Java telnet client > (commons.net.TelnetClient) but am having some trouble completing the > connection. Once I run my Java test I see on the memcached console "<30 new > auto-negotiating client connection" but then it just hangs there, eventually > timing out with no exception being thrown. > > When I use the spymemcached I can connect no problem but I want to reduce > the overhead since I am only interested in sending the STATS command at a > set interval. Has anyone done this where they use a simple Telnet socket > connection from Java to issue commands rather than using a Java memcached > client such as spymemcached? Any info would be greatly appreciated, thanks! > > -ts
