Linux ulimit Command Detailed

Source: Internet
Author: User
Tags cpu usage

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.