[ 
https://issues.apache.org/jira/browse/OAK-3850?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15092002#comment-15092002
 ] 

Teodor Rosu commented on OAK-3850:
----------------------------------

After a quick inspection:

1. In this case the following methods will return zeros: _getTotalLoadTime_, 
_getAverageLoadPenality_, _getEvictionCount_, _getElementCount_(see 2) , 
_getMaxTotalWeight_, _estimateCurrentWeight_.

2. *element count* 
- NodeCache would need a "get size" operation that would translate to a 
MultiGenerationMap "get size" operation
- the general MultiGenerationMap can contain the same element in multiple 
generations ( CacheMaps )
- as a result the size is not accurate in the general case

*cache memory size for a type*
- looking at the MVStore, I don't think it's possible to compute the amount of 
space used by individual Maps

3. I agree. Impact on performance needs proper investigation. I will look into 
this and get back with numbers. 

> 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)

Reply via email to