I am runnning a rails application using JRuby 1.2 + Apache Tomcat.
application runs out of memory and throws an ‘Heap:Out of memory
after serving a few requests. The problem persists even after increasing
heap size only thing it gets delayed.
On profiling the memory, i found that the tenured generation / older
generation space keeps increasing and after reaching a maximum threshold
runs on it but it doesnt clean up the entire space (only minimall).
Eventually it gets filled up and throws OOM exception.
So i guess JRuby holds objects for a long time without releasing it?
assumption correct? Is this fixed in later versions?