Hi ,
We are monitoring the applications using the verboseGC. And in our application we have large number of finalize method. We have observed through VerboaseGC logs that lots of Finalize objects has queued up on each GC cycle.
And We know that the garbage collector needs a minimum of two cycles (maybe more GC cycles) to reclaim Finalize objects and needs to retain all other objects reachable from them during this process. But is there any other way to tune this problem irrespacting of rewrite the application code again.
Please help me on this.
VerboaseGC logs:
Few sample of finalization objects queued parameter in GC logs:
<finalization objectsqueued=" 198" />
<finalization objectsqueued=" 3960" />
<finalization objectsqueued=" 1102" />
<finalization objectsqueued=" 690" />
<finalization objectsqueued=" 63" />
<finalization objectsqueued=" 206" />
<finalization objectsqueued=" 75" />
<finalization objectsqueued=" 1034" />
<finalization objectsqueued=" 740" />
<finalization objectsqueued=" 684" />
<finalization objectsqueued=" 1110" />
<finalization objectsqueued=" 762" />
<finalization objectsqueued=" 1142" />
We are monitoring the applications using the verboseGC. And in our application we have large number of finalize method. We have observed through VerboaseGC logs that lots of Finalize objects has queued up on each GC cycle.
And We know that the garbage collector needs a minimum of two cycles (maybe more GC cycles) to reclaim Finalize objects and needs to retain all other objects reachable from them during this process. But is there any other way to tune this problem irrespacting of rewrite the application code again.
Please help me on this.
VerboaseGC logs:
Few sample of finalization objects queued parameter in GC logs:
<finalization objectsqueued=" 198" />
<finalization objectsqueued=" 3960" />
<finalization objectsqueued=" 1102" />
<finalization objectsqueued=" 690" />
<finalization objectsqueued=" 63" />
<finalization objectsqueued=" 206" />
<finalization objectsqueued=" 75" />
<finalization objectsqueued=" 1034" />
<finalization objectsqueued=" 740" />
<finalization objectsqueued=" 684" />
<finalization objectsqueued=" 1110" />
<finalization objectsqueued=" 762" />
<finalization objectsqueued=" 1142" />
Comment