Systemd and open files limit

View thread

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