运行环境为 centos7.2
tomcat 为 tomcat 8.0.39.0
 
ulimit -a 
ulimit -n  解决的都是 系统的问题
 
tomcat 报too many open files  是  tomcat 进程本身 的文件打开数 受限制了
默认设置 tomcat  文件打开数为 4096
 
需要修改 tomcat.service文件
 
修改如下 
 
vi /usr/lib/systemd/system/tomcat.service
 
在 [Service] 中添加 LimitNOFILE=131070
 
参考内容如下
 

相关文章:

  • 2021-05-25
  • 2022-12-23
  • 2022-03-09
  • 2021-12-24
  • 2022-12-23
  • 2021-07-07
  • 2021-10-06
  • 2021-11-11
猜你喜欢
  • 2021-08-01
  • 2022-12-23
  • 2021-07-29
  • 2022-01-11
  • 2021-09-05
  • 2021-09-02
相关资源
相似解决方案