导出服务器中堆栈信息

 

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

posted @ 2024-11-11 15:11  小晓风  阅读(6)  评论(0编辑  收藏  举报