-
Notifications
You must be signed in to change notification settings - Fork 16
/
file_descriptor.os.txt
20 lines (14 loc) · 1.67 KB
/
file_descriptor.os.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FILE_DESCRIPTOR
FILE DESCRIPTOR ==> #ID representing an open file
MAX COUNT ==> #Def 1024
#Can be increased:
# - /etc/sysctl.conf: add line
# fs.file-max = 500000 (def: 20000)
# - /etc/security/limits.conf: add lines
# * soft nofile 60000
# * hard nofile 60000
# - apply changes by rebooting
lsof #List file descriptors
#Can be used to check for leaks