Bug 125805 - www/apache22 stops handling connections
Summary: www/apache22 stops handling connections
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-apache (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-20 16:40 UTC by Henrik Friedrichsen
Modified: 2009-03-26 13:45 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Henrik Friedrichsen 2008-07-20 16:40:00 UTC
After a few days of uptime of Apache 2.2 and FreeBSD, Apache 2.2 stops accepting new requests. Looking at netstat, there hundreds of connections with a CLOSED_WAIT state. Apache 2.2 is running the worker module.

I'm using if_re, which has caused problems before (wrong tcp checksums), we then used the patched files posted on the mailinglist by a FreeBSD comitter.
After restarting apache, the problem is solved until it reoccurs.


dev.re.0.%desc: RealTek 8168/8111B PCIe Gigabit Ethernet
dev.re.0.%pnpinfo: vendor=0x10ec device=0x8168 subvendor=0x1462 subdevice=0x368c class=0x020000


Thanks a lot,
Henrik.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2008-07-20 20:54:52 UTC
Responsible Changed
From-To: freebsd-ports-bugs->clement

Over to maintainer.
Comment 2 Martin Wilke freebsd_committer freebsd_triage 2008-09-06 16:04:31 UTC
State Changed
From-To: open->feedback

Could you please test if this issue still exists with an fresh ports 
tree? Thanks for your report. 

- Martin
Comment 3 Henrik Friedrichsen 2008-09-06 16:56:12 UTC
Hey,

it turned out to be a problem with the if_re driver which I have "bypassed"
by turning off these options with ifconfig: rxcsum txcsum tso lro vlanhwtag

Additionally I have applied Pyun YongHyeon's patches for if_re.
So far things are stable if I run apache2.2 with the prefork MPM.

Henrik.
Comment 4 Philip M. Gollucci freebsd_committer freebsd_triage 2008-12-27 20:28:23 UTC
Responsible Changed
From-To: clement->apache

apache team
Comment 5 Pav Lucistnik freebsd_committer freebsd_triage 2009-03-26 13:44:52 UTC
State Changed
From-To: feedback->closed

Was a problem with NIC driver