1 Reply Latest reply on Jun 14, 2010 5:01 PM by Arbi Sookazian

    Failed to connect to remote VM

    Arbi Sookazian Master

      I am trying to remote debug a JBoss 4.2.2.GA AS app running on RHEL.

       

      Here's a partial run.conf:

       

      JAVA_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=geminidev3.dev-bond0-3.wdh.intuit.com:8787,server=y,suspend=n"
         JAVA_OPTS="$JAVA_OPTS -Xms128m -Xmx6144m"
         JAVA_OPTS="$JAVA_OPTS -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000"
         JAVA_OPTS="$JAVA_OPTS -XX:MaxPermSize=256m"
         JAVA_OPTS="$JAVA_OPTS -XX:+CMSPermGenSweepingEnabled -XX:+CMSClassUnloadingEnabled"
         JAVA_OPTS="$JAVA_OPTS -Djava.net.preferIPv4Stack=true -XX:+UseConcMarkSweepGC"
         #JAVA_OPTS="$JAVA_OPTS -javaagent:jboss-profiler.jar -Djboss-profiler.properties=jboss-profiler.properties"
         #JAVA_OPTS="$JAVA_OPTS -Xrunhprof:file=dump.hprof,format=b"
         #JAVA_OPTS="$JAVA_OPTS -javaagent:$JRAT_HOME/shiftone-jrat.jar"
         #JAVA_OPTS="$JAVA_OPTS -XX:+UsePerfData"
         #JAVA_OPTS="$JAVA_OPTS -verbose:gc -Xloggc:gclogs.txt"
         #JAVA_OPTS="$JAVA_OPTS -Xloggc:gclogs.txt -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintHeapAtGC"

       

      When I try to run a remote debug session from Eclipse, I keep getting the following.  Why?  I am able to run "open geminidev3.dev-bond0-3.wdh.intuit.com 8787" from telnet session in Windows client.  So the port is open.  What is the root cause?  thx.

       

      Failed to connect to remote VM

       

      java.net.SocketException: Connection reset
      at java.net.SocketInputStream.read(SocketInputStream.java:168)
      at java.io.DataInputStream.readFully(DataInputStream.java:176)
      at java.io.DataInputStream.readFully(DataInputStream.java:152)
      at org.eclipse.jdi.internal.connect.SocketTransportService.readHandshake(SocketTransportService.java:205)
      at org.eclipse.jdi.internal.connect.SocketTransportService.access$7(SocketTransportService.java:201)
      at org.eclipse.jdi.internal.connect.SocketTransportService$3.run(SocketTransportService.java:172)
      at java.lang.Thread.run(Thread.java:595)

       

      eclipse.buildId=M20090917-0800
      java.version=1.5.0_22
      java.vendor=Sun Microsystems Inc.
      BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
      Framework arguments:  -product org.eclipse.epp.package.jee.product
      Command-line arguments:  -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.jee.product