Lots of Confluence Ehcache sizeOf warnings
Asked by Johan Berg:

I get a lot of these in my logs for Confluence. Any idea what it is and why it is occurring? I am using the latest Confluence installation. I have one Space which has over 3000 pages, might that be the issue?

2013-12-17 15:09:56,989 WARN \[pool-1-thread-1\] \[ehcache.pool.impl.DefaultSizeOfEngine\] sizeOf value type: net.sf.ehcache.Element  
2013-12-17 15:09:56,990 WARN \[pool-1-thread-1\] \[ehcache.pool.impl.DefaultSizeOfEngine\] sizeOf value: \[ key = 1606606, value=Item{version=null,freshTimestamp=5682143665594368,value type=\[Ljava.io.Serializable;}, version=1, hitCount=0, CreationTime = 1387242105858, LastAccessTime = 1387242105858 \]  
2013-12-17 15:09:56,990 WARN \[pool-1-thread-1\] \[ehcache.pool.impl.DefaultSizeOfEngine\] sizeOf container: net.sf.ehcache.store.chm.SelectableConcurrentHashMap$HashEntry@2f37c684  
2013-12-17 15:09:56,992 WARN \[pool-1-thread-1\] \[ehcache.pool.impl.DefaultSizeOfEngine\] sizeOf The configured limit of 100 object references was reached while attempting to calculate the size of the object graph. This can be avoided by adding stop points with @IgnoreSizeOf annotations. Since the CacheManger or Cache \<sizeOfPolicy\> elements maxDepthExceededBehavior is set to "abort", the sizing operation has stopped and the reported cache size is not accurate. If performance degradation is NOT an issue at the configured limit, raise the limit value using the CacheManager or Cache \<sizeOfPolicy\> elements maxDepth attribute. For more information, see the Ehcache configuration documentation.  
2013-12-17 15:09:56,992 WARN \[pool-1-thread-1\] \[ehcache.pool.impl.DefaultSizeOfEngine\] sizeOf key type: java.lang.Long  
2013-12-17 15:09:56,992 WARN \[pool-1-thread-1\] \[ehcache.pool.impl.DefaultSizeOfEngine\] sizeOf key: 1606064  
2013-12-17 15:09:56,993 WARN \[pool-1-thread-1\] \[ehcache.pool.impl.DefaultSizeOfEngine\] sizeOf value type: net.sf.ehcache.Element


Answers:
author: David Yu
body: I created a bug report here:

<https://jira.atlassian.com/browse/CONF-32806>

comments: author: Jason Plumhoff
body: Thanks - voted and now watching this one!


author: Jason Plumhoff
body: Not just Team Calendar. I'm seeing a bunch of these that seem to be related to users viewing powerpoint documents.


author: April
body: Thanks David, I'm watching this as well


author: April
body: I too have piles of these errors. Not sure, but they appear to coincide with users viewing pages which contain an instance of Team Calendar.

Can Atlassian comment on this please?

2014-01-13 18:19:14,861 INFO \[http-8444-38\] \[confluence.rpc.auth.TokenAuthenticationInvocationHandler\] invokeAuthenticatedMethod Executing remote API method \[ getPage \] as user \[ xxxxxxxx \]  
2014-01-13 18:24:15,830 WARN \[pool-1-thread-1\] \[ehcache.pool.impl.DefaultSizeOfEngine\] sizeOf The configured limit of 100 object references was reached while attempting to calculate the size of the object graph. This can be avoided by adding stop points with @IgnoreSizeOf annotations. Since the CacheManger or Cache \<sizeOfPolicy\> elements maxDepthExceededBehavior is set to "abort", the sizing operation has stopped and the reported cache size is not accurate. If performance degradation is NOT an issue at the configured limit, raise the limit value using the CacheManager or Cache \<sizeOfPolicy\> elements maxDepth attribute. For more information, see the Ehcache configuration documentation.  
2014-01-13 18:24:15,832 WARN \[pool-1-thread-1\] \[ehcache.pool.impl.DefaultSizeOfEngine\] sizeOf key type: java.lang.Long  
2014-01-13 18:24:15,833 WARN \[pool-1-thread-1\] \[ehcache.pool.impl.DefaultSizeOfEngine\] sizeOf key: 3797  
2014-01-13 18:24:15,833 WARN \[pool-1-thread-1\] \[ehcache.pool.impl.DefaultSizeOfEngine\] sizeOf value type: net.sf.ehcache.Element  
2014-01-13 18:24:15,833 WARN \[pool-1-thread-1\] \[ehcache.pool.impl.DefaultSizeOfEngine\] sizeOf value: \[ key = 3797, value=Item{version=null,freshTimestamp=5692007008108551,value type=\[Ljava.io.Serializable;}, version=1, hitCount=7, CreationTime = 1389650148464, LastAccessTime = 1389651891324 \]

<br />

Many repetitions, then...

\[atlassian.confluence.servlet.ConfluenceServletDispatcher\] serviceAction There is no Action mapped for namespace /plugins/calendar/ical and action name dc  
-- url: /plugins/calendar/ical/dc.action \| userName: anonymous


author: Gavin Fowler
body: I'm also seeing this in my Confluence logfile (following upgrade from 5.3.4 -\> 5.4.1).

```
2014-01-13 12:33:48,037 WARN [pool-1-thread-1] [ehcache.pool.impl.DefaultSizeOfEngine] sizeOf The configured limit of 100 object references was reached while attempting to calculate the size of the object graph. This can be avoided by adding stop points with @IgnoreSizeOf annotations. Since the CacheManger or Cache &lt;sizeOfPolicy&gt; elements maxDepthExceededBehavior is set to "abort", the sizing operation has stopped and the reported cache size is not accurate. If performance degradation is NOT an issue at the configured limit, raise the limit value using the CacheManager or Cache &lt;sizeOfPolicy&gt; elements maxDepth attribute. For more information, see the Ehcache configuration documentation.2014-01-13 12:33:48,038 WARN [pool-1-thread-1] [ehcache.pool.impl.DefaultSizeOfEngine] sizeOf key type: java.lang.Long2014-01-13 12:33:48,038 WARN [pool-1-thread-1] [ehcache.pool.impl.DefaultSizeOfEngine] sizeOf key: 706492182014-01-13 12:33:48,039 WARN [pool-1-thread-1] [ehcache.pool.impl.DefaultSizeOfEngine] sizeOf value type: net.sf.ehcache.Element2014-01-13 12:33:48,039 WARN [pool-1-thread-1] [ehcache.pool.impl.DefaultSizeOfEngine] sizeOf value: [ key = 70649218, value=Item{version=null,freshTimestamp=5691863959728148,value type=[Ljava.io.Serializable;}, version=1, hitCount=0, CreationTime = 1389615224543, LastAccessTime = 1389615224543 ]2014-01-13 12:33:48,040 WARN [pool-1-thread-1] [ehcache.pool.impl.DefaultSizeOfEngine] sizeOf container: net.sf.ehcache.store.chm.SelectableConcurrentHashMap$HashEntry@6603ac51
```


Tags: confluence-administration

ehcache