Ulimit is a computer command used by the shell to start a process that consumes resources that can be used to modify system resource limits
Command Common parameters
-H sets the hard resource limit.-S sets the soft resource limit.-A displays all current resource limits.-C Size: Sets the maximum value of the core file. Unit: Blocks-d Size: Sets the maximum value for the data segment. Units: Kbytes-f Size: Sets the maximum value of the file created. Blocks-l Size: Sets the maximum value of the locked process in memory. Unit: Kbytes-m Size: Sets the maximum number of resident memory that can be used. Unit: Kbytes-n Size: Sets the maximum value of the file descriptor that the kernel can open at the same time. Unit: N-p Size: Sets the maximum value of the pipe buffer. Unit: Kbytes-s Size: Sets the maximum value for the stack. Unit: Kbytes-t Size: Sets the maximum limit for CPU usage. Unit: Seconds-v Size: Sets the maximum value of virtual memory. Unit: Kbytes-u Number of < programs > number of programs the user can open
Common Command Display
1. View the maximum identifiers
2. Adjust file descriptors
Ulimit-shn 65535 temporarily modified s:soft limit h:hard limit
3. Recommended control file Descriptor size ==>
Change: <domain> <type> <item> <value>echo ' * - nofile 65535 ' >>/etc/security/limits.conf changes after viewing: Tail-1/etc/security/limits.conf
Linux ulimit Command Detailed