/bin/bash: Resource temporarily unavailable

有现场反馈plsql无法连接数据库了,登录环境查看时发现从root切换到grid时报错/bin/bash: Resource temporarily unavailable

root@db1 \~# su - grid

Last login: Thu Jul 27 18:45:04 CST 2023

su: failed to execute /bin/bash: Resource temporarily unavailable

使用root用户查看grid用户的nproc和nofile较小,当前连接数2000多

root@db1 \~# grep grid /etc/security/limits.conf

grid soft nproc 2047

grid hard nproc 32768

grid soft nofile 1024

grid hard nofile 250000

grid soft stack 10240

grid hard stack 32768

root@db1 \~# ps -ef |grep LOCAL=NO|wc -l

2038

处理办法,调整/etc/security/limits.conf文件的grid用户参数,修改后如图:

root@db1 \~# grep grid /etc/security/limits.conf

grid soft nproc 20470

grid hard nproc 32768

grid soft nofile 10240

grid hard nofile 250000

grid soft stack 10240

grid hard stack 32768

root@db1 \~#

配置后,再次从root用户切换到grid,登录正常

root@db1 \~# su - grid

Last login: Thu Jul 27 18:35:04 CST 2023

grid@db1>

相关推荐
皓月盈江2 分钟前
云服务器上部署Hexo静态博客
linux·服务器·hexo·个人博客·云服务器·个人网站·静态博客
遥夜人间11 分钟前
Nginx 纳入 systemd 管理
运维·网络·nginx
qeen872 小时前
【Linux】线程的基本认识及与进程的关系、对比
linux·运维
Smoothcloud润云3 小时前
GPU服务器租用训练缓存小文件与inode耗尽排查实战
运维·服务器·人工智能·缓存·ai·gpu算力
疯华整猫3 小时前
一条 kill -9 杀不掉的进程:AI 时代,程序员为什么必须精通 Linux
linux
Lsetea3 小时前
DNS-01 委托有 CNAME 却查不到 TXT?用 CertbotX 核对签发前和挑战中的记录
运维·https·ssl·dns·acme
Decay__4 小时前
集群安装部署实战 —— kubeadm 搭建 3 控制面 + 3 工作节点高可用集群
运维·云原生·容器·kubernetes·k8s
爆米花byh5 小时前
在RockyLinux9环境下安装Rust1.100.0环境
linux·rust
llilian_165 小时前
单北斗信创 NTP 服务器自主可控溯源要求
运维·服务器·功能测试·嵌入式硬件·51单片机·软件工程
爆米花byh5 小时前
在RockyLinux9环境下安装Manticore Search32.1.3单机版
linux·服务器·搜索引擎