简体   繁体   中英

Java Yourkit Profiler showing 5K+ char[] objects not getting garbage Collected, how can I tell what class is the culprit?

I have an RCP application and there is a slow memory leak and I recently started using YourKit Profiler which seems to be the best app out there for this. The question I have, is I see that over 20% of my objects char[] arrays and what I want to figure out is what class/method in my app is created all these instances as they do not seem to getting garbage collected. I am connected to a messaging server and consuming probably 500 text messages a second, but I am having a tough time using Yourkit to find the gradual memory leak. Thanks for any help.

As a YourKit developer, I can recommend to record object allocations as it's described here http://www.yourkit.com/docs/11/help/allocations.jsp

After that you'll see the places where each particular object was created. Please note, that allocation recording adds (sometime significant) profiling overhead.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM