如何使用 JProfiler 在 Java 中查找内存泄漏?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/9781611/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-16 07:36:35  来源:igfitidea点击:

How to find memory leak in java using JProfiler?

javamemory-managementmemory-leaksjprofiler

提问by Ronald Randon

How to find memory leak in java using JProfiler? I have been working in JProfiler for the past 1 week to find memory leak in a web application. I read some manuals and see some articles, it says see the memory usage in all objects and allocated objects views and using the allocation hot spot you can find the memory leak. I looked into it and found lot of memory used by char, string, bytes. Since i am a fresher i don't know how to figure this and solve the memory leak. Please help me over this ..

如何使用 JProfiler 在 Java 中查找内存泄漏?过去 1 周我一直在 JProfiler 中工作以查找 Web 应用程序中的内存泄漏。我看了一些手册和一些文章,它说查看所有对象和分配对象视图中的内存使用情况,并使用分配热点可以找到内存泄漏。我查看了它,发现字符、字符串、字节使用了大量内存。由于我是新手,我不知道如何解决这个问题并解决内存泄漏问题。请帮我解决这个..

Thanks in advance...

提前致谢...

回答by Ingo Kegel

See this screen castabout finding memory leaks with JProfiler.

请参阅有关使用 JProfiler 查找内存泄漏的屏幕截图