- 论坛徽章:
- 0
|
机房内的一台redhat linux服务器,最近发现无法以oracle用户登录,su也切换不过去,切换时报如下错误:
[root@ktsjk ~]# su - oracle
su: cannot set user id: Resource temporarily unavailable
报错是说“资源暂时无法获得”,硬盘用df看过使用都不到50%,内存也只使用了1/10,所以应该不是硬盘和内存的问题。使用ulimit命令查看资源限制:
[root@ktsjk ~]# ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
pending signals (-i) 1024
max locked memory (kbytes, -l) 32
max memory size (kbytes, -m) unlimited
open files (-n) 10240
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
stack size (kbytes, -s) 10240
cpu time (seconds, -t) unlimited
max user processes (-u) 530431
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
[root@ktsjk ~]#
[root@ktsjk ~]# more /etc/security/limits.conf
......
* - nofile 10240
oracle hard nproc 16384
oracle soft nproc 2047
oracle hard nofile 65536
oracle soft nofile 32768
# End of file
[root@ktsjk ~]#
[root@ktsjk ~]# lsof | grep oracle | wc -l
9944
[root@ktsjk ~]# ps -ef | grep oracle | wc -l
29
[root@ktsjk ~]#
oracle用户进程打开的文件时比较多点,但也没有超过/etc/security/limits.conf中的限制啊,oracle进程就更少了,那到底是哪里的资源受限了呢?请各位达人指教!!!!谢谢!!!! |
|