【发布时间】:2013-05-08 03:09:38
【问题描述】:
我正在使用带有 spring 应用程序的 tomcat 5.5,但我遇到了内存泄漏问题。 所以我试图在我的spring应用程序中连接jmx来监控应用程序,并尝试找出导致内存泄漏的原因,但我还不能。
我在我的 aplicationContext.xml 中添加了 Mbeanexporter
<bean id="exporter" class="org.springframework.jmx.export.MBeanExporter">
<property name="beans">
<map>
<entry key="bean:name=catalogFacadeTarget1" value-ref="catalogFacadeTarget"/>
</map>
</property>
</bean>
在 catalina.sh 中
export CATALINA_OPTS="-Dcom.sun.management.jmxremote.port=8081
-Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.managment.jmxremote.host=localhost
-Dcom.sun.management.jmxremote.authenticate=false"
我运行 jconsole,但没有任何我的 bean。
我需要一些指导,谢谢你的建议!
【问题讨论】:
标签: jmx