Connection failed when using jconsole

Hi there,

I am quite new in java. Recently i found that jconsole can manage & monitor the system resource during the run of java application.

My question here is I kept getting the error "Connection failed" when I tried to remote monitor my application resource usage by using jmx client - jconsole to connect to my development server - jmx agent

Over jmx agent: I have started my tomcat4 with the system property which I refer to some sites

-Dcom.sun.management.jmxremote.port=port# \

-Dcom.sun.management.jmxremote.authenticate=false \

-Dcom.sun.management.jmxremote.ssl=false

remarks: \ represent continue in the same line

as the tomcat is running as a win32 service

Over jmx client (my desktop): I use jconsole.exe to try to connect to the agent with the specified port#

Secondly, can anyone tell me what jvm is currently used by my tomcat? And how can I display the list of java system properties running currently?

Thanks

[1032 byte] By [Kawablancaa] at [2007-11-27 1:37:35]
# 1

Hi,

You must run tomcat with a Java SE 5.0 (or higher) JVM in order to start the

JVM M&M JMX agent.

You might want to swithch on debug traces in jconsole in order to figure out

what is going wrong.

See here for more details:

http://blogs.sun.com/jmxetc/entry/troubleshooting_connection_problems_in_jconsole

hope this helps,

-- daniel

JMX, SNMP, Java, etc...

http://blogs.sun.com/jmxetc

dfuchsa at 2007-7-12 0:48:23 > top of Java-index,Core,Monitoring & Management...
# 2
Thanks daniel. I'll have a try
Kawablancaa at 2007-7-12 0:48:23 > top of Java-index,Core,Monitoring & Management...
# 3

Hi,

Some further info of interest:

* using 'jps -lv' you can see which java processes are running, and what options they were given.

* using jinfo <pid> you can get a number of info from a java process, in particular its

system properties...

See here for more info:

<a href="http://java.sun.com/javase/6/webnotes/trouble/TSG-VM/html/tooldescr.html">

Troubleshooting Guide for Java?SE 6 with HotSpot?VM</a>

Hope this helps,

-- daniel

JMX, SNMP, Java, etc...

http://blogs.sun.com/jmxetc

dfuchsa at 2007-7-12 0:48:23 > top of Java-index,Core,Monitoring & Management...