Jahia Dev Forum > cache problems --...

0 (0 Good)
0 (0 Bad)

cache problems -- out of memory exception

by  asy »  2013/05/14 07:02

My server gets out of memory exception.

Looking at the head dump, I notice that 75% of the heap is occupied by:

 

One instance of "java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue" loaded by "<system class loader>" occupies 3,962,839,528 (74.70%) bytes. The instance is referenced by net.sf.ehcache.store.compound.factories.DiskPersistentStorageFactory @ 0x6c002e750 , loaded by "org.apache.catalina.loader.WebappClassLoader @ 0x6c07b04c8". The memory is accumulated in one instance of "java.lang.Object[]" loaded by "<system class loader>".
 
Keywords
java.lang.Object[]
java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue
org.apache.catalina.loader.WebappClassLoader @ 0x6c07b04c8
 
This causes out of memory and would almost require a weekly restart of our production servers.  Looking futher at the heap, indicates that there are 13,000 scheduled task under class:
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask
 
I believe ehcache is trying to write to disk, but for some reason these were never written and it grew very large, and eventually caused out of memory.
 
Additional info, is that this does not happen gradually, without warning, in 30 mins suddenly the heap will grow very large.  
 
Any idea on how to remedy this problem?
 
Regards,

 

 

  • cache problems -- out of memory exception
    2013/05/14 07:02

    asy <p> My server gets out of memory exception.</p> <p> Looking at the head dump, I notice that 75% of the heap is occupied by:</p> <p> &nbsp;</p> <blockquote> <div> One instance of &quot;java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue&quot; loaded by &quot;&lt;system class loader&gt;&quot; occupies 3,962,839,528 (74.70%) bytes. The instance is referenced by net.sf.ehcache.store.compound.factories.DiskPersistentStorageFactory @ 0x6c002e750 , loaded by &quot;org.apache.catalina.loader.WebappClassLoader @ 0x6c07b04c8&quot;. The memory is accumulated in one instance of &quot;java.lang.Object[]&quot; loaded by &quot;&lt;system class loader&gt;&quot;.</div> <div> &nbsp;</div> <div> Keywords</div> <div> java.lang.Object[]</div> <div> java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue</div> <div> org.apache.catalina.loader.WebappClassLoader @ 0x6c07b04c8</div> </blockquote> <div> &nbsp;</div> <div> This causes out of memory and would almost require a weekly restart of our production servers. &nbsp;Looking futher at the heap, indicates that there are 13,000 scheduled task under class:</div> <div> <blockquote> <div> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask</div> </blockquote> </div> <div> &nbsp;</div> <div> I believe ehcache is trying to write to disk, but for some reason these were never written and it grew very large, and eventually caused out of memory.</div> <div> &nbsp;</div> <div> Additional info, is that this does not happen gradually, without warning, in 30 mins suddenly the heap will grow very large. &nbsp;</div> <div> &nbsp;</div> <div> Any idea on how to remedy this problem?</div> <div> &nbsp;</div> <div> Regards,</div> <p> &nbsp;</p> <p> &nbsp;</p>

  • Number of messages  13
    Registration date May 14, 2013
    0 (0 Good)
    0 (0 Bad)

    Re: cache problems -- out of memory exception

    by  faissah »  2013/05/17 19:30

    Hello,

    It looks like your questions are related to an Enterprise project. To better investigate this issue, please refer to our Online Customers support or to your account manager at Jahia.

    Best Regards,

    Fabrice  (faissah)

    Number of messages  264
    Registration date
    Contact
    Share
    Feedback

    Get in touch

    Whether you are a current user or if you are just evaluating Jahia, we are here to help.

    Contact us

    Share this page