Systemd and open files limit


#1 billychua

Would like to check where should i change the file for RHEL 8? I found the below link but doesn't work for rhel 8. 

Common issues :: NXLog Documentation

 

This scenario requires edits to the service file or an override. To check NXLog system limits, use the following command:

$ cat /proc/$(cat /opt/nxlog/var/run/nxlog/nxlog.pid)/limits
copy icon

On Systems not using /proc, check the system’s open file limit:

$ sysctl kern.maxfiles
copy icon

To adjust limits for nxlog, create /etc/systemd/system/nxlog.service.d/override.conf and add the following definition:

[Service]
LimitNOFILE=100000
copy icon

Update the service settings with:

$ systemctl daemon-reload
#2 gahorvath Nxlog ✓

I found the below link but doesn't work for rhel 8. 

Can you provide more information? → https://nxlog.co/community-forum/t/1521-readme-how-to-ask-questions-effectively?page=1#post-1

systemd should set the limits based on the override. If it does not maybe nxlog wasn't started via the unit you are editing, but it's really hard to say without more information - like the exact steps you took to configure the limits.