Skip to main content

Dynamic Cache Statistics Collector and Visualizer for IBM WebSphere Application Server

A tool that collects and visualizes statistics that provide insight into the state, health, performance, composition, and efficiency of the cache.

Date Posted: February 6, 2007

alphaworks tab navigation


Update: April 21, 2009
New version enables collection of cache statistics in the CSV format, offering an alternative to the existing SVG visualization. The CSV format gives the user the choice to personalize the visualizer, like a typical spreadsheet chart.

1. Can you provide a sample use of the DynacacheStatistics.py script?

$WAS_HOME\bin> wsadmin -f DynaCacheStatistics server1 server1_stats.txt "-nodeName node1 
	-cacheInstance services/cache/cacheone -sleepUnit minutes -sleepInterval 15 -fileAppend"

Note: The command constituting the above two lines should be run in a single line on the wsadmin prompt.

2. How do I export cache statistics collected to a CSV file that can be imported into Microsoft Excel?

Set the outPutFileExt property in setup.txt to csv and the quantitativeLevelUpperBound property to 0, and then rerun the DynaCacheStatisticsParser.bat file. This action will generate a CSV file of the collected statistics that can be imported and charted in Excel.

3. How do I prevent the normalization of the cache statistic values?

Set the quantitativeLevelUpperBound property in setup.txt to 0 and rerun the DynaCacheStatisticsParser.bat file.

4. How do I convert the SVG file generated to a JPEG file?

Use the Apache Batik open-source SVG rasterizer, as follows:

    java -jar batik-rasterizer.jar -m image/jpeg -q 0.8 chart.svg

(See this article on developerWorks: Tip: Create JPEGs automatically with SVG: Use Scalable Vector Graphics to create images by the dozen.)

5. Where can I find further information about the DynaCache component of WebSphere®?

6. Where can I find more information about the DynaCache Mbean?

Please see the Disk cache enhancements page.

7. What are some of the known limitations of this technology?

The cache statistic visualization is static. The technology cannot collect and visualize the statistic at the same time. It cannot show the running state of the system.

8. Does this tool work with Sun's 1.5 Java™ Virtual Machine (JVM)?

Yes, but you must add a xerces.jar in the lib directory.of the unzipped dynacache.zip. The xercesImpl.jar file can be downloaded from the Apache Web site.

9. Do you have some data that we can use for testing the Visualizer?

Sample data files (trade1.txt and trade2.txt) are included in the downloadable dynacache.zip file.

10. What kind of performance overhead does the tool have?

The tool has two aspects:

The overhead of invoking JMX™ Mbean API calls is unintrusive as compared to the monitoring provided by services such as PMI or third-party JMX vendors.

Trademarks