How to configure Tomcat to support remote debugging

How do I configure Tomcat to support remote debugging?

The short answer is to add the following options when the JVM is started: -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n There are a number of ways you can do this depending on how you normally start Tomcat:

The port does not need to be set to 8000, it may be any value appropriate for your system.

Whilst this is very useful in development it should not be used in production because of both security and performance implications.

Copied from: http://wiki.apache.org/tomcat/FAQ/Developing#Q1

By javafuns on May 13, 2009 at 17:24 · Views: 1,672 · Permalink · RSS
Categorized in: Java · Tagged with: ,
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Leave a Reply


  • Highest Rated

  • My PicasaPhotos

    IMG_0878.JPG

    991e9e6688739d37aa184c38.jpg

    IMG_0639.JPG

  • RSS My del.icio.us

  • My RSS