• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Cache Monitoring tool

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Or create a MBean for getting cache metrics and then monitor using JConsole.
 
(instanceof Sidekick)
Posts: 8791
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 862
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
cross posted here....

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