Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cache Monitoring tool

 
kritika ram
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

As part of performance testing, we are looking for a tool or simpler a JSP page to monitor all the caches in the JVM. We would also like to know some cache metrics for the cache, the ones we could think of are :
-Number of cache entries present (in memory and in disk)
-Free and available memory for each cache
-Number of cache hits
-Invalidations (number of invalidations with out getting hit at least for x times)

Please help. Thanks in advance.

Kitty
 
rajesh bala
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you talking about JVM heap?. Or some custom cache your project owns?

If its a custom cache, you need to come up with the JSP page to gather metrics..

~Rajesh.B
 
rajesh bala
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Or create a MBean for getting cache metrics and then monitor using JConsole.
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I worked with a cache interface that was was implemented as a wrapper for a Map - get, put, remove, etc. I made a special InstrumentedCache version that maintains internal counters for puts, gets, misses, removal by a CacheCleaner, and so on. It also kept a static List of all instances of the cache so it was easy for a jsp (or whatever) to iterate the list and dump the counters. Is that the kind of thing you have in mind?
 
steve souza
Ranch Hand
Posts: 862
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
cross posted here....

http://www.coderanch.com/t/63519/open-source/Ehcache-monitoring
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic