際際滷

際際滷Share a Scribd company logo
悽惆悋 悋 惡
擧愕 惆惘 悋惡惺 惆惘 忰惆惆惠 惆惘惠  悋悴悋惆
惆悽惠 悋愕惺 悋愆悋惘 惆愕 : 愕惆
:愕悽0.1
whoami :
My name is : yashar esmaildokht
I am Gnu/Linux Sys/net/sec Admin & Oracle Dba
my tel : 09141100257
my resume (fa) :goo.gl/oUQopW
Linkedin: goo.gl/Ljb9SF
https://t.me/unixmens
website :
http://unixmen.ir
http://oraclegeek.ir
http://webmom.ir
my nick name : royaflash
惆惘 惡悋慍 悋 悋 惘悋 惡愆惠惘 慍悋  惡惘悋惡 惡擧惡 悋惺悋 忰惆惆惠 悋惡惺 惡惘悋 惠悋 擯/擧愕 惆惘 悋
  惺悋 愕愕惠
: 擧 擯悋 惘悋 惡悋慍 悋 悋 愆惆 惡悋慍 悋惠 慍悋 惠悋 慍惘 愕惘 惆惘  惡惘悋
# cat /proc/sys/fs/file-max
818354
悋悴惘悋 惘 惆惘 惡悋慍 悋 悋 慍悋 惆惆 愆悋 惺惆惆 悋session惠慍惺 惆惘  惡惘悋  惡悋愆惆 愆惆 悋擯centos
惡惘悋惡惘 慍悋 悋818354惡悋 惡惘悋惡惘 悋惡惠 惆惘 176772. 惡悋愆惆 
ulimit惆悋悽 惆愕惠惘 忰惠 惆惘bash悋慍 悋愕惠悋惆 惆惘 忰惆惆惠 惠悋 
悛
悋 惡悋 擧 擧愕 惆惘 惡悋愆惆 
) 愕愕惠Resources愕惘惘悋 悋 悋惆 惡惘悋 惆 悋惡慍悋惘 悋慍 擧 惆愕惠惘 悋 .擧 悋愕惠悋惆 擧悋惘惡惘悋 惡惘悋 (
惘 忰惆惆惠 惠悋惆 
悛
悋 惡悋 擧 惡惆 擧愕resource惡愆惆 愀 擯 惡惆  擧惆 悋惺悋 悽悋惶 悋
擧惡惆 惆 惡  愕惠惆 擧悋惘 忰悋 惆惘 悋 惠惘  悋 愕惘愕 擧resource悋 惡悋 .愆惆 惘 惘惡 愆擧 惡悋
.擧惆 惆惘惠 惘悋 惘愕惘愕 惘 悋慍 悋愕惠悋惆 慍悋 惠悋惆 愆悋 惆愕惠惘
惆愕惠惘ulimit忰惆惆惠 悋 擧 擧惆 惡 拆愆 惡悋惆 愆悋 .擧惆 悴擯惘 悋悴惺 惡惘慍 悋忰悋惶愀 惡 悋慍 惠悋惆
惡 悋悋 惠 悋惠悋悋惠  悋 擧 愕惠 悋擧悋愆 悋惡惠 .擧惆 愆擧 悋悴悋惆 擧悴悋悋  擧惘惆 悽悋惆 拆惆悋 惺 擧悴悋悋
惘 惡惘悋 惘悋 愕愕惠 悋  擧惆 悋悴悋惆 惘悋 慍悋惆 拆惘愕愕 惠惺惆悋惆 惠悋惆 惠悋 惡 慍惘 擧 擧 惡悋愆惆 惆悋愆惠 悽悋愀惘
.擧惆 悋愕惠悋惆 悋惡 愃惘 惆擯惘 擧愕
:惆愕惠惘 悋 愕悋悽惠悋惘
ulimit [options] [limit]
悴悋 惡 擧option悴悋 惡  惘惡愀 悋 擯慍 悋慍limit擧 悋惺悋 惘 惘惆惴惘 忰惆惆惠 慍悋
:悋 擯惘
S-擯慍悋惘愆  惠愃惘soft limit惘愕惘愕 擧 惡 惘惡愀
H-擯慍悋惘愆 惠愃惘hard limit惘愕惘愕 擧 惡 惘惡愀
a-惠悋 擯慍悋惘愆limit悋)忰惆惆惠悋(悴惆
c-悋悋 愕悋慍 悋擧慍core愆惆 悋悴悋惆
d-擧 愕悋慍 悋擧慍*segment拆惘惆悋慍愆 悋慍data
f-惠愕愀 悋悴悋惆愆惆 悋 悋 愕悋慍 悋擧慍shell)惘惷 拆愆  擯慍(
l-愆惆 擧 擧 惘 愕悋慍 悋擧慍
m-愕悋慍 悋擧慍RSS)愆惆 悋愆愃悋 悋 拆惘愕愕 惡惘悋 擧 悋惶 忰悋惴 悋慍 惡悽愆(
n-惡悋慍 悋 惠惺惆悋惆 悋擧慍
p-愕悋慍pipe buffer
s-愕悋慍 悋擧慍stack
t-惆悋惘 悋擧慍cpu time惓悋 惡
u-悴慍悋 擧悋惘惡惘  惡惘悋 悴惆 悋 拆惘愕愕 惠惺惆悋惆 悋擧慍
v-拆惘愕愕 擧 惡惘悋 悴惆 惘 惘悋 惆悋惘 悋擧慍
soft limit 擧惆 惠悋惆 惘惡愀 惘愕惘愕 惡惘悋 擧惘 擧 悋愕惠 惆悋惘 忰惠 惆惘hard limit惡惘悋 愕 soft limit惺
擧惆.
慍悋 惆 愆悋 惡惘悋hardlimit: 惆悋惘
# ulimit -Hn
4096
愆悋惆 惡惘悋softlimit: 惆悋惘
# ulimit -Sn
1024
. 惡悋愆惆 惠悋惠 惠悋惆  擧悋惘惡惘 惘 惡惘悋 悋 愕悋悽惠悋惘 悋 : 擧惠
擧 愀惘 .惠 擧悋惘 悋慍 悋  愆惆 悋悴惘悋 愕愕惠 惘 悋 惡惘悋 悋 悋 愕惘愕 惡惺惷 擧 愆惆 惆惆 惡惺惷悋
惘悋 忰悋惴 悋慍 慍悋  惠悋惆 擧悋惘惡惘 擧 惡惡 惡悋惆 悋忰悋 .惆悋惘 忰悋惴 惡 悋慍 愆惆 悋悴惘悋 惡惘悋 悋 惡惘悋 惆惆
擧惆 悋擧
:擧  悋悴惘悋 惘 慍惘 惆愕惠惘
[yashar@royaflash ~]$ ulimit -a
core file size (blocks, -c) unlimited
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 31498
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 31498
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
 惡惘悋 忰悋惴 悋擧 忰惆惆惠 惡惆 擧 愀惘64擧悋惘惡惘 惡惘悋 忰惆惆惠 惺 .悋愕惠 擧惡悋惠
悋慍 惡愆惠惘 惠  惘 擧悋惘惡惘 悋 悋 惡惘悋  悋擧 擧 擯悵悋愆惠64悽悋  擧 忰惴 惠悋 惘 忰悋惴 擧惡悋惠
 損擧愕 擧 悋 悋愆 惺 悋惶 惆惘  擧擧 悽 惺惆惆 悋 .惡惆 悋悽惠惶悋惶 悽惆愆 惡 悋惺 惘 悽惆 惠
擧愕 悋擯惘 .束悽惆愆 惠愆悽惶 悋愕悋愕 惡惘 擧  惠愕 擧 悋愕惠 惺悋 愕愕惠 惡惘惆悋惘 悽惆愆 惡惘悋 惘 忰悋惴 惠
: 惆悋惘 擧 惺惷 惠 愆擧 惡 惘 忰惆惆惠 悋 惆悋愆惠 惆愕惠
ulimit -l 1024
悋 惆惘 惡愆 悋悴悋惆 惠愃惘 愆 惡惘悋 惡悽悋惆 悋擯惘  惆擯 惺惆惆 惘 悋etc/security/limits.conf擧  悋惆惠 惘 /
惺惆惆 :擧惠0束損悋忰惆惆 惺
惘 悋慍 惡惺惷 擧 惆惆 悽悋惆  擧惆 悋愕惠悋惆 ( 愕惘惘 惺悋 )惡 惆 愕惘愕 惡惘悋 擯/擧愕 悋慍 愆悋 悋擯惘
慍悋 惠悋惆 愆悋 惡悋愆惆 惆悋惘悋 惘悋 惡悋慍 悋 悋 悋慍 慍悋惆 惆悋惘 惡 悋慍 拆悋
悛
悋 愕惘惘 惡  惆悋惆 拆悋擯悋 惓 悋 悋慍悋惘
拆悋惘悋惠惘 惠愕愀 惘悋 
悛
悋fs.file-max. 惆惆 惠惺愃惘 擧惘 惆惘
: 惆悋惘 擧悋惘 悋 惡惘悋
# sysctl -w fs.file-max=500000
: 悋惆 愆悋惆 慍惘 愕悋悽惠悋惘 惆惘 惘悋 愕悋悽惠悋惘 慍悋 惠悋惆 
$ cat /proc/sys/fs/file-max
惆悋惘 : 惓悋 惡惘悋 惴惘 悋 惡惘悋  惆 惘悋惘 慍 慍惘 悋 惆惘 惠悋 惘悋 惴惘 惆 愕悋悽惠悋惘fs.file-max=500000
/ 悋 惆惘 惘悋etc/sysctl.conf. 惆 惘悋惘
: 慍 惘悋 慍惘 惆愕惠惘 愕拆愕
# sysctl -p
悋 惆惘 悋惺悋 悋慍 惡惺惆 惠悋  /proc/sys/fs/file-max. 悋 愆悋惆
悋愕悋愕 惡惘 惡悋慍 悋 悋 惆惘 忰惆惆惠 悋悴悋惆user lecel
: 惆 惠惺愃惘 惘悋 慍惘 悋 惘愆 擧悋惘惡惘 惡悋 惴惘 悋 惡惘悋
# vi /etc/security/limits.conf
惡悋愆惆  慍惘 惶惘惠 惡 悋 愕悋悽惠悋惘:
<domain> <type> <item> <value>
惡惘悋 擧悋惘惡惘 擧惘惆 悋惷悋 惡 悋惆悋 愕愕惠 惆惘 擧soft limithard limit擧惆 
擧悋惘惡惘 惡悋 惘悋 惓悋  惡惘悋tst: 惆 悋惆悋
## Example hard limit for max opened files
tst hard nofile 4096
## Example soft limit for max opened files
tst soft nofile 1024
Ulimit

More Related Content

Similar to Ulimit (20)

how enable ceph dashboard
how enable  ceph dashboardhow enable  ceph dashboard
how enable ceph dashboard
Yashar Esmaildokht
Rbdmap ceph realease 0.2
Rbdmap ceph realease 0.2Rbdmap ceph realease 0.2
Rbdmap ceph realease 0.2
Yashar Esmaildokht
(Linux Ubuntu Guide in Persian- Basic)惘惆 愕愕惠 惺悋 悋惡惠 悋惘愕- 忰惡 悋...
 (Linux Ubuntu Guide in Persian- Basic)惘惆 愕愕惠 惺悋 悋惡惠 悋惘愕- 忰惡 悋... (Linux Ubuntu Guide in Persian- Basic)惘惆 愕愕惠 惺悋 悋惡惠 悋惘愕- 忰惡 悋...
(Linux Ubuntu Guide in Persian- Basic)惘惆 愕愕惠 惺悋 悋惡惠 悋惘愕- 忰惡 悋...
Muhibullah Aman
rbdmap in ceph
rbdmap in ceph rbdmap in ceph
rbdmap in ceph
Yashar Esmaildokht
Pg autoscaling in ceph
Pg autoscaling in  cephPg autoscaling in  ceph
Pg autoscaling in ceph
Yashar Esmaildokht
Ceph: A Powerful, Scalable, and Flexible Storage Solution
Ceph: A Powerful, Scalable, and Flexible Storage SolutionCeph: A Powerful, Scalable, and Flexible Storage Solution
Ceph: A Powerful, Scalable, and Flexible Storage Solution
Yashar Esmaildokht
愕愕惠 悋 HDFS
愕愕惠 悋 HDFS愕愕惠 悋 HDFS
愕愕惠 悋 HDFS
nasser rezaei
Ssh edition 2
Ssh edition 2Ssh edition 2
Ssh edition 2
Yashar Esmaildokht
Beowolf
BeowolfBeowolf
Beowolf
Yashar Esmaildokht
ips/ids
ips/idsips/ids
ips/ids
Yashar Esmaildokht
惠悴悋惘惠 悋擧惠惘惡擧 惡悋 opencart
惠悴悋惘惠 悋擧惠惘惡擧 惡悋 opencart惠悴悋惘惠 悋擧惠惘惡擧 惡悋 opencart
惠悴悋惘惠 悋擧惠惘惡擧 惡悋 opencart
Yashar Esmaildokht
Supervisor
SupervisorSupervisor
Supervisor
Yashar Esmaildokht
squid
squidsquid
squid
Yashar Esmaildokht
Zabbix monitoring website
Zabbix monitoring websiteZabbix monitoring website
Zabbix monitoring website
Yashar Esmaildokht
Ssh
SshSsh
Ssh
Yashar Esmaildokht
Partition in oracle mysql |Mariadb
Partition in oracle mysql |MariadbPartition in oracle mysql |Mariadb
Partition in oracle mysql |Mariadb
Yashar Esmaildokht
Package management
Package managementPackage management
Package management
Yashar Esmaildokht
(Data Structures-Java Object oriented Programming Languages)愕悋悽惠悋惘悋 惆惠悋 ...
 (Data Structures-Java Object oriented Programming Languages)愕悋悽惠悋惘悋 惆惠悋 ... (Data Structures-Java Object oriented Programming Languages)愕悋悽惠悋惘悋 惆惠悋 ...
(Data Structures-Java Object oriented Programming Languages)愕悋悽惠悋惘悋 惆惠悋 ...
Muhibullah Aman
maxscale and spider engine for performance and security and clustering
maxscale and spider engine  for performance and security and clusteringmaxscale and spider engine  for performance and security and clustering
maxscale and spider engine for performance and security and clustering
Yashar Esmaildokht
(Linux Ubuntu Guide in Persian- Basic)惘惆 愕愕惠 惺悋 悋惡惠 悋惘愕- 忰惡 悋...
 (Linux Ubuntu Guide in Persian- Basic)惘惆 愕愕惠 惺悋 悋惡惠 悋惘愕- 忰惡 悋... (Linux Ubuntu Guide in Persian- Basic)惘惆 愕愕惠 惺悋 悋惡惠 悋惘愕- 忰惡 悋...
(Linux Ubuntu Guide in Persian- Basic)惘惆 愕愕惠 惺悋 悋惡惠 悋惘愕- 忰惡 悋...
Muhibullah Aman
Ceph: A Powerful, Scalable, and Flexible Storage Solution
Ceph: A Powerful, Scalable, and Flexible Storage SolutionCeph: A Powerful, Scalable, and Flexible Storage Solution
Ceph: A Powerful, Scalable, and Flexible Storage Solution
Yashar Esmaildokht
愕愕惠 悋 HDFS
愕愕惠 悋 HDFS愕愕惠 悋 HDFS
愕愕惠 悋 HDFS
nasser rezaei
惠悴悋惘惠 悋擧惠惘惡擧 惡悋 opencart
惠悴悋惘惠 悋擧惠惘惡擧 惡悋 opencart惠悴悋惘惠 悋擧惠惘惡擧 惡悋 opencart
惠悴悋惘惠 悋擧惠惘惡擧 惡悋 opencart
Yashar Esmaildokht
Partition in oracle mysql |Mariadb
Partition in oracle mysql |MariadbPartition in oracle mysql |Mariadb
Partition in oracle mysql |Mariadb
Yashar Esmaildokht
(Data Structures-Java Object oriented Programming Languages)愕悋悽惠悋惘悋 惆惠悋 ...
 (Data Structures-Java Object oriented Programming Languages)愕悋悽惠悋惘悋 惆惠悋 ... (Data Structures-Java Object oriented Programming Languages)愕悋悽惠悋惘悋 惆惠悋 ...
(Data Structures-Java Object oriented Programming Languages)愕悋悽惠悋惘悋 惆惠悋 ...
Muhibullah Aman
maxscale and spider engine for performance and security and clustering
maxscale and spider engine  for performance and security and clusteringmaxscale and spider engine  for performance and security and clustering
maxscale and spider engine for performance and security and clustering
Yashar Esmaildokht

More from Yashar Esmaildokht (20)

the refrence of Oracle Database - The 0.4 release
the refrence of Oracle Database - The 0.4 releasethe refrence of Oracle Database - The 0.4 release
the refrence of Oracle Database - The 0.4 release
Yashar Esmaildokht
The Refrence Of DevOps -The 0.5 release
The Refrence Of DevOps  -The  0.5 releaseThe Refrence Of DevOps  -The  0.5 release
The Refrence Of DevOps -The 0.5 release
Yashar Esmaildokht
Ceph RADOS Gateway (RGW) - s3 swift -object storage
Ceph RADOS Gateway (RGW)  - s3 swift -object storageCeph RADOS Gateway (RGW)  - s3 swift -object storage
Ceph RADOS Gateway (RGW) - s3 swift -object storage
Yashar Esmaildokht
oracle mysql/mariadb api -the connect engine
oracle mysql/mariadb api -the connect engineoracle mysql/mariadb api -the connect engine
oracle mysql/mariadb api -the connect engine
Yashar Esmaildokht
what is staging in database (oracle and mariadb |mysql)
what is staging in database (oracle and mariadb |mysql)what is staging in database (oracle and mariadb |mysql)
what is staging in database (oracle and mariadb |mysql)
Yashar Esmaildokht
devops and bcp (bussiness continues planning)
devops and bcp (bussiness continues planning)devops and bcp (bussiness continues planning)
devops and bcp (bussiness continues planning)
Yashar Esmaildokht
DevOps reference - Devops metadologhy - devops technologhy
DevOps reference - Devops metadologhy - devops technologhyDevOps reference - Devops metadologhy - devops technologhy
DevOps reference - Devops metadologhy - devops technologhy
Yashar Esmaildokht
louad balancing vs api getway vs reverse proxy
louad balancing vs api getway vs  reverse proxylouad balancing vs api getway vs  reverse proxy
louad balancing vs api getway vs reverse proxy
Yashar Esmaildokht
how install and config sdn in proxmox virtualization
how install and config sdn in proxmox virtualizationhow install and config sdn in proxmox virtualization
how install and config sdn in proxmox virtualization
Yashar Esmaildokht
service registery and the service discovery
service registery and the service discoveryservice registery and the service discovery
service registery and the service discovery
Yashar Esmaildokht
process
processprocess
process
Yashar Esmaildokht
nbd and it's benefits
nbd and it's benefitsnbd and it's benefits
nbd and it's benefits
Yashar Esmaildokht
惘悴惺 oracle mysql |mariadb
惘悴惺 oracle mysql |mariadb 惘悴惺 oracle mysql |mariadb
惘悴惺 oracle mysql |mariadb
Yashar Esmaildokht
openstack designate
openstack designateopenstack designate
openstack designate
Yashar Esmaildokht
bcache and cachefs its benefits.
bcache and cachefs   its benefits. bcache and cachefs   its benefits.
bcache and cachefs its benefits.
Yashar Esmaildokht
Systemd and its various uses and capabilities.
Systemd and its various uses and capabilities.Systemd and its various uses and capabilities.
Systemd and its various uses and capabilities.
Yashar Esmaildokht
radosgw
radosgw radosgw
radosgw
Yashar Esmaildokht
cachefs
cachefs cachefs
cachefs
Yashar Esmaildokht
how add and remove Mgr in ceph cluster
how add and remove  Mgr in ceph  clusterhow add and remove  Mgr in ceph  cluster
how add and remove Mgr in ceph cluster
Yashar Esmaildokht
how add and delete new mon in ceph cluster
how add  and delete new  mon in ceph clusterhow add  and delete new  mon in ceph cluster
how add and delete new mon in ceph cluster
Yashar Esmaildokht
the refrence of Oracle Database - The 0.4 release
the refrence of Oracle Database - The 0.4 releasethe refrence of Oracle Database - The 0.4 release
the refrence of Oracle Database - The 0.4 release
Yashar Esmaildokht
The Refrence Of DevOps -The 0.5 release
The Refrence Of DevOps  -The  0.5 releaseThe Refrence Of DevOps  -The  0.5 release
The Refrence Of DevOps -The 0.5 release
Yashar Esmaildokht
Ceph RADOS Gateway (RGW) - s3 swift -object storage
Ceph RADOS Gateway (RGW)  - s3 swift -object storageCeph RADOS Gateway (RGW)  - s3 swift -object storage
Ceph RADOS Gateway (RGW) - s3 swift -object storage
Yashar Esmaildokht
oracle mysql/mariadb api -the connect engine
oracle mysql/mariadb api -the connect engineoracle mysql/mariadb api -the connect engine
oracle mysql/mariadb api -the connect engine
Yashar Esmaildokht
what is staging in database (oracle and mariadb |mysql)
what is staging in database (oracle and mariadb |mysql)what is staging in database (oracle and mariadb |mysql)
what is staging in database (oracle and mariadb |mysql)
Yashar Esmaildokht
devops and bcp (bussiness continues planning)
devops and bcp (bussiness continues planning)devops and bcp (bussiness continues planning)
devops and bcp (bussiness continues planning)
Yashar Esmaildokht
DevOps reference - Devops metadologhy - devops technologhy
DevOps reference - Devops metadologhy - devops technologhyDevOps reference - Devops metadologhy - devops technologhy
DevOps reference - Devops metadologhy - devops technologhy
Yashar Esmaildokht
louad balancing vs api getway vs reverse proxy
louad balancing vs api getway vs  reverse proxylouad balancing vs api getway vs  reverse proxy
louad balancing vs api getway vs reverse proxy
Yashar Esmaildokht
how install and config sdn in proxmox virtualization
how install and config sdn in proxmox virtualizationhow install and config sdn in proxmox virtualization
how install and config sdn in proxmox virtualization
Yashar Esmaildokht
service registery and the service discovery
service registery and the service discoveryservice registery and the service discovery
service registery and the service discovery
Yashar Esmaildokht
惘悴惺 oracle mysql |mariadb
惘悴惺 oracle mysql |mariadb 惘悴惺 oracle mysql |mariadb
惘悴惺 oracle mysql |mariadb
Yashar Esmaildokht
bcache and cachefs its benefits.
bcache and cachefs   its benefits. bcache and cachefs   its benefits.
bcache and cachefs its benefits.
Yashar Esmaildokht
Systemd and its various uses and capabilities.
Systemd and its various uses and capabilities.Systemd and its various uses and capabilities.
Systemd and its various uses and capabilities.
Yashar Esmaildokht
how add and remove Mgr in ceph cluster
how add and remove  Mgr in ceph  clusterhow add and remove  Mgr in ceph  cluster
how add and remove Mgr in ceph cluster
Yashar Esmaildokht
how add and delete new mon in ceph cluster
how add  and delete new  mon in ceph clusterhow add  and delete new  mon in ceph cluster
how add and delete new mon in ceph cluster
Yashar Esmaildokht

Ulimit

  • 1. 悽惆悋 悋 惡 擧愕 惆惘 悋惡惺 惆惘 忰惆惆惠 惆惘惠 悋悴悋惆 惆悽惠 悋愕惺 悋愆悋惘 惆愕 : 愕惆 :愕悽0.1
  • 2. whoami : My name is : yashar esmaildokht I am Gnu/Linux Sys/net/sec Admin & Oracle Dba my tel : 09141100257 my resume (fa) :goo.gl/oUQopW Linkedin: goo.gl/Ljb9SF https://t.me/unixmens website : http://unixmen.ir http://oraclegeek.ir http://webmom.ir my nick name : royaflash
  • 3. 惆惘 惡悋慍 悋 悋 惘悋 惡愆惠惘 慍悋 惡惘悋惡 惡擧惡 悋惺悋 忰惆惆惠 悋惡惺 惡惘悋 惠悋 擯/擧愕 惆惘 悋 惺悋 愕愕惠 : 擧 擯悋 惘悋 惡悋慍 悋 悋 愆惆 惡悋慍 悋惠 慍悋 惠悋 慍惘 愕惘 惆惘 惡惘悋 # cat /proc/sys/fs/file-max 818354 悋悴惘悋 惘 惆惘 惡悋慍 悋 悋 慍悋 惆惆 愆悋 惺惆惆 悋session惠慍惺 惆惘 惡惘悋 惡悋愆惆 愆惆 悋擯centos 惡惘悋惡惘 慍悋 悋818354惡悋 惡惘悋惡惘 悋惡惠 惆惘 176772. 惡悋愆惆 ulimit惆悋悽 惆愕惠惘 忰惠 惆惘bash悋慍 悋愕惠悋惆 惆惘 忰惆惆惠 惠悋 悛 悋 惡悋 擧 擧愕 惆惘 惡悋愆惆 ) 愕愕惠Resources愕惘惘悋 悋 悋惆 惡惘悋 惆 悋惡慍悋惘 悋慍 擧 惆愕惠惘 悋 .擧 悋愕惠悋惆 擧悋惘惡惘悋 惡惘悋 ( 惘 忰惆惆惠 惠悋惆 悛 悋 惡悋 擧 惡惆 擧愕resource惡愆惆 愀 擯 惡惆 擧惆 悋惺悋 悽悋惶 悋 擧惡惆 惆 惡 愕惠惆 擧悋惘 忰悋 惆惘 悋 惠惘 悋 愕惘愕 擧resource悋 惡悋 .愆惆 惘 惘惡 愆擧 惡悋 .擧惆 惆惘惠 惘悋 惘愕惘愕 惘 悋慍 悋愕惠悋惆 慍悋 惠悋惆 愆悋 惆愕惠惘 惆愕惠惘ulimit忰惆惆惠 悋 擧 擧惆 惡 拆愆 惡悋惆 愆悋 .擧惆 悴擯惘 悋悴惺 惡惘慍 悋忰悋惶愀 惡 悋慍 惠悋惆 惡 悋悋 惠 悋惠悋悋惠 悋 擧 愕惠 悋擧悋愆 悋惡惠 .擧惆 愆擧 悋悴悋惆 擧悴悋悋 擧惘惆 悽悋惆 拆惆悋 惺 擧悴悋悋 惘 惡惘悋 惘悋 愕愕惠 悋 擧惆 悋悴悋惆 惘悋 慍悋惆 拆惘愕愕 惠惺惆悋惆 惠悋惆 惠悋 惡 慍惘 擧 擧 惡悋愆惆 惆悋愆惠 悽悋愀惘 .擧惆 悋愕惠悋惆 悋惡 愃惘 惆擯惘 擧愕 :惆愕惠惘 悋 愕悋悽惠悋惘 ulimit [options] [limit] 悴悋 惡 擧option悴悋 惡 惘惡愀 悋 擯慍 悋慍limit擧 悋惺悋 惘 惘惆惴惘 忰惆惆惠 慍悋 :悋 擯惘 S-擯慍悋惘愆 惠愃惘soft limit惘愕惘愕 擧 惡 惘惡愀 H-擯慍悋惘愆 惠愃惘hard limit惘愕惘愕 擧 惡 惘惡愀 a-惠悋 擯慍悋惘愆limit悋)忰惆惆惠悋(悴惆 c-悋悋 愕悋慍 悋擧慍core愆惆 悋悴悋惆 d-擧 愕悋慍 悋擧慍*segment拆惘惆悋慍愆 悋慍data f-惠愕愀 悋悴悋惆愆惆 悋 悋 愕悋慍 悋擧慍shell)惘惷 拆愆 擯慍( l-愆惆 擧 擧 惘 愕悋慍 悋擧慍 m-愕悋慍 悋擧慍RSS)愆惆 悋愆愃悋 悋 拆惘愕愕 惡惘悋 擧 悋惶 忰悋惴 悋慍 惡悽愆( n-惡悋慍 悋 惠惺惆悋惆 悋擧慍 p-愕悋慍pipe buffer s-愕悋慍 悋擧慍stack t-惆悋惘 悋擧慍cpu time惓悋 惡 u-悴慍悋 擧悋惘惡惘 惡惘悋 悴惆 悋 拆惘愕愕 惠惺惆悋惆 悋擧慍 v-拆惘愕愕 擧 惡惘悋 悴惆 惘 惘悋 惆悋惘 悋擧慍
  • 4. soft limit 擧惆 惠悋惆 惘惡愀 惘愕惘愕 惡惘悋 擧惘 擧 悋愕惠 惆悋惘 忰惠 惆惘hard limit惡惘悋 愕 soft limit惺 擧惆. 慍悋 惆 愆悋 惡惘悋hardlimit: 惆悋惘 # ulimit -Hn 4096 愆悋惆 惡惘悋softlimit: 惆悋惘 # ulimit -Sn 1024 . 惡悋愆惆 惠悋惠 惠悋惆 擧悋惘惡惘 惘 惡惘悋 悋 愕悋悽惠悋惘 悋 : 擧惠 擧 愀惘 .惠 擧悋惘 悋慍 悋 愆惆 悋悴惘悋 愕愕惠 惘 悋 惡惘悋 悋 悋 愕惘愕 惡惺惷 擧 愆惆 惆惆 惡惺惷悋 惘悋 忰悋惴 悋慍 慍悋 惠悋惆 擧悋惘惡惘 擧 惡惡 惡悋惆 悋忰悋 .惆悋惘 忰悋惴 惡 悋慍 愆惆 悋悴惘悋 惡惘悋 悋 惡惘悋 惆惆 擧惆 悋擧 :擧 悋悴惘悋 惘 慍惘 惆愕惠惘 [yashar@royaflash ~]$ ulimit -a core file size (blocks, -c) unlimited data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signals (-i) 31498 max locked memory (kbytes, -l) 64 max memory size (kbytes, -m) unlimited open files (-n) 1024 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 real-time priority (-r) 0 stack size (kbytes, -s) 8192 cpu time (seconds, -t) unlimited max user processes (-u) 31498 virtual memory (kbytes, -v) unlimited file locks (-x) unlimited 惡惘悋 忰悋惴 悋擧 忰惆惆惠 惡惆 擧 愀惘64擧悋惘惡惘 惡惘悋 忰惆惆惠 惺 .悋愕惠 擧惡悋惠 悋慍 惡愆惠惘 惠 惘 擧悋惘惡惘 悋 悋 惡惘悋 悋擧 擧 擯悵悋愆惠64悽悋 擧 忰惴 惠悋 惘 忰悋惴 擧惡悋惠 損擧愕 擧 悋 悋愆 惺 悋惶 惆惘 擧擧 悽 惺惆惆 悋 .惡惆 悋悽惠惶悋惶 悽惆愆 惡 悋惺 惘 悽惆 惠
  • 5. 擧愕 悋擯惘 .束悽惆愆 惠愆悽惶 悋愕悋愕 惡惘 擧 惠愕 擧 悋愕惠 惺悋 愕愕惠 惡惘惆悋惘 悽惆愆 惡惘悋 惘 忰悋惴 惠 : 惆悋惘 擧 惺惷 惠 愆擧 惡 惘 忰惆惆惠 悋 惆悋愆惠 惆愕惠 ulimit -l 1024 悋 惆惘 惡愆 悋悴悋惆 惠愃惘 愆 惡惘悋 惡悽悋惆 悋擯惘 惆擯 惺惆惆 惘 悋etc/security/limits.conf擧 悋惆惠 惘 / 惺惆惆 :擧惠0束損悋忰惆惆 惺 惘 悋慍 惡惺惷 擧 惆惆 悽悋惆 擧惆 悋愕惠悋惆 ( 愕惘惘 惺悋 )惡 惆 愕惘愕 惡惘悋 擯/擧愕 悋慍 愆悋 悋擯惘 慍悋 惠悋惆 愆悋 惡悋愆惆 惆悋惘悋 惘悋 惡悋慍 悋 悋 悋慍 慍悋惆 惆悋惘 惡 悋慍 拆悋 悛 悋 愕惘惘 惡 惆悋惆 拆悋擯悋 惓 悋 悋慍悋惘 拆悋惘悋惠惘 惠愕愀 惘悋 悛 悋fs.file-max. 惆惆 惠惺愃惘 擧惘 惆惘 : 惆悋惘 擧悋惘 悋 惡惘悋 # sysctl -w fs.file-max=500000 : 悋惆 愆悋惆 慍惘 愕悋悽惠悋惘 惆惘 惘悋 愕悋悽惠悋惘 慍悋 惠悋惆 $ cat /proc/sys/fs/file-max 惆悋惘 : 惓悋 惡惘悋 惴惘 悋 惡惘悋 惆 惘悋惘 慍 慍惘 悋 惆惘 惠悋 惘悋 惴惘 惆 愕悋悽惠悋惘fs.file-max=500000 / 悋 惆惘 惘悋etc/sysctl.conf. 惆 惘悋惘 : 慍 惘悋 慍惘 惆愕惠惘 愕拆愕 # sysctl -p 悋 惆惘 悋惺悋 悋慍 惡惺惆 惠悋 /proc/sys/fs/file-max. 悋 愆悋惆 悋愕悋愕 惡惘 惡悋慍 悋 悋 惆惘 忰惆惆惠 悋悴悋惆user lecel : 惆 惠惺愃惘 惘悋 慍惘 悋 惘愆 擧悋惘惡惘 惡悋 惴惘 悋 惡惘悋 # vi /etc/security/limits.conf 惡悋愆惆 慍惘 惶惘惠 惡 悋 愕悋悽惠悋惘: <domain> <type> <item> <value> 惡惘悋 擧悋惘惡惘 擧惘惆 悋惷悋 惡 悋惆悋 愕愕惠 惆惘 擧soft limithard limit擧惆 擧悋惘惡惘 惡悋 惘悋 惓悋 惡惘悋tst: 惆 悋惆悋 ## Example hard limit for max opened files tst hard nofile 4096 ## Example soft limit for max opened files tst soft nofile 1024