简体   繁体   English

描述java Web应用程序的启动

[英]Profile the startup of a java web application

I am having to work on a poorly written, ten year old humongous web application, deployed on IBM Websphere. 我不得不在IBM Websphere上部署一个写得不好,十年之久的庞大Web应用程序。 The problem is it takes forever (almost 40minutes) to start. 问题是需要永远(差不多40分钟)才能开始。 I have used JVM monitor in the past to analyze a running application, and memory analyzer to analyze heap dumps, but I have never worked on startup issues like this. 我过去曾使用JVM监视器来分析正在运行的应用程序,并使用内存分析器来分析堆转储,但我从未在这样的启动问题上工作过。

Is there a way to profile/analyze the application while it is starting up, without making code changes? 有没有办法在启动时分析/分析应用程序,而无需更改代码? I searched SO and I found this post. 我搜索了SO,我找到了这篇文章。 I didn't quite get how to get VisualVM to work with a web application that has not yet started. 我还没有完全了解如何让VisualVM使用尚未启动的Web应用程序。

Can anyone help me here - is it possible to use VisuaVM or any other tool (preferably free) to monitor a web application that is starting up? 任何人都可以帮助我 - 是否可以使用VisuaVM或任何其他工具(最好是免费的)来监控正在启动的Web应用程序?

JvisualVM is a great tool. JvisualVM是一个很棒的工具。 To monitor you application you should first start your container . 要监控您的应用程序,您应首先启动容器 After that, add your application to the container and start to profile and trace your application packages . 之后, 您的应用程序添加到容器中,然后开始分析和跟踪您的应用程序

Here a tutorial. 这是一个教程。

http://visualvm.java.net/api-quickstart.html http://visualvm.java.net/api-quickstart.html

Now, if you are using IBM tools, you should already have a licence for IBM Introscope ( http://www-304.ibm.com/partnerworld/gsd/solutiondetails.do?solution=23517&expand=true ) 现在,如果您使用的是IBM工具,那么您应该已经拥有IBM Introscope的许可证( http://www-304.ibm.com/partnerworld/gsd/solutiondetails.do?solution=23517&expand=true

It's focus on IBM Websphere. 它专注于IBM Websphere。 See if your company has it, and try it. 看看你的公司是否有它,并尝试一下。

Also check this out 还要检查一下

http://www.ibm.com/developerworks/java/jdk/tools/healthcenter/#download http://www.ibm.com/developerworks/java/jdk/tools/healthcenter/#download

Profile tool for IBM tools (including websphere). IBM工具(包括websphere)的配置文件工具。 I think this could solve your problem. 我认为这可以解决你的问题。 It's free and seems very close to jvisualVM. 它是免费的,似乎非常接近jvisualVM。


Edited: 编辑:

Another tool for profiling is new relic 另一种分析工具是新遗物

http://newrelic.com/ http://newrelic.com/

I've seen some good reviews about it. 我看过一些关于它的好评。

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

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