digdeep

凡是过去,皆是序幕。Read the fucking manual and source code.

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

tail -f catalina.out 出现警告:

 tail: inotify cannot be used, reverting to polling: Too many open files

lsof | awk '{ print $2; }' | sort -rn | uniq -c | sort -rn | head

查到是tomcat进程打开了很多文件,处理方法:

在 /etc/sysctl.conf文件中加入下面的配置:

fs.inotify.max_user_watches=1048576
fs.inotify.max_user_instances=1048576

 

sysctl -p /etc/sysctl.conf 使修改生效。再次执行 tail -f catalina.out 就可以了。

posted on 2019-07-08 18:48  digdeep  阅读(6405)  评论(0编辑  收藏  举报
不懂数据库和Web安全的架构师不是一个好的程序员。