EJB 应用程序的 Java 分析器

发布于 2024-08-05 05:53:51 字数 319 浏览 1 评论 0原文

我有一个 Web 应用程序部署到本地 Glassfish 服务器,我想对其进行分析,以便查看代码的哪些部分访问最频繁。该代码由 JSF bean 和远程 EJB 组成,两者都部署在单个 EAR 中。我尝试使用 VisualVM 来分析我的应用程序,但是,尽管我可以成功连接到 Glassfish 服务器以及我的上下文根,但 VisualVM 似乎无法分析我自己的类(在 com.test.* 命名空间中)。我看到许多 Sun 类和其他依赖项(例如 Lucene)被访问,但没有访问我自己的类的单个实例。

因此,我的问题是:我是否做错了什么,或者这是 VisualVM 的缺点,因此我应该尝试不同的分析工具吗?

I have a Web Application deployed to a local Glassfish server which I would like to profile in order to see which parts of my code is accessed most frequently. The code consists of JSF beans and Remote EJBs, with both being deployed in a single EAR. I tried using VisualVM to profile my Application but, although I can successfully connect to the Glassfish server as well as my context root, VisualVM doesn't seem to profile my own classes (in the com.test.* namespace). I see lots of Sun classes and other dependencies such as Lucene being accessed, but not a single instance of my own classes.

My question is thus: am I doing something wrong or is this a shortcoming of VisualVM and should I therefor try a different profiling tool?

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

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

发布评论

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

评论(2

待"谢繁草 2024-08-12 05:53:51

您可以使用以下任意一项:

其中任何一个都可以连接到远程服务器并对其进行分析。 http://java-source.net/open-source/profilers 中的列表包含一些开源分析器(请注意,许多项目是 API 和库,而不是分析器本身)

You can use any of the following:

Any of them can connect to a remote server and to profile it. The list in http://java-source.net/open-source/profilers contains some open source profilers (notice that many items are APIs and libraries, not profilers per se)

离线来电— 2024-08-12 05:53:51

最新版本的 netbeans 有一个分析器。尝试一下。

The latest version of netbeans has a profiler. Try it.

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