[
https://issues.apache.org/jira/browse/OAK-3850?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15091765#comment-15091765
]
Chetan Mehrotra commented on OAK-3850:
--------------------------------------
Thanks Teodar for taking this up! Would be useful. Some comments
# You can have PersistentCacheStatsMBean extend from CacheStatsMBean. Then it
would allow the cache stats to be listed as part of
ConsolidatedCacheStatsMBean. Which gives insight into all cache at one place
# Would also need
## {{elementCount}} i.e. size in terms of number of entries of given type in
cache
## Size of memory occupied by the cache for that type in MVStore
# Time taken for read - Would need to see if collecting time for reads add any
significant overhead. For persistent cache time collection would be more
important when collected for read done from MVStore i.e. in readIfPresent
[~tmueller] Any other stats we can collect from underlying MVStore
> Collect and expose Persistent Cache stats
> -----------------------------------------
>
> Key: OAK-3850
> URL: https://issues.apache.org/jira/browse/OAK-3850
> Project: Jackrabbit Oak
> Issue Type: Improvement
> Components: core, documentmk
> Reporter: Teodor Rosu
> Attachments: OAK-3850-v0.patch
>
>
> Expose persistent cache statistics ( see: [Guava
> CacheStats|http://docs.guava-libraries.googlecode.com/git/javadoc/com/google/common/cache/CacheStats.html]
> )
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)