Eric Covener wrote: > On Mon, Nov 11, 2013 at 7:30 AM, Ruediger Pluem <[email protected]> wrote: >> >> >> Eric Covener wrote: >>> I was looking at a typical apr_thread_create failure for creating a >>> large # of threads on a system, and the only solution was to increase >>> roots RLIMIT_NPROC as opposed to the (httpd.conf configured) "User" >>> limits >> >> I assume that you configured that via /etc/security/limits.conf? > > Yep. I still haven't figured out if the target users ulimits ever > matter (around setuid() call, as implied by the manual) or if it's > 100% root. >
IMHO this explains it as limits.conf is a configuration file for PAM. If you don't use any PAM methods (haven't worked out which would be needed) in the code the limits will not be applied after setuid. Of course pam_limits.so need to be configured for session for your app as well. Regards RĂ¼diger
