导出服务器中堆栈信息
jmap -dump:format=b,file=/data/wshoto/dumpfile.hprof 2288
jstack 2288> /data/wshoto/threaddump.txt
2288 为进程id
grep '打标签-监听' wshoto-bigapp-base.172.18.1.13.log|wc -l
grep '打标签-监听' wshoto-bigapp-base.172.18.1.13.log|cat -n >jiao.log
grep -m 1 "打标签-监听" jiao.log
tac jiao.log | grep -m 1 "打标签-监听"|tac
服务器是否能否连接外网:
2024-03-19 11:33:01 ping www.baidu.com
2024-03-19 11:33:17 wget http://www.baidu.com