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

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM