如何在spring + tomcat应用程序中监视内存? [英] how to monitor memory in a spring + tomcat application?

查看:61
本文介绍了如何在spring + tomcat应用程序中监视内存?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个我要优化的spring应用程序,它使用了很多内存,很少有人使用它是可以的,但是数字稍微增加了一点,我也不知道从哪里开始.有没有办法知道哪些类和方法占用哪种资源?

i have a spring application that i want to optimize , its using much memory, it was fine when few people used it, but numbers scaled a little and i have no idea where to start . Is there a way of knowing which class and methods take what kind of resources ?

推荐答案

我认为JMX将是一个好的开始.使用Spring的JMX支持,可以很容易地将您的bean配置为与JMX集成.

I think JMX will be a good start. Using Spring's JMX support, it will be very easy to configure your beans to integrate with JMX.

http://static.springsource.org/spring/docs/3.0.5.RELEASE/reference/jmx.html

这篇关于如何在spring + tomcat应用程序中监视内存?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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