Ehcache takes much time to shutdown

48 views
Skip to first unread message

Kamal C

unread,
Jul 25, 2016, 2:05:51 AM7/25/16
to ehcache-users
Hi all,

I'm using ehcache-ee-2.9.0, JRE 7, centos 6.5. Whenever, I shutdown the application Ehcache takes much time to shutdown, (around 250 seconds)

Thread dump:

"RMI TCP Connection(2)-x.x.x.x" daemon prio=10 tid=0x00007f0344005000 nid=0x2fa2 waiting on condition [0x00007f01c8d92000]
   java.lang.Thread.State: WAITING (parking)
        at sun.misc.Unsafe.park(Native Method)
        - parking to wait for  <0x0000000735b7ee98> (a java.util.concurrent.FutureTask)
        at java.util.concurrent.locks.LockSupport.park(LockSupport.java:186)
        at java.util.concurrent.FutureTask.awaitDone(FutureTask.java:425)
        at java.util.concurrent.FutureTask.get(FutureTask.java:187)
        at com.terracottatech.offheapstore.disk.storage.FileBackedStorageEngine.flush(FileBackedStorageEngine.java:161)
        at com.terracottatech.offheapstore.disk.persistent.AbstractPersistentOffHeapCache.flush(AbstractPersistentOffHeapCache.java:40)
        at com.terracottatech.offheapstore.disk.persistent.AbstractPersistentConcurrentOffHeapMap.flush(AbstractPersistentConcurrentOffHeapMap.java:48)
        at net.sf.ehcache.store.offheap.disk.persistent.OffHeapPersistentDiskStore.dispose(OffHeapPersistentDiskStore.java:39)
        - locked <0x000000076a718df0> (a net.sf.ehcache.store.offheap.disk.persistent.OffHeapPersistentDiskStore)
        at net.sf.ehcache.store.CacheStore.dispose(CacheStore.java:342)
        - locked <0x0000000769651ae8> (a net.sf.ehcache.store.CacheStore)
        at net.sf.ehcache.Cache.dispose(Cache.java:2558)
        - locked <0x00000007681da480> (a net.sf.ehcache.Cache)
        at net.sf.ehcache.CacheManager.shutdown(CacheManager.java:1561)

Any thoughts on how to reduce the time taken to shutdown ehcache ?

Regards,
Kamal C

Louis Jacomet

unread,
Jul 25, 2016, 8:15:42 AM7/25/16
to ehcache-users
From the stack trace shown, you are using enterprise features - please go through support and no the open source forum.

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/010138dd-ec61-4479-be1d-796508a3a1b1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages