Hey Folks,
I have two RedHat 7.0 boxes running with the 2.2.16 SMP kernel and
all the latest patches and upgrades. The other day the main webserver
ran out of file descriptors for an unknown reason at the time, after I
restarted the services everthing was fine again.
Today I found the reason for the problem. It appears as if the
processes on the machines are retaining their connections to the DNS
servers, thus using up file descriptors for the connections.
When I took a look this morning, the count was up to roughly 2500 UDP
sockets to the primary and secondary DNS servers being listed in
netstat as being connected.
I verified the owning process using fuser and found that the majority
of them were owned by the apache server and another handful by xinetd.
I'm experiencing this on both servers, which both run under the same
environment except that one is primarily used as a mail server and the
other a web server.
Environment:
Linux web 2.2.16-22smp #3 SMP Fri Nov 3 22:08:03 EST 2000 i686 unknown
glibc-2.1.94-3
apache compiled with egcs-2.91.66
Visual of the problem:
# netstat -an | grep '.53' | grep udp
udp 0 0 web:3129 207.61.147.10:53 ESTABLISHED
udp 0 0 web:3128 207.61.147.20:53 ESTABLISHED
udp 0 0 web:3127 207.61.147.10:53 ESTABLISHED
udp 0 0 web:3126 207.61.147.20:53 ESTABLISHED
udp 0 0 web:3125 207.61.147.10:53 ESTABLISHED
udp 0 0 web:3124 207.61.147.20:53 ESTABLISHED
<snip>
# fuser -n udp 3124
3124/udp: 2360
# ps ax | grep 2360
2360 ? S 0:00 /usr/local/httpd/bin/httpd
# netstat -an | grep '.53' | grep udp | wc -l
162
Another odd little twist is that the connections are only visible on
these machines and not on the DNS servers...
Has anyone else experienced this kind of activity?
Thanks,
Joshua Hirsh
efni CONNECT
UNIX Systems Administration
[EMAIL PROTECTED]
Tel: (705) 474-3364 ext. 2557
Fax: (705) 472-9202
--===--===--===--===--===--==--===--===--===--===--===--
efni CONNECT UNIX Systems Administration
===--===--=== --==-- ===--===--===
[EMAIL PROTECTED] http://www.efni.com
North Bay, Ontario 705-474-3364 ext. 2557
--===--===--===--===--===--==--===--===--===--===--===--
PGP KEY: http://users.efni.com/admin/pgp/
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list