问题是:在eclipse中启动tomcat时出现超时错误,并且在调试模式下根本无法启动。
调试模式错误:
FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)
ERROR: transport error 202: connect failed: Connection refused
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:741]
正常模式错误: Server Tomcat v7.0 at localhost was unable to start within 45 seconds. If the server requires more time...
请不要在没有部署任何应用程序的情况下启动Tomcat。
我已经检查了端口,但不能确定是否使用了它们。
有什么想法吗?
解决方案是为tomcat启动脚本(Xms和Xmx VM参数)添加内存,并增加超时时间。这样,该过程将永远不会触发超时。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句