hs_err_pid文件

1.查看tomcat日志
2.jvm直接停掉, 产生 hs_err_pid文件
3. 查看hs_err_pid 文件,发现有两种情况,
4. 物理内存不够,导致 out of memory 线程数达到上限
5. 查看linux 服务器 内存,发现够用, 那么只有可能是 线程数达到上限
6. ulimit -n 查看 openfile 发现 是 1024
7. vi /etc/security/limits.conf 将 soft nofile 65536 # open files (-n)
hard nofile 65536
更改为
* soft nofile 65536 # open files (-n)
* hard nofile 65536
8.保存文件 wq
9.source /etc/profile 重启
10.退出ssh
11.重新登录
12 ulimit -n 发现是 65536
13.经过一段时间 发现问题解决

发布了64 篇原创文章 · 获赞 11 · 访问量 6万+

猜你喜欢

转载自blog.csdn.net/Summer_i/article/details/90764509
Hs
PID