跟踪tomcat webapp中的内存使用情况 [英] Tracking memory usage in a tomcat webapp

查看:241
本文介绍了跟踪tomcat webapp中的内存使用情况的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在tomcat java webapp中有没有可用于跟踪内存使用情况的好工具?我正在寻找可以按类别或包裹分类的东西。

Are there any good tools available to track memory usage In a tomcat java webapp? I'm looking for something that can give a breakdown by class or package.

谢谢,J

推荐答案

我使用Netbeans IDE,它能够分析任何类型的Java项目,包括webapps。在Netbeans中完成项目设置后,只需单击配置文件并回答几个简单的问题。

I use the Netbeans IDE and it is able to profile any type of Java project including webapps. Once you have the project setup in Netbeans you just click Profile and answer a few easy questions.

创建一个新项目并将现有代码导入其中非常容易。

It is very easy to create a new project and import your existing code into it.

你可以看到此处的屏幕截图: http://profiler.netbeans.org/

You can see screenshots of this here: http://profiler.netbeans.org/

您可以从这里下载Netbeans: http://www.netbeans.org/

You can download Netbeans from here: http://www.netbeans.org/

VisualVM也可能适合您。还有许多可用的插件。自JDK 6更新7以来,VisualVM一直随JDK一起提供。您可以在此处查看: https:// visualvm .dev.java.net /

VisualVM may also work for you. There are also a number of plugins available for it. VisualVM has been shipping with the JDK since JDK 6 update 7. You can check it out here: https://visualvm.dev.java.net/

这篇关于跟踪tomcat webapp中的内存使用情况的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆