Announcement Announcement Module
Collapse
No announcement yet.
No more Memory, Thread information in JConsole Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • No more Memory, Thread information in JConsole

    Hi all,

    i am trying to use jconsole as a JMX client to manage my spring beans in a tomcat 6.0.16 env. The problem is, tabs like Threads,Memory are disabled,though i can see my Mbeans.

    here is my configuration
    Code:
    <bean id="registry" class="org.springframework.remoting.rmi.RmiRegistryFactoryBean">
      	<property name="port" value="1099"/>
      </bean>
      
      <bean id="jmxExporter" class="org.springframework.jmx.export.MBeanExporter" lazy-init="false">
        <property name="beans">
          <map>
            <entry key="test:type=logService,name=logService" value-ref="logService"/>
          </map>
        </property>
        <property name="server" ref="mbeanServer"/> 
      </bean> 
      
      <bean id="mbeanServer" class="org.springframework.jmx.support.MBeanServerFactoryBean">
      	<property name="locateExistingServerIfPossible" value="true"/>
      </bean>
      
      <bean id="serverConnector"
          class="org.springframework.jmx.support.ConnectorServerFactoryBean">
        	<property name="objectName" value="connector:name=rmi"/>
      		<property name="serviceUrl" 
                value="service:jmx:rmi://localhost/jndi/rmi://localhost:1099/testjmx"/>
      </bean>
    <bean id="logService" class="com.test.jmx.LogServiceImpl"/>

    Any Ideas??? how to enable other tabs to view memory,threads etc. beside my mbeans . It works perfectly fine in jetty not sure what elese i have to do in tomcat, i am using java 6
    Last edited by puran; Oct 31st, 2008, 04:02 PM.
Working...
X