ehcache full GC

228 views
Skip to first unread message

Yoder Plascencia

unread,
Oct 5, 2017, 10:57:16 AM10/5/17
to ehcache-users

Greetings community 
I had an incident with consecutive full GC that provoked the JVM expend more time releasing memory than application execution, in consequence we got a poor performance, sadly when I got a thread dump and a heap dump I condn`t find blocked threads and I just found 3.5 GB of my 6 GB heap size. The biggest object in my heap is an Ehcache class that is making Disk overflow with 1.5 GB size.
I found some posts about Ehcache problem with huge memory heaps and full GC:


My questions are: 
¿Is my incident caused for some ehCache issue?
¿Am I using a bad ehCache config such as eternal=true or the max elements on memory?
¿How can I find the origin/solution of my performance problem?



Environment:
 OS: Linux (2.6.32-358.el6.x86_64)
    Architecture: amd64 64bit
    Java Home: /usr/java/jdk1.7.0_51/jre
    Java Version: 1.7.0_51
    JVM: Java HotSpot(TM) 64-Bit Server VM (24.51-b03, mixed mode)
    Java Vendor: Oracle Corporation


Ehcache version: 2.0.4
Config: (I`m only using myCompanyCache)

<defaultCache
            maxElementsInMemory="100000"
            eternal="true"
    overflowToDisk="true"
    diskPersistent="false"
    memoryStoreEvictionPolicy="LFU">
    </defaultCache>
<cache name="myCompanyCache" 
    maxElementsInMemory="100000"
            eternal="true"
    overflowToDisk="true"
    diskPersistent="false"
    memoryStoreEvictionPolicy="LFU">
</cache>
<cache name="SimplePageCachingFilter" 
    maxElementsInMemory="100000"
            eternal="true"
    overflowToDisk="true"
    diskPersistent="false"
    memoryStoreEvictionPolicy="LFU">
</cache>
<cache name="net.sf.ehcache.hibernate.SingletonEhCacheRegionFactory"
    maxElementsInMemory="100000"
            eternal="true"
    overflowToDisk="true"
    diskPersistent="false"
    memoryStoreEvictionPolicy="LFU">
</cache>
</ehcache>



Screen Shot 2017-10-05 at 09.52.25.png
image009.png

Louis Jacomet

unread,
Oct 6, 2017, 7:41:04 PM10/6/17
to ehcache-users
Hi,

First of all, if you can, please upgrade the Ehcache version - 2.0.4 is ancient.

Second, the memory analysis screenshot you attached has such a bad resolution that it is impossible to read.

Third it will be extremely hard to diagnose anything serious if you do not have an idea of the memory usage at peak time, since the 3.5GB could be perfectly "normal" usage for your application and the 2.4GB be the actual problem.

Regards,
Louis

--
You received this message because you are subscribed to the Google Groups "ehcache-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ehcache-user...@googlegroups.com.
To post to this group, send email to ehcach...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ehcache-users/90d46f45-3301-45ce-b213-093117fe7a33%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages