Is this a root owned process, or just a specific userid? I modify the
number of processes & and the number of file handles allowed within
/etc/security/limit.conf for our oracle account like so:
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 2047
oracle hard nofile 65536
I also modify the /etc/profile for the userid and shell like this:
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/bash" ]; then
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi
Probably to make it cleaner, I should just make a new file and place
it in /etc/profile.d/ and I may, but this works for me as of now.
Also, I have not tried this on OpenSuSE10 as of yet just fyi.
Hope this helps,
Mike Kershaw
On 5/17/07, Cevahir Pilpil
Hi everybody,
I am using OpenSuSE 10.0 with default installation and kernel 2.6. When an application tries to run with root user, it returns an error "Can not open files - too many open files".
I checked kernel limits (file-max, file-nr) and bash limits (limits.conf) then have changed values as follows.
ulimit
open files (-n) 10240
sysctl
fs.file-max = 10240 fs.file-nr = 600 0 10240
After I restart, I am still having same error message. I am listing and counting open files with lsof command. It seems, it can not open files more than 1024.
Does anyone have any idea what is wrong about that?
Thanks, Regards,
Cevahir Pilpil
--------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-security+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-security+help@opensuse.org
--------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-security+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-security+help@opensuse.org