Increase Open File Limit Tomcat CentOS 7

Posted . Visible to the public.
  1. check PID
systemctl status tomcat

  1. Check max open file
cat /proc/<PID>/limits
  1. create config file
mkdir -p /etc/systemd/system/tomcat.service.d/
vim /etc/systemd/system/tomcat.service.d/limits.conf
[Service]
LimitNOFILE=8192
  1. reload and restart service
systemctl daemon-reload
systemctl restart tomcat
Dinh Tran
Posted by Dinh Tran to Dinh Tran's deck (2019-10-07 06:27)