开启远程debug之后,8005 关闭tomcat 又启动不了了..
netstat -lnp 未发现8005接口
eclipse 内远程链接到服务器,debug 下发现服务器线程启动也存在问题.很多线程未启动
一段时间后又发现启动正常了,看来只有8005端口收到影响,但是这服务器启动的不太流畅
咋整只能通过日志文件查看了 进入tomcat目录 主要下边的两个文件
启动用时143秒,挺长的, 没有很明显的报错信息....
28-Sep-2019 12:25:26.884 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
这条占时最大,问题就在此处
在此时发现8005端口程序也自己启动了起来,看来受上边的影响,服务程序未启动8005关闭端口程序也启动不起来.
再打开另一个日志文件
25时 有一些错误out出来,应该就是异常输出
日,看来还是hibernate 出了问题. 日志文件多么重要...
第一错误:usessl错误,这是这种环境下的要求,别的版本不曾出现
只需在请求链接后边把ssl 安全协议请求关掉
jdbc.url=jdbc:mysql://127.0.0.1:3306/zxxxx?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false
第二个错误:[ERROR] HHH000319: Could not get database metadata
后来发现是数据库名字大小写 问题,请求连接中是原先的大小写驼峰命名,后来改成小写了, linux对大小写敏感
后启动正常18秒了
28-Sep-2019 15:36:58.029 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive /home/tomcat/webapps/AppService.war has finished in 17,785 ms
28-Sep-2019 15:36:58.031 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory /home/tomcat/webapps/examples
28-Sep-2019 15:36:58.280 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory /home/tomcat/webapps/examples has finished in 248 ms
28-Sep-2019 15:36:58.280 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory /home/tomcat/webapps/manager
28-Sep-2019 15:36:58.327 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory /home/tomcat/webapps/manager has finished in 47 ms
28-Sep-2019 15:36:58.328 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory /home/tomcat/webapps/ROOT
28-Sep-2019 15:36:58.350 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory /home/tomcat/webapps/ROOT has finished in 21 ms
28-Sep-2019 15:36:58.350 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory /home/tomcat/webapps/host-manager
28-Sep-2019 15:36:58.382 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory /home/tomcat/webapps/host-manager has finished in 32 ms
28-Sep-2019 15:36:58.383 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory /home/tomcat/webapps/docs
28-Sep-2019 15:36:58.404 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory /home/tomcat/webapps/docs has finished in 21 ms
28-Sep-2019 15:36:58.416 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]
28-Sep-2019 15:36:58.440 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-8009"]
28-Sep-2019 15:36:58.444 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 18288 ms