Bug 125464 - www/apache22 [patch] Apache Bench doesn't work
Summary: www/apache22 [patch] Apache Bench doesn't work
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: Philip M. Gollucci
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-10 08:40 UTC by MQ
Modified: 2009-06-10 07:16 UTC (History)
0 users

See Also:


Attachments
file.diff (1.67 KB, patch)
2008-07-10 08:40 UTC, MQ
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description MQ 2008-07-10 08:40:01 UTC
Apache Bench in www/apache22 doesn't work, it always encounter connection reset.
# ./ab -c3 -n100 http://localhost/
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking localhost (be patient)...Send request failed!
apr_socket_recv: Connection reset by peer (54)
Total of 2 requests completed
#

This problem is caused by Apache Bench's improper use of the kqueue support in APR.

Fix: Use the attached patch could solve this problem. But I haven't test how https connections would be influenced.

There are three pieces of modified codes. The second and third modifications can increase the performance of Apache Bench.

Patch attached with submission follows:
How-To-Repeat: cd /usr/ports/www/apache22; make BATCH=yes; cd /usr/ports/www/apache22/work/httpd-2.2.9/support; ./ab -n100 -c10 http://localhost/
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2008-07-10 08:40:12 UTC
Responsible Changed
From-To: freebsd-ports-bugs->clement

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Philip M. Gollucci freebsd_committer freebsd_triage 2008-08-22 19:37:00 UTC
Responsible Changed
From-To: clement->pgollucci

I'll follow up on the dev@httpd.a.o list
Comment 3 Philip M. Gollucci freebsd_committer freebsd_triage 2008-12-27 20:26:12 UTC
Responsible Changed
From-To: pgollucci->apache

apache team
Comment 4 Philip M. Gollucci freebsd_committer freebsd_triage 2009-05-16 04:29:18 UTC
State Changed
From-To: open->feedback

at least part of this was applied, is this still an issue?  Its going to 
be a mess to sort it out and send it up stream, so I'm hoping its not
Comment 5 Philip M. Gollucci freebsd_committer freebsd_triage 2009-05-16 04:30:35 UTC
Responsible Changed
From-To: apache->pgollucci

started this one
Comment 6 Philip M. Gollucci freebsd_committer freebsd_triage 2009-06-10 07:16:34 UTC
State Changed
From-To: feedback->closed

feedbacktimeout