2

I have a service that sets a custom limit for open files (ulimit -n 5000) as part of its init script. My understanding is that this will be effectively for the service and its child processes. Since I'm not configuring /etc/security/limits.conf I think it's normal for me to see a different value when typing ulimit -a.

So my question is: how can I confirm what individual open file limit a given process has? Is this something that ps would show?

  • I think it can be determined from proc/pid/limits. – Ramesh Sep 26 '14 at 3:41
2

I believe /proc/pid/limits is the file you should check. For example, I have the below entry for one process in my system.

Max open files            50                   50                   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.