I have written some performance tests on this. You should always have at least 1 element in memory, otherwise your performance can drop by as much as an order of magnitude.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
How can I configure ehcache to cache directly disk bypassing the in-memory cache?
I have written some performance tests on this. You should always have at least 1 element in memory, otherwise your performance can drop by as much as an order of magnitude.
Items must be moving from disk to memory only to go right back to disk. JCS can run with 0 items in memory and it will not try to respool.
http://jakarta.apache.org/turbine/jcs/