too many open files?
Matt Mankins
mankins at media.mit.edu
Sat Jan 27 19:02:03 UTC 2007
On Jan 27, 2007, at 1:35 PM, Brad Fitzpatrick wrote:
> What's your ulimit's fd limit at?
open files (-n) 1024
> When this happens, how many open files are in /proc/<pid>/fd/ ?
> And where
> are they for?
>
> Or, rather, what's the output of "lsof -p <djabberd-pid>" ?
The next time it happens, I'll check. Last time I did lsof and it
didn't seem too big, but had nothing to compare it with. I guess I
should have compared that with 1024, huh?
The Djabberd process has been behaving quite nicely since then, with
very little resources used. Incidentally, this is a xen guest machine
and djabberd is running as its own user.
Will post to the list if I find anything definitive. Thanks for the
help.
Mankins
> On Fri, 26 Jan 2007, Matt Mankins wrote:
>
>> Hi.
>>
>> I was just looking through my log file and noticed the following
>> errors:
>>
>> 1) Too many open files -- Is there a way to see the number of active
>> connections?
>> 2) Danga::Socket undef error. The line is: my $fd = fileno($sock);
>> 3) The process was using 100% of CPU and taking up 126MB. The number
>> of active connections was less than 10. It sits behind LVS which
>> checks for connection uptime periodically which is why the high
>> connection count.
>>
>> DJabberd.pm says our $VERSION = '0.81';
>>
>> Has anyone seen anything like this before?
>> .
>> .
>> 23378 DEBUG DJabberd.DNS pkt =
>> Net::DNS::Packet=HASH(0x14b6fdc4)
>> 23378 DEBUG DJabberd.DNS sock =
>> XML Parser Error: Can't use an undefined value as a symbol reference
>> at /usr/lib/perl5/site_perl/5.8.8/Danga/Socket.pm line 752.
>>
>> </stream:stream>
>> !
>> 23378 DEBUG DJabberd.Connection.OldSSLClientIn DISCONNECT:
>> 81044
>>
>> 23378 DEBUG DJabberd.Connection.OldSSLClientIn New connection
>> '83777' from 192.168.0.151
>> private key 23378: 1 - error:02001018:system library:fopen:Too many
>> open files
>> private key 23378: 2 - error:20074002:BIO
>> routines:FILE_CTRL:system lib
>> private key 23378: 3 - error:140B3002:SSL
>> routines:SSL_CTX_use_RSAPrivateKey_file:system lib
>> 23378 ERROR DJabberd Error creating
>> new DJabberd::Connection::OldSSLClientIn: 23378: private key
More information about the Djabberd
mailing list