is there a possibility to see which objects will be removed with the garbage collector? I do not need the content of the object, but the class of the object is necessary.
I try to write a real time application, which creates and deletes a lot of objects and after a while the application slow down. At the moment I’m not sure whether it’s a problem of my code or from the external libraries. So perfect would be an output, which identifies all classes, which has been removed, together with their “count” (how many of this objects has been removed).
I hope somebody can help me.
Best,
Michael
You could try monitoring your application with VisualVM. There is a plugin that gives info on the garbage collector activity.
http://visualvm.java.net/plugins.html