debugInit.c tomcat啓動錯誤

報錯信息:java

FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)
ERROR: transport error 202: bind failed: Address already in use
ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../../src/share/back/debugInit.c:750]tomcat

 

 

解決方案:jvm

去tomcat目錄bin下找到setenv.sh腳本,註釋掉socket

#CATALINA_OPTS="-server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=7793"debug

 

去掉debug模式server

相關文章
相關標籤/搜索