To debug remote Java application
Step 1: Start the application in debugging mode
java -Xdebug-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=<debug-port> <ClassName>
-Xdebug
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9999
Configure JMX for remote monitoring:
-Dcom.sun.management.jmxremote.port=33333
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote=true
-Dorg.apache.jasper.compiler.disablejsr199=true
Read full article from Java Remote Debug with Eclipse
No comments:
Post a Comment