How to set debugging in Eclipse with Java Remote Application

There is a java application execute via shell script or deployed on application server like Tomcat, Jboss.

How to set debugging manually for eclipse with Java remote application?

One reply on “How to set debugging in Eclipse with Java Remote Application”

1./ Configure JAVA_OPT in my java application

DEBUG=”-Xms32m -Xmx256m -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,address=8111,suspend=n”

java ${DEBUG} -jar ../../lib/your.jar


  • Memory option: -Xms32m -Xmx256m
  • Debug port: 8111
  • suspend can be “n” (No waiting for debug, proceed only if debug is set) or “y” (Yes, waiting for debug on the selected port)

2./ Configure Eclipse debugger – Remote Java Application

  • Click on: Run > Debug Configuration
  • At Remote Java Application, create “New launch configuration”, give a name
  • Then configure the connection and give the right port number (e.g. 8111, above)

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.