I have a web application deployed on a remote tar server, and it has Jmx turned on.
I can telnet to the telecommunication server i.e.
see the flag @: / tmp $ telnet & lt; Remote-ip & gt; 5555 & lt; Remote-IP & gt; ... & lt; Remote-IP & gt; Trying to connect. Escape character is '^]' ¿½ I¿½sr5javax.management.remote.message.HandshakeBeginMessage�, � � 6profilestLjava / lang / String; Lversionq ~ xppt1.0 ^] Telnet & gt; Q connection closed but I can not connect to it using my jaconosol
$ java_home / bin / java -cp $ javo_home / lib / jconsole.jar: $ java_home / Lib / tools.jar: pm-common / lib / jmxremote_optional-1_0_1_3.jar sun.tools.jconsole.JConsole service: jmx: jmxmp: // & lt; Remote-ip> 5555 I have tried to do this with the following Java versions, but I get 'connection failure' in both instances.
## where JAVA_HOME = / opt / java / 64 / jdk1.5.0_22 Java version "Lk5k0_22" Java (TM) 2 Runtime Environment, Standard Edition (build Lk5k0_22 B 03) Java Hotspot (TM) 64-bit server VM (1.5.0_22-B3, composite mode creation) ## Where Java / HTML / / / Java / 64 / JDK 1.6.0_17 Java version "1.6.0_17" Java (TM) SE Runtime Environment (1.6.0_17-B4) Built Java HotSpot (TM) 64-bit server VM (14.3-B001, composite mode creation) What Near you Consider how to debug (ie know what is wrong)?
Ensure that you are running your application with the following Java properties set < pre> -Dcom.sun.management.jmxremote.port = 9005 -Dcom.sun.management.jmxremote.authenticate = false -Dcom.sun.management.jmxremote.ssl = false < P> Try connecting now if you want to debug it, you can run jconsole with the following command jconsole -J-Djava.util.logging.config.file = Path_to_logging.properties_for_jconsole Below is the content of logging. Properties file
logging. Properties handler = java.util.logging.ConsoleHandler .level = information java.util.logging.ConsoleHandler.level = FINEST java .atil.logging.ConsoleHandler.formatter = \ java.util.logging.SimpleFormatter // javax.management.remote use FINER or FINEST for .level - FINEST is // very enthusiast ... javax.management.level = FINEST javax jconsole run pop-ups to display pop up a separate window
Comments
Post a Comment