Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use the ulimit command on Linux system

2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly shows you "Linux system ulimit command how to use", the content is easy to understand, clear, hope to help you solve doubts, the following let the editor lead you to study and learn "Linux system ulimit command how to use" this article.

Linux for each user, the system limits the maximum number of processes. In order to improve performance, the maximum number of processes for each linux user can be set according to the device resources, while the resources occupied by ulimit for the shell startup process can be used to modify the system resource limit.

Command common parameter-H sets hard resource limits.-S sets soft resource limits.-a displays all current resource limits.-c size: sets the maximum value of the core file. Unit: blocks-d size: sets the maximum value of the data segment. Unit: kbytes-f size: sets the maximum value for creating a file. Unit: blocks-l size: sets the maximum value for locking processes in memory. Unit: kbytes-m size: sets the maximum amount of resident memory that can be used. Unit: kbytes-n size: sets the maximum value of file descriptors that the kernel can open at the same time. Unit: NMurp size: sets the maximum value of the pipeline buffer. Unit: kbytes-s size: sets the maximum value of the stack. Unit: kbytes-t size: sets the maximum limit of CPU usage time. Unit: seconds-v size: sets the maximum value of virtual memory. Unit: the maximum number of programs that can be opened by kbytes-u users. File: / etc/security/limits.conf displays details

File: ``/ etc/security/ rooms``.conf commonly used commands display 1. View the largest identifier

Ulimit``-N2. Adjust file descriptor

Ulimit``-SHn 65535 temporarily modify S:soft limit H:Hard limit3. Recommended control file descriptor size = = >

Change: echo'*-nofile 65535'> > / etc/security/limits.conf change View: tail-1 / etc/security/limits.conf exit and re-login effective confirmation View: ulimit-n above is all the content of this article "how to use ulimit commands in Linux system". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report