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