JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510) 解决

重启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模式或改修改其他可用端口

 

posted @ 2018-07-17 12:52  Immer  阅读(7225)  评论(0编辑  收藏  举报