on our rhel server 7.6 version we have the following systemctl service


and the value of LimitNOFILE is

systemctl show test-infra.service | grep LimitNOFILE

so I assume the number of open files is max 65535 per this service

is it possible to print the current of open files that are used by this service?

or how to show how many files this service is using?


If you can identify the executable run by this service (in the ExecStart= statement of the test-infra.service file), you should be able to do this using

lsof | grep executable name

possibly followed by | wc -l if you just want to count the files.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.