请教各位大神关于 Linux 用户资源配置的问题,在 RHEL6 系统下,用户资源配置文件为:
/etc/security/limits.conf
/etc/security/limits.d/90-nproc.conf
两个配置文件的区别已百度谷歌一番,大概差异明白了。假设现在服务器上运行着占用资源高的程序(比如 XX 国产数据库、JAVA 程序),我并不熟悉这些程序,官方也没有提供 limits 推荐值。为了不出现资源不足的告警,能否使用以下配置方案?如果不可以使用,请教一下这样配置有何坏处?
# cat /etc/security/limits.conf
* soft nproc 65535
* hard nproc 65535
* soft nofile 65535
* hard nofile 65535
# cat /etc/security/limits.d/90-nproc.conf
root soft nproc unlimited
* soft nproc 65535
* hard nproc 65535
* soft nofile 65535
* hard nofile 65535
/etc/security/limits.conf
/etc/security/limits.d/90-nproc.conf
两个配置文件的区别已百度谷歌一番,大概差异明白了。假设现在服务器上运行着占用资源高的程序(比如 XX 国产数据库、JAVA 程序),我并不熟悉这些程序,官方也没有提供 limits 推荐值。为了不出现资源不足的告警,能否使用以下配置方案?如果不可以使用,请教一下这样配置有何坏处?
# cat /etc/security/limits.conf
* soft nproc 65535
* hard nproc 65535
* soft nofile 65535
* hard nofile 65535
# cat /etc/security/limits.d/90-nproc.conf
root soft nproc unlimited
* soft nproc 65535
* hard nproc 65535
* soft nofile 65535
* hard nofile 65535