I'm using 9.1.1.
I'm interesting in monitoring the size of my code cache.
There are a couple of ways to approach this.
I would prefer to tweak what shows up under GC Monitor|Memory Pools. There are 5 MBeans of type MemoryPool in my JVM and 4 of them show up in the Investigator under GC Monitor|Memory Pools. I just need to make the 5th one show up also but don't know how.
Instead, I can edit the jmx filter to include it somehow. The value is the "used" element of the "Usage" attribute of java.lang:type=MemoryPool,name=Code Cache. Usage is a CompositeData object, like java.util.Map, with 4 elements in it. I want the value for key "used." I can't figure out the syntax for referencing that value.
I can't find anything like this in the docs, nor could I find where the existing Memory Pool data is configured in the various OOTB pbd files.