Mac OS X 上的 Java Profiler 工具

发布于 2024-08-10 03:33:53 字数 1539 浏览 2 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

烟花肆意 2024-08-17 03:33:53

如果可以选择 Java 6,也许您可​​以尝试 VisualVM。这个很好的 在 Mac 上设置 Sun 的 VisualVM OSX 博客文章解释了如何让它在 Mac OSX 上运行。

或者获取 Yourkit 的开源许可证,这确实是一个非常好的工具 Malaxeur指出。

Maybe you could give VisualVM a try, if Java 6 is an option. This nice Setting up Sun's VisualVM on Mac OSX blog post explains how to get it working on Mac OSX.

Or get an open source license for Yourkit which is indeed a very good tool as Malaxeur pointed out.

绅刃 2024-08-17 03:33:53

我在 Mac OS X 上使用 JProfiler,我非常高兴与它。我不知道你为什么写它不支持 OS X,他们甚至在他们的网站上有 DMG 下载。这是一个昂贵的软件 - 我建议联系他们的销售人员。大多数公司都乐意向开源项目捐赠许可证。

鲨鱼是古老的工具。最新的 XCode 附带了 Instruments。一个基于 DTrace 设计精美的分析应用程序。它可以分析 Java 应用程序,但您无法达到使用为检测 Java 构建的工具所获得的详细程度。

另一种选择是使用 TPTP。 Eclipse 插件可以在 OS X 上运行,但代理控制器则不能。您可以运行虚拟化 Linux(我使用 VMWare Fusion,但您可以使用 FOSS 替代方案 Virtualbox)并在那里运行 Tomcat。您可以在 OS X 上连接 TPTP 并分析 Linux 机器上运行的应用程序。

I'm using JProfiler on Mac OS X and I'm very happy with it. I don't know why you wrote that it doesn't support OS X, they even have a DMG download on their site. It is an expensive piece of software - I would suggest contacting their sales. Most companies are happy to donate licenses to open source projects.

Shark is the old tool. The latest XCode comes with Instruments. A gorgeously designed profiling application based on DTrace. It can profile Java application, but you won't come close to the level of details you will get with tools built to instrument Java.

Another option is to use TPTP. The Eclipse plugin works on OS X, but the agent controller does not. You can run a virtualized Linux (I use VMWare Fusion, but you can use the FOSS alternative, Virtualbox) and run your Tomcat there. You can connect the TPTP on the OS X and profile the application running on the Linux box.

流星番茄 2024-08-17 03:33:53

我推荐你的套件。它是迄今为止我用过的最好的 Java 分析器(尽管它有点昂贵)。

http://www.yourkit.com/

虽然需要花钱,但您可以获得试用许可证。

编辑:看起来他们提供了开源许可证(免费)。如果你能得到它,那就去吧:http://www.yourkit.com/purchase/索引.jsp

I'd recommend Yourkit. It's by far the best Java profiler I have used (although it's somewhat costly).

http://www.yourkit.com/

Although it costs money, you can get trial licenses.

Edit: Looks like they offer an Open Source license (for free). If you can get it, go for it: http://www.yourkit.com/purchase/index.jsp

情深如许 2024-08-17 03:33:53

请注意,Shark 不适用于以 64 位模式运行的 Java。对于 OS X 10.6,java 默认以 64 位运行。如果在 java 启动时给它“-d32”标志,它将以 32 位模式运行。将其与“-agentlib:Shark”标志结合起来,然后启动 Shark。您现在应该能够使用 OS X 10.6 和 Shark 分析您的 Java 程序。如果在 32 位模式下分析 Java 是可以接受的,那么这可能对您有用。

Be aware that Shark does not work with Java running in 64-bit mode. With OS X 10.6 java runs in 64-bit by default. If you give java the "-d32" flag when it starts, it will run in 32 bit mode. Combine this with the "-agentlib:Shark" flag, and then start Shark. You now should be able to profile your Java program using OS X 10.6 and Shark. If profiling Java in 32-bit mode is acceptable, then this might be of use to you.

心碎无痕… 2024-08-17 03:33:53

我不确定让该项目在 Netbeans 下运行有多难...但是如果您可以轻松做到这一点,那么探查器应该可以毫无问题地工作。

正如其他人指出的那样,VisualVM 和 Yourkit 也都很好。

I am not sure how hard it would be to get the project working under Netbeans... but if you can do that without much trouble then the profiler should work without issue.

VisualVM and Yourkit, as pointed out by the others here, are both good as well.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文