ulimit changing after process started

Dennis Muhlestein djmuhlestein at gmail.com
Mon Nov 28 17:10:51 MST 2011


You guys ever run into a situation where ulimit changes after a process 
starts?

I start a program like this in an init script...

ulimit -n <something fairly reasonable like 8k or 32k or whatever I want>
/path/to program/executable

program is running now ...

 > cat /proc/<prog pid>/limits

output has the ulimit I set.

Later on I start getting too many open file errors and...

 > cat /proc/<prog pid>/limits

and wait... the max open files is back to the system default of 1024.

I can't think what is causing that.

<scratches head />...

Anybody?

-Dennis


More information about the PLUG mailing list