Avec le fichier de limites, tu peux spécifier une limite au nombre total de processus qu'un utilisateur donné peut avoir.
17:21 root@kartxila ~# ~ # cat /etc/security/limits.conf
# /etc/security/limits.conf
#
#Each line describes a limit for a user in the form:
#
#
#
#Where:
# can be:
# - an user name
# - a group name, with @group syntax
# - the wildcard *, for default entry
#
# can have the two values:
# - "soft" for enforcing the soft limits
# - "hard" for enforcing hard limits
#
# 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 files
# - 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
# - maxlogins - max number of logins for this user
# - priority - the priority to run user process with
#
#
#
#* soft core 0
#* hard rss 10000
#@student hard nproc 20
#@faculty soft nproc 20
#@faculty hard nproc 50
#ftp hard nproc 0
#@student - maxlogins 4
www-data soft nproc 128
# End of file
17:23 root@kartxila ~#
Là, Apache pourra lancer jusqu'à 128 process (je suis sous Debian, le chemin peut être différent pour d'autres distribs). Tu peux l'appliquer aux utilisateurs, groupes, etc... Et cela ne s'applique pas qu'aux process, comme tu peux le voir ci dessus...
[^] # Re: Bloquer Linux en 24 caractères
Posté par Xarli . En réponse au journal Bloquer Linux en 24 caractères. Évalué à 1.