tags:

views:

696

answers:

1

What is the best way to monitor memcached from a Java application on a Linux machine? I would like information such as:

1) Memory used by each object
2) Number of items evicted for reclaiming memory 3) etc..

+1  A: 

Here is some information on memcached monitoring and another list.

Memcached from Java is a bit of an odd choice though. I'm curious why you chose it. Caching solutions on Java tend to revolve around, say, EHCache or Terracotta. Here is a more complete list of Java caching solutions.

cletus
Is there anything about the Java client that makes you say it's an "odd choice" other than it not being a common choice? Also, from the question, it's not clear if the application(s) using memcached are Java-based, or if he just wants the monitoring to be
matt b
Also also, using memcached as a caching solution would enable other clients on other platforms to interact with the cached data too, wouldn't it? Unlike ehcache?
matt b
I mean "odd" as in unusual not necessarily bad. Memcached is primarily associated with PHP. Java-specific solutions will be able to use Java serialization methods (inbuilt and customized) and generally just fit better. Of course there mgiht be another reason like also using PHP, .Net, etc.
cletus