Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-1844

Create a JConsole plugin to display DataCache statistics and help tune the cache

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.1.0
    • datacache, instrumentation
    • None

    Description

      I have created a simple JConsole plugin that will enable a OpenJPA user to view DataCache statistics and it also allows for some runtime interactions with the cache. These changes are going to come in two parts. The first part will be the plugin side of changes and second part is going to come via another JIRA which will feature the OpenJPA core runtime changes.

      The features that I have currently implemented are:

      • A view of cache hits, reads, and writes.
      • A button to evict the entire contents of the cache.
      • A button to reset the statistics.
      • A check box to enable / disable statistics gathering
      • The ability to disable / enable caching specific types.

      I would like to add the following features:

      • Show the current DataCache configuration and show what (if any) changes have been made at runtime (ie: Stopped caching a certain type).
      • Allow changing the cache size.
      • Evict only a certain type.
      • Make some cute bar charts for hit/miss ratio.

      This works both in a JSE environment and in a WebSphere environment(sans security). I'll add more details on how to run jconsole with the plugin once I have some code committed.

      Attachments

        1. screenshot.jpg
          74 kB
          Richard G. Curtis

        Activity

          People

            curtisr7 Richard G. Curtis
            curtisr7 Richard G. Curtis
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: