首页 > 代码库 > 修改linux资源限制
修改linux资源限制
vi /etc/security/limits.conf
root soft nofile 4096
root hard nofile 65536
root soft noproc 2047
root hard noproc 16384
root soft stack 10240
root hard stack 32768
oracle soft nofile 4096
oracle hard nofile 65536
oracle soft noproc 2047
oracle hard noproc 16384
oracle soft stack 10240
oracle hard stack 32768
root hard nofile 65536
root soft noproc 2047
root hard noproc 16384
root soft stack 10240
root hard stack 32768
oracle soft nofile 4096
oracle hard nofile 65536
oracle soft noproc 2047
oracle hard noproc 16384
oracle soft stack 10240
oracle hard stack 32768
重启系统资源生效To check resource limits:
Log in as an installation owner.
Check the soft and hard limits for the file descriptor setting. Ensure that the result is in the recommended range. For example:
$ ulimit -Sn4096$ ulimit -Hn65536
Check the soft and hard limits for the number of processes available to a user. Ensure that the result is in the recommended range. For example:
$ ulimit -Su2047$ ulimit -Hu16384
Check the soft limit for the stack setting. Ensure that the result is in the recommended range. For example:
$ ulimit -Ss10240$ ulimit -Hs32768
Repeat this procedure for each Oracle software installation owner.
欢迎大家加入我们微信:hysoft0306,分享更多信息:
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。