温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

linux 切换用户报Resource temporarily unavailable怎么办

发布时间:2021-11-08 17:52:01 来源:亿速云 阅读:1048 作者:柒染 栏目:建站服务器

这期内容当中小编将会给大家带来有关linux 切换用户报Resource temporarily unavailable怎么办,文章内容丰富且以专业的角度为大家分析和叙述,阅读完这篇文章希望大家可以有所收获。

今天开年第一次巡检,进入grid检查dg时,发现用不了,具体报错如下:
[root@testrac2 ~]# su - grid
su: /bin/bash: Resource temporarily unavailable

由此报错,可以看到是由于进程过多,资源限制住了,主要检查如下文件:

检查资源限制:

[root@testrac2 ~]# cat /etc/security/limits.conf
oracle  soft    nproc   2047
oracle  hard    nproc   16384
oracle  soft    nofile  1024
oracle  hard    nofile  65536
oracle  soft    stack   10240
grid    soft    nproc   2047
grid    hard    nproc   16384
grid    soft    nofile  1024
grid    hard    nofile  65536
grid    soft    stack   10240

检查实际进程

[root@testrac2 ~]# ps -U grid | wc -l
2100

[root@testrac2 ~]# lsof | grep grid | wc -l
31972

[root@testrac2 ~]# ps auxww | grep -i grid | wc -l
106

通过比较,发现grid soft nproc 设置的值比较小了一点,必须加大

调整grid soft nproc到4097保存。

再进行切换时,问题没有了

上述就是小编为大家分享的linux 切换用户报Resource temporarily unavailable怎么办了,如果刚好有类似的疑惑,不妨参照上述分析进行理解。如果想知道更多相关知识,欢迎关注亿速云行业资讯频道。

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI