Hi all,
hoping someone can direct me to where to next look to figure out what I think is a strange issue:
I have a CentOS5 server with the following /etc/security/limits.conf entries that relate to "nproc":
Code:
oracle soft nproc 2047
oracle hard nproc 16384
* hard nproc 16384
if I run command
Code:
ps -u oracle |wc -l
it returns 1612 processes (fluctuates but not by more than 10-20).
the server has been online for 220 days and no issues.
Today, if I try and `su - oracle` i get error
Code:
"su: cannot set user id: Resource temporarily unavailable"
When I comment out the "soft" limit for nproc (oracle), I can now su without issues.
The fix doesn't makes sense to me as to why it fixed the issue. My questions are:
1) if my ps listing only shows ~1600 PID's for oracle, why would this soft limit be affecting me.
2) total PID's running (all users) is 2044 - coincidence that it is so close to the soft limit?
3) I thought the soft limits were per-process limits (per man), not system-wide limits for a user. In other words, each oracle process is allowed to launch the specified soft limit (up to hard if they change it). Am I mistaken on that?
thanks for any help.