Disk backed object cache or heap with swap
I have a Java application that maintains a cache of objects that are a little expensive to recreate. The numbers of objects needs to be increased. I was wondering if there is any benefit to using a disk backed cache, like ehcache, instead of just allowing the Java heap to begin to be swapped in and out of memory. Are there any pointers or information that can provide any insights before prototyping a solution and trying it?