重启tomcat 后台出现JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510) 错误,因为tomca开启了debug,而debug端口占用导致的问题

1 ERROR: transport error 202: bind failed: 地址已在使用
2 ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
3 JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [debugInit.c:750]

解决方法:

    找出tomcat/bin 目录下的 catalina.sh 文件修改

    CATALINA_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=60222,suspend=n,server=y"

   注释tomcat debug模式或改修改其他可用端口

 

相关文章:

  • 2021-10-05
  • 2021-06-06
  • 2021-07-24
  • 2022-12-23
  • 2021-09-14
  • 2021-04-04
  • 2021-08-20
  • 2021-10-22
猜你喜欢
  • 2021-11-13
  • 2022-12-23
  • 2021-11-06
  • 2022-01-03
  • 2022-12-23
  • 2021-05-29
  • 2022-12-23
相关资源
相似解决方案