1. 操作系统层面的参数
1.1 关闭透明页
1.2 limits.conf文件的参数设置
# vi /etc/security/limits.conf
#<domain> <type> <item> <value>
* - core <value>
<domain>
can be:
- 可以是一个用户名
- 可以是一个组名,用 @group 语法
- 可以用 * 通配符,默认的
<type>
can have two values:
- soft 强制软限制
- hard 强制硬限制
- - 强制软限制和硬限制
<item> can be one of the following:
core
- limits the core file size (KB)data
- max data size (KB)fsize
- maximum filesize (KB)memlock
- max locked-in-memory address space (KB)nofile
- max number of open filesrss
- max resident set size (KB)stack
- max stack size (KB)cpu
- max CPU time (MIN)nproc
- max number of processes (see note below)as
- address space limit (KB)maxlogins
- max number of logins for this usermaxsyslogins
- max number of logins on the systempriority
- the priority to run user process withlocks
- max number of file locks the user can holdsigpending
- max number of pending signalsmsgqueue
- max memory used by POSIX message queues (bytes)nice
- max nice priority allowed to raise to values: [-20, 19]rtprio
- max realtime priority