First thank you for answering my questions Admin.
About this:
Some middle value for nproc would be 25.
1 process can consume 99% of CPU, then i guess that the quantity of process dont be the better solution to limit CPU usage, then i will insist on this because I believe it is of utmost importance in an environment with multiple accounts.
My purpose is to limit just to keep the system responsiveness (about 50%).
Checking the contents of the file /etc/security/limits.conf could check the options "nice" and "priority" as follow:
#Each line describes a limit for a user in the form:
#
#<domain> <type> <item> <value>
#
#Where:
#<domain> can be:
# - a user name
# - a group name, with @group syntax
# - the wildcard *, for default entry
# - the wildcard %, can be also used with %group syntax,
# for maxlogin limit
#
#<type> can have the two values:
# - "soft" for enforcing the soft limits
# - "hard" for enforcing hard limits
#
#<item> can be one of the following:
# - core - limits the core file size (KB)
# - data - max data size (KB)
# - fsize - maximum filesize (KB)
# - memlock - max locked-in-memory address space (KB)
# - nofile - max number of open file descriptors
# - rss - max resident set size (KB)
# - stack - max stack size (KB)
# - cpu - max CPU time (MIN)
# - nproc - max number of processes
# - as - address space limit (KB)
# - maxlogins - max number of logins for this user
# - maxsyslogins - max number of logins on the system
# - priority - the priority to run user process with
# - locks - max number of file locks the user can hold
# - sigpending - max number of pending signals
# - msgqueue - max memory used by POSIX message queues (bytes)
# - nice - max nice priority allowed to raise to values: [-20, 19]
# - rtprio - max realtime priority
On the internet some articles teaching how to set up using these options like this:
http://linux.die.net/man/5/limits.confI tried to set up under these articles but the command "top" the nice values are not changed, remaining always 0.
these options only works in a custom kernel? or, if not,
How to configure nice and priority options properly?
Im using Centos 6.5 + CWP 0.9.8.12 (Apache 2.2.2.7 & Nginx Reverse Proxy)
Thanks for your time!