I filed https://bugs.openjdk.java.net/browse/JDK-8087107 and attached a
patch to the ticket that exposes some useful code cache stats as perf data
counters:

$ jcmd <pid> PerfCounter.print | grep -i "sun\.ci\."
sun.ci.codeCacheCapacity=6291456
sun.ci.codeCacheMaxCapacity=6291456
sun.ci.codeCacheMethodsReclaimedNum=1030
sun.ci.codeCacheSweepsTotalNum=93
sun.ci.codeCacheSweepsTotalTimeMillis=63
sun.ci.codeCacheUsed=3386880
...

At Twitter, we've found this useful for easy monitoring of code cache
activity, and would like to see this integrated into OpenJDK.

thanks!
-- ramki

Reply via email to