[Date Prev][Date Next]
RE: beyond descriptor table size error
> -----Original Message-----
> From: owner-openldap-software@OpenLDAP.org
> [mailto:owner-openldap-software@OpenLDAP.org]On Behalf Of int Mike Jackson
> ext Curtis J Blank (firstname.lastname@example.org) wrote:
> > Thanks for the reply, no, SuSE Linux 2.4.18, sorry, I should have
> > mentioned that.
> > -Curt
> Hi Curt,
> Have a look at this link for some explanation of what you need to do:
Ugh. "Certified Linux Engineers" who don't know the difference between a
socket and a file descriptor? Please....
Fix the problem, not the symptom. It is pretty rare for a single server to
have 1024 simultaneous client sessions. If that's really the case on your
server, raising the limits may be appropriate. More likely you have a number
of stale connections from clients that have gone away. Start by looking at
netstat to see how many connections are active vs CLOSED. You probably need
to set an idletimeout in slapd.conf.
FYI, on Linux the size of an fdset is a compile-time constant. No runtime
kernel tweaking is needed, the kernel's limit is actually 1048576. If you
need more descriptors than that, you're doing something wrong. If you want
more than 1024 file descriptors for select, you redefine __FD_SETSIZE and
recompile your code.
-- Howard Chu
unCertified GNU/Linux Designer/Implementer