We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(10)
Java 1.6 附带了一个基本的分析器:
jvisualvm
。它与java
和javac
位于同一目录中。Java 1.6 comes with a rudimentary profiler:
jvisualvm
. It is in the same directory asjava
andjavac
.您可以看一下这个问题的答案:开源java分析器
You can take a look at the answers to this question: open source java profilers
Netbeans 内置了一个相当不错的 Java 分析器。
Netbeans has a pretty decent Java profiler built in.
虽然不是 OpenSource,但我个人非常喜欢 YourKit - 它具有出色的可视化效果并且非常易于使用。
While not OpenSource, I personally really like YourKit - it has great visualization and is really easy to use.
最新 Java 6 JDK 中的“jvisualvm”工具包含一个探查器(来自 Netbeans),可以附加到已运行的程序,从而使初始调查变得非常简单。
The "jvisualvm" tool in the latest Java 6 JDK contains a profiler (from Netbeans) and can attach to an already running program, making it very simple to do initial investigations.
JRockit Mission Control,它不是开源的,但它是一个您可以免费使用商业分析器进行开发。 在这里您可以阅读新增内容在最新版本中。
JRockit Mission Control, it's not open source, but it's a commercial profiler you're free to use for development. Here you can read what's new in the latest release.
据说 Eclipse TPTP 可以将其分析器附加到 Java 进程,但我永远无法让它正常工作。 NetBeans Profiler 是迄今为止最容易附加到外部进程的。
获得分析数据或堆转储后,我选择的毒药是 Eclipse Memory Analyzer 来执行以下操作:分析。
Supposedly Eclipse TPTP can attach its profiler to Java process but I could never manage to get it work nicely. NetBeans Profiler is by far the easiest to attach to external processes.
Once you have your profiling data or heap dump, my choice of poison is Eclipse Memory Analyzer to do the analysis.
并非所有工具都是开源的,但您可以在 http:// 找到所有可用工具的列表。 javatoolbox.com/categories/profiling-debugging
每个工具都引用了其建议的简短描述。
Not all the tools are open source, but you can find a listing of all the available tools at http://javatoolbox.com/categories/profiling-debugging
Each tool is referenced with a short description of what it proposes.
我非常喜欢 Jrat 的 Java 分析:http://jrat.sourceforge.net/
免费开源 C适用于 Windows 的内存泄漏(和其他检测器):duma (http://duma.sourceforge.net/)。它不像 Valgrind 那样容易使用(你需要编辑你的源代码,而且它没有那个漂亮的“不报告这个”选项 - 无论如何我还没有找到它)。适用于 Windows 的类似 Valgrind 选项都是商业的(IBM 的 Purify 似乎是最好的,但许可证相当昂贵)
我使用 gcc 工具在 Windows 上进行 C 优化,我认为 gcov 是用于分析的(可能是错误的,还没有)有一段时间没用过)
I liked Jrat a lot for Java profiling: http://jrat.sourceforge.net/
Free open source C memory leak (and other detector) that works in Windows: duma (http://duma.sourceforge.net/). It's not as easy to use as Valgrind (you need to edit your sources and it doesn't have that nifty "do not report this" option - i've not found it yet anyway). The like-Valgrind options for Windows are all commercial (IBM's Purify seems the best but the license is quite pricy)
I do C optimization on windows using the gcc tools, gcov I think is what is used for profiling (might be wrong, haven't used it in a while)
尝试拍摄“堆栈快照”。 这是无分析器的替代方案。
这不仅仅是一张漂亮的脸,而且是有结果的。
Try taking "stackshots". It's the no-profiler alternative.
It's not just another pretty face, but it gets results.