This content has been marked as final. Show 3 replies
I suspect you are seeing the objects kept in the JE cache. You could reduce the cache size, but that will of course reduce performance. If you want to clear the cache, you could close the Environment, but I doubt that's what you really want.
Thank you for your reply Charles,
I guess reducing performance is better than the memory footprint going out of control and garbage collection times increasing to an unacceptable value.
I could periodically close down and reopen the environment, but that feels like a hack :)
I will look more into the following: http://download.oracle.com/docs/cd/E17277_02/html/GettingStartedGuide/cachesize.html
The point is that the JE cache is intended to hold onto memory. That's what a cache does. The objects you mentioned earlier are in the cache. There isn't a leak, that we know of. If there isn't enough room left in the heap for efficient GC, reduce the size of the JE cache or increase the size of the heap.