简体   繁体   English

EJB应用程序的Java Profiler

[英]Java Profiler for EJB Applications

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. 我有一个Web应用程序部署到本地Glassfish服务器,我想对其进行分析,以查看最常访问我的代码的哪些部分。 The code consists of JSF beans and Remote EJBs, with both being deployed in a single EAR. 该代码由JSF bean和Remote EJB组成,它们都部署在单个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). 我尝试使用VisualVM来分析我的应用程序,但是,尽管我可以成功连接到Glassfish服务器以及上下文根,但VisualVM似乎没有分析我自己的类(在com.test。*名称空间中)。 I see lots of Sun classes and other dependencies such as Lucene being accessed, but not a single instance of my own classes. 我看到很多Sun类和其他依赖项(例如Lucene)都在访问中,但是我自己的类没有一个实例。

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? 因此,我的问题是:我做错什么了吗?这是VisualVM的缺点吗?我是否应该尝试使用其他分析工具?

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) http://java-source.net/open-source/profilers中的列表包含一些开源分析器(请注意,许多项目本身是API和库,而不是分析器本身)

The latest version of netbeans has a profiler. 最新版本的netbeans具有分析器。 Try it. 试试吧。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM