2011-08-11 18 views
0

私はspring appを使ってtomcat 5.5を使用していますが、メモリリークの問題があります。 私は私の春のアプリケーションでは、アプリケーションを監視するjmxに接続しようとしているとメモリリークの原因を見つけることを試みるが、私はまだできません。tomcatとspringのアプリケーションでアクティブなjmx

私は

<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" 

私aplicationContext.xmlでMbeanexporterを追加私はjconsoleを実行しますが、ない私の豆のいずれかをそこに持っています。

私はここにいくつかの方向が必要です、何かアドバイスありがとう!

答えて

1

MBeanExporterを取得するには、必ずlazy-init = falseを設定してください。そのような:トリックを行う必要があります

<bean id="exporter" class="org.springframework.jmx.export.MBeanExporter" lazy-init="false"> ... </bean>

関連する問題