[Logo] Terracotta Discussion Forums
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
spool thread has died  XML
Forum Index -> Ehcache
Author Message


Joined: 07/22/2011 16:40:36
Messages: 1

I keep getting enormous amount of "Elements cannot be written to disk store because the spool thread has died" errors.

Looking at the net.sf.ehcache.store.diskstore.java:
public final boolean put(final Element element) {
boolean newPut = !this.containsKey(element.getObjectKey());
try {

// Spool the element
if (spoolAndExpiryThread.isAlive()) {
spool.put(element.getObjectKey(), element);
} else {
LOG.error(name + "Cache: Elements cannot be written to disk store because the spool thread has died.");
return newPut;
} catch (Exception e) {
LOG.error(name + "Cache: Could not write disk store element for " + element.getObjectKey()
+ ". Initial cause was " + e.getMessage(), e);
return newPut;

it seems that the error is thrown if spoolAndExpiryThread is not alive.

My only suggestion is to increase the number of elements cached in the memory, thus reducing or avoiding completely the use of the hard drive.

Thank you in advance!


Joined: 07/04/2011 04:36:10
Messages: 1491

Hi ,

Can you will be more specific about what you are looking for ?? Spooling comes into picture when overflowtodisk is set to true , which means if we add new element ,then the existing element(non expired) is spooled to disk when cache memory is full. What do you mean by avoiding the use of hard drive to store elements.can you please elaborate.

Rakesh Joshi
Senior Consultant
Forum Index -> Ehcache
Go to:   
Powered by JForum 2.1.7 © JForum Team