Tomcat configures remote debugging port

Tomcat configures remote debugging port 

 

Add any of the following lines to %CATALINA_HOME%\bin\startup.bat:

SET JAVA_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n

SET CATALINA_OPTS=-server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8787

 

1.Linxu system: Add the following content to the beginning of apach/bin/startup.sh: 

Java code   
  1. declare -x CATALINA_OPTS="-server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8788"   



2. Windows system: Add the following content to the beginning of apach/bin/startup.bat: 

Java code   
  1. SET CATALINA_OPTS=-server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8788  


3. How to use the linux open port command.  

nc -lp 8788 & (open port 8788)  


4. Check if port 8788 is open  

netstat -an | grep 8788 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327053323&siteId=291194637