English 中文(简体)
memcached监控
原标题:
  • 时间:2009-04-08 21:23:05
  •  标签:

最好的方法是什么监控<代码> memcached > < /代码从Java应用程序在Linux机器上?我想等信息:

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

问题回答

我知道这个问题是旧的:

但是对于一些快速监测运行memcached系统:在ubuntu ()

$ sudo apt-get install libmemcached-tools

这包括一些方便的工具。特别是,我使用的是<强> memcstat < /强>

$ watch -n1 -d  memcstat --servers localhost 

这将显示很多方便的信息比如:

curr_connections: 5
total_connections: 26
get_hits: 202
get_misses: 12
bytes_read: 1650
bytes_written: 74345

这是非常方便的,因为它不需要编写一行代码,和更好的会告诉你如果你缓存基础设施也像您预期的那样工作。

这里有一些< a href = " http://www.netuality.ro/monitoring-memcached-with-cacti/tools/20060802 " rel = " nofollow noreferrer " > memcached信息监测< / >和< a href = " http://code.google.com/p/memcached/wiki/HowToMonitor " rel = " nofollow noreferrer " > < / >另一个列表。

Memcached从Java是一个很奇怪的选择。我很好奇为什么你选择它。在Java缓存解决方案倾向于围绕着,说,< a href = " http://ehcache.sourceforge.net/ " rel = " nofollow noreferrer " > EHCache < / >或< a href = " http://www.terracotta.org/ " rel = " nofollow noreferrer " > Terracotta < / >。这是一个< a href = " https://stackoverflow.com/questions/383920/what-is-the-best-library-for-java-to-grid-cluster-enable-your-application/383929 # 383929 " >更多Java缓存解决方案的完整列表< / >。





相关问题
热门标签