I'd like to use jconsole (provide with jdk5.0) to watch the vm that jboss4.0 uses.
According to the docs (http://java.sun.com/j2se/1.5.0/docs/guide/management/agent.html#remote), I should be able to enable local montioring by simply setting the system property 'com.sun.management.jmxremote' for example: java -Dcom.sun.management.jmxremote -jar Notepad.jar So when I do this with JBoss, I modify my set JAVA_OPTs line from this: set JAVA_OPTS= -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n %JAVA_OPTS% to this: set JAVA_OPTS= -Dcom.sun.management.jmxremote -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n %JAVA_OPTS% JBoss can no longer startup. When it does, it pukes with tons of errors. Starting with this: 22:48:11,319 INFO [ServerInfo] OS-System: Windows XP 5.1,x86 22:48:11,538 ERROR [MainDeployer] Initialization failed jboss.system:service=MainDeployer org.jboss.util.NestedRuntimeException: Error creating MBeanProxy: jboss.system:type=ServerConfig; - nested throwable: (javax.management.InstanceNotFou ndException: jboss.system:type=ServerConfig) at org.jboss.mx.util.MBeanProxyExt.(MBeanProxyExt.java:77) at org.jboss.mx.util.MBeanProxyExt.create(MBeanProxyExt.java:292) at org.jboss.mx.util.MBeanProxyExt.create(MBeanProxyExt.java:247) at org.jboss.system.server.ServerConfigLocator.locate(ServerConfigLocator.java:30) at org.jboss.deployment.MainDeployer.createService(MainDeployer.java:431) at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:237) at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:219) Does anyone know how to get jconsole workin with JBoss and JDK5.0? -peter View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3858652#3858652 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3858652 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
