2 Replies Latest reply: Aug 6, 2013 11:19 PM by 950861 RSS

    Unable to connect to remote Jrockit instance

    771306
      Hi,

      I Tried configuring Jrockit and integrating weblogic server with it.
      I was successfull in monitoring the locally deployed app through integrated weblogic in JRMC 4.0.
      Please suggest if the following steps mentioned are proper or not.

      1) Installed JRMC 4.0 .

      2. Configured in default domain/bin folder of Weblogic server setDomainEnv.cmd as follows:-(Configuring oracle Jrockit in Weblogic since i have to use Jrockit JVM instead of Sun JDK Hot Spot)
      set BEA_JAVA_HOME=C:\Program Files\Java\jrmc-4.0.0-1.6.0
      set SUN_JAVA_HOME=D:\Oracle\Middleware\jdk160_18
      if "%JAVA_VENDOR%"=="Oracle" (
           set JAVA_HOME=%BEA_JAVA_HOME%
      ) else (
      if "%JAVA_VENDOR%"=="Sun" (
                set JAVA_HOME=%SUN_JAVA_HOME%
           ) else (
                set JAVA_VENDOR=Oracle
                set JAVA_HOME=C:\Program Files\Java\jrmc-4.0.0-1.6.0
           )
      )

      3.Inturn i modified Java_Options in my local weblogic server startWebLogic.cmd and Remote weblogic server startWebLogic.cmd as follows:-

      Local weblogic server startWebLogic.cmd :-

      set SAVE_JAVA_OPTIONS="-Djava.rmi.server.hostname=ZSLW521 -Xmanagement:ssl=false,authenticate=false,port=7091,autodiscovery=true"
      export JAVA_OPTIONS

      Remote weblogic server startWebLogic.cmd :-

      set SAVE_JAVA_OPTIONS="-Djava.rmi.server.hostname=ZSLW577 -Xmanagement:ssl=false,authenticate=false,port=7091,autodiscovery=true"
      export JAVA_OPTIONS


      4. My Oracle Jrockit Start parameters are as follows:-
      C:\Program Files\Java\jrmc-4.0.0-1.6.0\bin>java -Xmanagement:port=7091,ssl=false,authenticate=false,autodiscovery=true
      and even i am getting the status as follows in command prompt:
      [INFO ][mgmnt  ] Remote JMX connector started at address zslw577:7091
      [INFO ][mgmnt  ] Local JMX connector started
      [INFO ][mgmnt  ] JDP autodiscovery started at address 232.192.1.212:7095

      Iin jrmc4.0 UI i am getting JDP (JRockit Discovered protocal)as follows:-
      1. Discovered --> JDP --> zslw577:zsl.local and
      zslw51

      2.But the Problem is that in the tabbed menu
      Discovered-->LOACL-->Getting Local JRockit Weblogic server Instance and Not Remote Server Weblogic Server Instance

      is when i am trying to establish a connection :-
      HOST:zslw521
      PORT:7091
      1.And testing the connection giving me : Unable to Connect

      Even If I want To test The JDP of Remote and Local JVM Instances by right clicking and selecting the option of START CONSOLE

      Could not open Management Console for zslw577.zsl.local.
      com.jrockit.mc.rjmx.ConnectionException: Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: 172.16.26.60; nested exception is:
           java.net.ConnectException: Connection refused: connect]
      com.jrockit.mc.rjmx.ConnectionException: Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: 172.16.26.60; nested exception is:
               java.net.ConnectException: Connection refused: connect]
           at com.jrockit.mc.rjmx.ConnectionManager.connect(ConnectionManager.java:63)
           at com.jrockit.mc.console.ui.actions.StartConsole$1.preConnect(StartConsole.java:39)
           at com.jrockit.mc.browser.utils.PreConnectJob.run(PreConnectJob.java:74)
           at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
      Caused by: java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: 172.16.26.60; nested exception is:
               java.net.ConnectException: Connection refused: connect]
           at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:338)
           at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:227)
           at com.jrockit.mc.rjmx.internal.RJMXConnection.connect(RJMXConnection.java:593)
           at com.jrockit.mc.rjmx.internal.RJMXConnection.establishConnection(RJMXConnection.java:561)
           at com.jrockit.mc.rjmx.internal.RJMXConnection.setupServer(RJMXConnection.java:545)
           at com.jrockit.mc.rjmx.internal.RJMXConnection.connect(RJMXConnection.java:145)
           at com.jrockit.mc.rjmx.internal.RJMXConnectorModel.establishConnection(RJMXConnectorModel.java:114)
           at com.jrockit.mc.rjmx.internal.RJMXConnectorModel.connect(RJMXConnectorModel.java:157)
           at com.jrockit.mc.rjmx.ConnectionManager.innerConnect(ConnectionManager.java:95)
           at com.jrockit.mc.rjmx.ConnectionManager.connect(ConnectionManager.java:61)
           ... 3 more
      Caused by: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: 172.16.26.60; nested exception is:
               java.net.ConnectException: Connection refused: connect]
           at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:101)
           at com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:185)
           at javax.naming.InitialContext.lookup(InitialContext.java:392)
           at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1886)
           at javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1856)
           at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:257)
           ... 12 more
      Caused by: java.rmi.ConnectException: Connection refused to host: 172.16.26.60; nested exception is:
           java.net.ConnectException: Connection refused: connect
           at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:601)
           at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198)
           at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
           at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:322)
           at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
           at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:97)
           at com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:185)
           at javax.naming.InitialContext.lookup(InitialContext.java:392)
           at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1886)
           at javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1856)
           at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:257)
           at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:228)
           at com.jrockit.mc.rjmx.internal.RJMXConnection.connect(RJMXConnection.java:594)
           at com.jrockit.mc.rjmx.internal.RJMXConnection.establishConnection(RJMXConnection.java:561)
           at com.jrockit.mc.rjmx.internal.RJMXConnection.setupServer(RJMXConnection.java:545)
           at com.jrockit.mc.rjmx.internal.RJMXConnection.connect(RJMXConnection.java:146)
           at com.jrockit.mc.rjmx.internal.RJMXConnectorModel.establishConnection(RJMXConnectorModel.java:114)
           at com.jrockit.mc.rjmx.internal.RJMXConnectorModel.connect(RJMXConnectorModel.java:158)
           ... 5 more
      Caused by: java.net.ConnectException: Connection refused: connect
           at java.net.PlainSocketImpl.socketConnect(Native Method)
           at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
           at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
           at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
           at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
           at java.net.Socket.connect(Socket.java:525)
           at java.net.Socket.connect(Socket.java:475)
           at java.net.Socket.<init>(Socket.java:372)
           at java.net.Socket.<init>(Socket.java:186)
           at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
           at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
           at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:595)
           at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198)
           at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
           at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:322)
           at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
           at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:97)
           at com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:185)
           at javax.naming.InitialContext.lookup(InitialContext.java:392)
           at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1886)
           at javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1856)
           at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:257)
           at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:227)
           at com.jrockit.mc.rjmx.internal.RJMXConnection.connect(RJMXConnection.java:593)
           at com.jrockit.mc.rjmx.internal.RJMXConnection.establishConnection(RJMXConnection.java:561)
           at com.jrockit.mc.rjmx.internal.RJMXConnection.setupServer(RJMXConnection.java:545)
           at com.jrockit.mc.rjmx.internal.RJMXConnection.connect(RJMXConnection.java:145)
           at com.jrockit.mc.rjmx.internal.RJMXConnectorModel.establishConnection(RJMXConnectorModel.java:114)
           at com.jrockit.mc.rjmx.internal.RJMXConnectorModel.connect(RJMXConnectorModel.java:157)
           ... 5 more

      Thanks in advance

      Regards
      RK

      Edited by: user9352887 on Jun 17, 2010 6:52 AM

      Edited by: user9352887 on Jun 17, 2010 7:07 AM