1.Tomact启动很慢(在检查jar文件的地方后面,Tomact启动日志看不到报错相关信息)
查看tomcat堆栈信息,使用命令:“jstack+进程号”,看到类似如下信息:
[localhost-startStop-1]:……………
"http-nio-8082-exec-4" #23 daemon prio=5 os_prio=0 tid=0x00007fa7fc77a800 nid=0x5438 runnable [0x00007fa7b97d1000]
java.lang.Thread.State: RUNNABLE
at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:928)
at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1323)
at java.net.InetAddress.getLocalHost(InetAddress.java:1500)