在 Eclipse 中分析 Java 应用程序? (插件)
我希望在 Eclipse 中找到 Java 应用程序的瓶颈。我认为这可能有用:
http://www.eclipse. org/projects/project_summary.php?projectid=tptp.performance
还有其他好用的插件吗?
编辑 好的,它不一定是 Eclipse 插件。但那会很好。而且,我最感兴趣的是速度。
I'm looking to find bottlenecks in my Java application in Eclipse. I'm thinking this might be useful:
http://www.eclipse.org/projects/project_summary.php?projectid=tptp.performance
Any other good plug-ins to use?
EDIT OK, it doesn't necessarily have to be an Eclipse plug-in. But it would be nice. And, I'm most interested in speed.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(8)
如果可以的话,请在 Sun 中使用 jvisualvm Java 6 JDK(也是 IBM)。它开箱即用,可以回答许多初始问题。
请注意,在 Windows 上,您需要使用与要研究的程序相同的 Java 二进制文件来调用 jvisualvm,以获得最佳结果。
(visualvm 是 Netbeans 分析器的独立子集)
If you can, use jvisualvm in the Sun Java 6 JDK (IBM too). It works out of the box and can answer many of the initial questions.
Note that on Windows you need to invoke jvisualvm with the same Java binary as the program you want to investigate for best results.
(visualvm is a stand-alone subset of the Netbeans profiler)
根据我的经验,TPTP 是应该尽快逃离的东西。这是一个过度设计的混乱,几乎不可能开始工作,记录很糟糕,而且速度慢得像糖蜜。
我不知道有什么好的、免费的 Eclipse 分析插件。但是,它真的必须是一个 Eclipse 插件吗? VisualVM 自 Java 6u7 起就随 JDK 一起提供,快速且易于使用。它可能不是功能最丰富的分析器,但对我来说已经足够了。
In my experience, TPTP is something to run away from as fast as possible. It's a horribly overengineered mess, almost impossible to get to work, badly documented, and slow as molasses.
I'm not aware of any good and free profiling plugins for eclipse. But then, does it really have to be an eclipse plugin? VisualVM comes with the JDK since Java 6u7, is fast and easy to use. It may not be the most feature-rich of profilers, but has been sufficient for me.
YourKit 是一个优秀的商业分析器,具有良好的Eclipse 集成。
YourKit is an excellent commercial profiler that has good Eclipse integration.
我发现 JProfiler(商业)非常有帮助。它具有 Eclipse 集成,尽管它本身不是 Eclipse 插件,因此您可以非常轻松地调用探查器而不是常规执行会话。它具有非常好的瓶颈分析,您可以查找调整设置以降低分析器本身的开销。强烈推荐。
I found JProfiler (commercial) to be really helpful. It has Eclipse integration, although it is not an Eclipse plugin per sa', so you can very easily invoke a profiler instead of a regular execution session. It had very good bottleneck analysis and you can find-tune the settings to lower the overheads of the profiler itself. Highly recommended.
我还使用了 Netbeans profiler,它非常好。当您的 Eclipse 项目在 Eclipse 中运行时,将其设置为分析它是非常容易的。您不需要在 Netbeans 中打开该项目。
I've also used the Netbeans profiler which is pretty good. It's pretty easy to set it up to profile your Eclipse project while it is running in Eclipse. You don't need to open the project in Netbeans.
Eclipse Memory Analyser 最近给了我很多帮助。
The Eclipse Memory Analyser has been helping me a lot recently.
如果您正在寻找与 VisualVM 等效的 IBM JDK,请尝试 IBM Java Health Center:http://www.ibm.com/developerworks/java/jdk/tools/healthcenter/。它具有一些不错的分析功能,而且速度相当快。
If you are looking for a IBM JDK equivalent for visualvm, try the IBM Java Health Center: http://www.ibm.com/developerworks/java/jdk/tools/healthcenter/. It has some decent profiling capabilities, and is rather fast.
您可以随时转储调用堆栈(例如命令行上的 Ctrl-Break)。 令人惊讶的是,它非常有效。
You can always dump call stacks (e.g. Ctrl-Break on command line). It is surprisingly very effective.