哪个 Java 分析器更好:JProfiler 还是 YourKit?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/163722/
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
Which Java profiler is better: JProfiler or YourKit?
提问by Trenton
Which profiler is better for general purpose profiling and heap analysis? 90% of our apps are standalone command line programs with substantial database and numeric processing. The other 10% are webapps/servlet container apps (with very little JSP and NO SCRIPLETS!). Target user would be Sr Software Engineer with 5-10 years of industry experience. We need support only for Sun JDK 5 and.
哪种分析器更适合通用分析和堆分析?我们 90% 的应用程序是具有大量数据库和数字处理功能的独立命令行程序。其他 10% 是 webapps/servlet 容器应用程序(只有很少的 JSP 并且没有脚本!)。目标用户是具有 5-10 年行业经验的高级软件工程师。我们只需要支持 Sun JDK 5 和。
As of writing this question (2008-10-02), JProfiler was at 5.1.4 and YourKit was 7.5. Looks like YourKit 8.0 will be released soon.
在撰写此问题时 (2008-10-02),JProfiler 为 5.1.4,而 YourKit 为 7.5。看来 YourKit 8.0 即将发布。
回答by Steve B.
If you're on jdk >=1.6_07 you might also want to look at jvisualvm which comes bundled.
如果您使用 jdk >=1.6_07,您可能还想查看捆绑的 jvisualvm。
回答by thoroughly
回答by David M. Karr
I've only used JProfiler (and some JProbe). As far as I can tell, one limitation of YourKit is that they don't appear to support JDK 1.4.2. That's not an issue for many people, but it might be.
我只使用过 JProfiler(和一些 JProbe)。据我所知,YourKit 的一个限制是它们似乎不支持 JDK 1.4.2。这对很多人来说不是问题,但可能是。
回答by james
i've used yourkit and it is a verynice profiler, the best i've ever used in java (i've used a variety of others over the years). that being said, i've never used jprofiler, so i can't give a direct comparison.
我使用过 yourkit,它是一个非常好的分析器,是我在 Java 中使用过的最好的分析器(这些年来我用过很多其他的)。话虽如此,我从未使用过 jprofiler,所以我无法进行直接比较。
回答by Javamann
Been using JProfiler for years and very happy with it. IntelliJ seems to switch their recommendation back and forth between YourKit and JProfiler so I would guess their feature sets are similar. I believe they both have trial version.
多年来一直使用 JProfiler 并且对它非常满意。IntelliJ 似乎在 YourKit 和 JProfiler 之间来回切换他们的推荐,所以我猜他们的功能集是相似的。我相信他们都有试用版。
回答by skaffman
I've used both JProfiler 4 and YourKit 7.5, and YourKit wins hands down. It's so much less invasive than JProfile, in that I'll happy run production servers with the YourKit agent installed, which I would never do with JProfiler.
我使用过 JProfiler 4 和 YourKit 7.5,YourKit 胜出。它比 JProfile 的侵入性小得多,因为我很乐意在安装了 YourKit 代理的情况下运行生产服务器,而使用 JProfiler 则永远不会这样做。
Also, the analysis tool that comes with YourKit is more intuitive (in my opinion), making it easier to get the root cause of problems.
另外,YourKit 自带的分析工具更直观(在我看来),更容易找到问题的根源。
回答by anjanb
+1 for yourkit --- using 7.0 on dev boxes in windows
not used JProfiler for a while -- cannot comment since they might have improved in the meantime.
+1 for yourkit --- 在有
一段时间没有使用 JProfiler 的Windows 开发框中使用 7.0 - 无法评论,因为它们可能在此期间有所改进。
回答by anjanb
DISCLAIMER : Alternate answer.
免责声明:替代答案。
they have various products for production monitoring/profiling UNLIKE other mostly development time tools : http://www.jinspired.com/products/jxinsight/
This post on theserverside on JDBInsight : http://www.theserverside.com/news/thread.tss?thread_id=13488
他们有各种用于生产监控/分析的产品,不像其他大多数开发时间工具:http
: //www.jinspired.com/products/jxinsight/JDBInsight 服务器端的这篇文章:http: //www.theserverside.com/news/thread .tss?thread_id=13488
DISCLAIMER : I am NOT associated with this company at any level.
免责声明:我与这家公司没有任何关联。
回答by Will Hartung
Just as an aside, you may want to consider the Netbeans profiler -- it's pretty good. But I've not used either of the two you mentioned.
顺便说一句,您可能需要考虑 Netbeans 分析器——它非常好。不过你说的两个我都没用过。
回答by Rejeev Divakaran
I have used YourKit. I have not used JProfiler. I have used OptimizeIt before. I have very good opinion about YourKit. It is very stable and good GUI and good feature list. One unique feature I have noticed is CPU profiling with and without wait time (like I/O wais) including.
我用过 YourKit。我没有使用过 JProfiler。我以前使用过OptimizeIt。我对 YourKit 有很好的看法。它非常稳定,良好的 GUI 和良好的功能列表。我注意到的一项独特功能是 CPU 分析,包括等待时间和不等待时间(如 I/O wais)。
It is priced also very reasonably (about about $1100 for 5 licenses I think)
它的价格也非常合理(我认为 5 个许可证大约 1100 美元)