In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
Most people do not understand the knowledge points of this article "how to use Linux's ulimit command to set the limit on the number of single-user programs", so the editor summarizes the following contents, detailed contents, clear steps, and has a certain reference value. I hope you can get something after reading this article. Let's take a look at this article "how to use Linux's ulimit command to set the limit on the number of single-user programs".
Linux commonly used commands ulimit commands are used to control the resources of shell programs. Ulimit is a built-in instruction for shell, which can be used to control the resources of shell programs.
Syntax ulimit [- aHS] [- c] [- d] [- f] [- m] [- n] [- p] [- s] [- t] [- u] [- v]
Parameters:
-a displays the current resource limit settings. -c sets the maximum value of the core file in blocks. -d the maximum value of the program data section in KB. -f shell can create the largest file, in chunks. -H sets hard limits on resources, that is, those set by administrators. -m specifies the upper limit of available memory in KB. -n specifies the maximum number of files that can be opened at a time. -p specifies the size of the pipe buffer in 512 bytes. -s specifies the upper limit of the stack in KB. -S sets flexible limits for resources. -t specifies the upper limit of CPU usage time (in seconds). -u the maximum number of programs that users can open. -v specifies the upper limit of virtual memory available, in KB. Example
Display settings for system resources
[root@runoob] # ulimit-acore file size (blocks,-c) 0data seg size (kbytes,-d) unlimitedfile size (blocks,-f) unlimitedpending signals (- I) 1024max locked memory (kbytes,-l) 32max memory size (kbytes,-m) unlimitedopen files (- n) 1024pipe size (512 bytes,-p) 8POSIX message queues (bytes,-Q) 819200stack size (kbytes) -s) 10240cpu time (seconds,-t) unlimitedmax user processes (- u) 4096virtual memory (kbytes,-v) unlimitedfile locks (- x) unlimited [root@runoob ~] #
Set the limit on the number of programs per user
[root@runoob ~] # ulimit-u 500 / / set the upper limit for single-user programs [root@runoob ~] # ulimit-acore file size (blocks,-c) 0data seg size (kbytes,-d) unlimitedfile size (blocks,-f) unlimitedpending signals (- I) 1024max locked memory (kbytes,-l) 32max memory size (kbytes,-m) unlimitedopen files (- n) 1024pipe size -p) 8POSIX message queues (bytes,-Q) 819200stack size (kbytes,-s) 10240cpu time (seconds,-t) unlimitedmax user processes (- u) 500virtual memory (kbytes,-v) unlimitedfile locks (- x) unlimited [root@runoob ~] # above is the content of this article on "how to set the limit on the number of single-user programs with Linux's ulimit command" I believe we all have a certain understanding. I hope the content shared by the editor will be helpful to you. If you want to know more about the relevant knowledge, please pay attention to 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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.