Too Many Files Open
From: Shadus (shadus_at_shadus.org)
Date: 10/05/05
- Next message: Birre: "Re: how do you install stuff in Linux? Total n00b"
- Previous message: amrik: "Re: SUSE 9.3 display problems after install"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 05 Oct 2005 09:29:46 -0500
I'm running Gentoo on a 2.4-Hardened kernel, I'm having an on going
problem that I can't seem to resolve, and wondered if perhaps anyone
else had some ideas.
The on going problem occurs with the Sybase v7 ASA DB Engine and the
error I'm getting is "To many files open" when it attempts to open a
database or transaction log. The machine has 4g of ram, duel processor
xeon w/ht, using a xfs file system.
I've tried the following:
echo 1048576 > /proc/sys/fs/file-max
Setting sysctl.conf:
fs.file-max = 1048576
kernel.shmmax = 102400000
Raising the ulimit to 4096 (from 1024):
ulimit -n 4096 (in the script that calls db and in roots login shell
(since some of the admins manually restart it))
The sybase database engine seems to take up about 750 file handles on
it's own.. it also runs 25 database processes total. The server crashes
somewhere in the open file handle range of 25000-27500 (my personal
guess would be between 25600-26350 [eg: 25*1024 or 25*1024+750]). It
varies by a bit. Also as it nears this limit the database itself slows
to a crawl.
I'm out of ideas on what I need to do to correct this problem other than
move databases off to another server to lower the number of connections,
but that really isn't an acceptable solution at the level of load the
server/memory usage is at.
Any ideas or suggestions on where to go from here? I've done some
searching on google, but not found a good answer to my problem, I'm
beginning to think the limitation may be in the kernel itself, but I've
had no real luck finding it there either.
Thoughts, comments, and suggestions are greatly appreciated.
Shadus
- Next message: Birre: "Re: how do you install stuff in Linux? Total n00b"
- Previous message: amrik: "Re: SUSE 9.3 display problems after install"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|