| Hi all, this is a cache implementation using LIRS: this algorythm needs to keep the stack to be able to make optimal decisions about what to keep vs what to not keep. It will respect the expected boundaries, and there is no expectation to reset the internal stack when all values are invalidated. In short, this is expected behaviour and not a leak. The definition of leak is for memory usage to keep growing - out of control. After closing a SessionFactory, you need to have your application drop references to the SessionFactory. Obviously that will recover the memory used for the internal cache. |