-
Notifications
You must be signed in to change notification settings - Fork 3
/
tunning-security-limits.conf
49 lines (48 loc) · 1.91 KB
/
tunning-security-limits.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
And this is the /etc/security/limits.conf :
#
# Limits configuration for ulimit.
#
# Version 1.0 - 2018-02-21
# Rebtel - <oussama.hammami@rebtel.com>
#
# This file should be saved in /etc/security/limits.d and can be activated by closing all
# active sessions of the concerned user:
# ulimit -a
#
# maximum number of open files
# don't use value upper than fs.file-max
root soft nofile 102400
root hard nofile 102400
# limits the core file size (KB)
root soft core unlimited
# maximum data size (KB)
root soft data unlimited
# maximum filesize (KB)
root soft fsize unlimited
# maximum locked-in-memory address space (KB)
root soft memlock unlimited
root hard memlock unlimited
# maximum resident set size (KB) (Ignored in Linux 2.4.30 and higher)
# root soft rss unlimited
# maximum stack size (KB)
root soft stack unlimited
root hard stack unlimited
# maximum CPU time (minutes)
root soft cpu unlimited
# maximum number of processes
root soft nproc unlimited
root hard nproc unlimited
# address space limit (KB)
root soft as unlimited
# the priority to run user process with (negative values boost process priority)
root soft priority -11
# maximum locked files (Linux 2.4 and higher)
root soft locks unlimited
# maximum number of pending signals (Linux 2.6 and higher)
root soft sigpending unlimited
root hard sigpending unlimited
# maximum memory used by POSIX message queues (bytes) (Linux 2.6 and higher)
root soft msgqueue unlimited
root hard msgqueue unlimited
# maximum nice priority allowed to raise to (Linux 2.6.12 and higher) values: [-20,19]
root soft nice -11