I was trying to evaluate JCS and EhCache . I need to store approx 1 to 2 M instances in the cache. Which can be shared across other JVMs . EhCache throws OutOfMemory error for more than 0.4 M instances. This is the same case with JCS. I have configured disk store for both of them.
Is anyone has faced this issue earlier. I am not sure if there is any limitation on the number of instances. Please suggest?
# Disk Cache pool