Bootstrap FreeKB - Garbage Collection and Memory Visualizer - Resolve "At one point x objects were queued for finalization"
Garbage Collection and Memory Visualizer - Resolve "At one point x objects were queued for finalization"


This assumes you have analyzed a native_stderr.log in Garbage Collection and Memory Visualizer, and one of the tuning recommedations is:

"At one point ### objects were queued for finalization. Using finalizers is not recommended as it can slow garbage collection and cause wasted space in the heap. Consider reviewing your application for occurrences of the finalize() method. You can use IBM Monitoring and Diagnostic Tools - Memory Analyzer to list objects that are only retained through finalizers."

Determine if the applications running on the JVM are using the finalize() method. If they are, consider updating the apps to not use the finalize() method.

The number of objects queued for finalization can be visualized by selecting the Line plot tab, then select the Data selector tab, and then check Objects queued for finalization. In this example, the blue line near the top of the chart is the maximum heap size, the line with the saw tooth pattern is the heap usage, and the dark blue line at the bottom are the number of objects queued for finalization.




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


Please enter e48312 in the box below so that we can be sure you are a human.