ehcache does not remove Element from memory on eviction
问题 ehcache 2.5 timeToIdleSeconds="1800" (30 minutes), so I expect element to evict after 30 minute of being idle 30 minutes after last Element usage I still can see that cache is full of elements Forcing GC and taking heap dump shows, that elements are still in the memory getSize() returns positive number and getKeys() returns keys as expected (getKeys() does not check elements expiry) getting particular element, though results in NULL value, meaning that it was expired. getKeysWithExpiryCheck()