hibernate is okay, but I don’t know why want to collect garbage straight away. I mean, gc will be called when there’s no space left, so you don’t have to worry about running out of memory (in this situation). And when garbage collection is initiated by VM, it will be more efficient in time, than calling GC manually every time






















