RE: [httperf] How to solve connreset?‏

Arlitt, Martin martin.arlitt at hp.com
Tue Nov 30 05:00:23 PST 2010


Hi Cooky

The problems described in the server log seem unrelated to httperf, and could be the cause of the resets. I think your next step is to resolve those problems.

Thanks
Martin

From: httperf-bounces at linux.hpl.hp.com [mailto:httperf-bounces at linux.hpl.hp.com] On Behalf Of Suchada Pakapongpan
Sent: Tuesday, November 30, 2010 4:16 AM
To: httperf at linux.hpl.hp.com
Subject: RE: [httperf] How to solve connreset?‏

 Hi Martin

Thank you very much for your help. Sorry take long time, because I've just finished my notebook problems.
I've patched httperf to not re-use the connection already, but connresets still occur. I've attatched httperf output and some request/reply capture file here. My test: LVS(10.1.1.1) has 2 servers(10.1.1.2,10.1.1.3), 10.1.1.2 started before then 10.1.1.3 starting during httperf load test.

Maybe connreset problem is not httperf. Is it correct?
And my loadbalance(LVS) also auto detect real server every 2s.
It migth be my http+tomcat server problem (apache2.2.3/tomcat5.5/mod_proxy_ajp) because when I start new server that a member of LVS during load test, I always got this error in http error log file for ~1 minute in the same period of starting that server too.

[Tue Nov 30 18:09:53 2010] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations
[Tue Nov 30 18:09:54 2010] [error] (11! 1)Connection refused: proxy: HTTP: attempt to connect to 127.0.0.1:8080 (127.0.0.1) failed
[Tue Nov 30 18:09:54 2010] [error] ap_proxy_connect_backend disabling worker for (127.0.0.1)
[Tue Nov 30 18:09:59 2010] [error] proxy: HTTP: disabled connection for (127.0.0.1)
[Tue Nov 30 18:10:04 2010] [error] proxy: HTTP: disabled connection for (127.0.0.1)
[Tue Nov 30 18:10:09 2010] [error] proxy: HTTP: disabled connection for (127.0.0.1)
[Tue Nov 30 18:10:14 2010] [error] proxy: HTTP: disabled connection for (127.0.0.1)
[Tue Nov 30 18:10:19 2010] [error] proxy: HTTP: disabled connection for (127.0.0.1)
[Tue Nov 30 18:10:24 2010] [error] proxy: HTTP: disabled connection for (127.0.0.1)
[Tue Nov 30 18:10:29 2010] [error] proxy: HTTP: disabled connection for (127.0.0.1)
[Tue Nov 30 18:10:34 2010] [error] proxy: HTTP: disabled connection for (127.0.0.1)
[Tue Nov 30 18:10:39 2010] [error] proxy: HTTP: disabled connection for (127.0.0.1)
[Tue Nov 30 18:1! 0:44 2010] [error] proxy: HTTP: disabled connection for (127.0.0.1)
[Tue Nov 30 18:10:49 2010] [error] proxy: HTTP: disabled connection for (127.0.0.1)

but other period it's OK (no error).

And what do you think about this?

Thanks,
Cooky


________________________________
From: martin.arlitt at hp.com
To: cooky_th at hotmail.com; httperf at linux.hpl.hp.com
Date: Fri, 26 Nov 2010 17:03:20 +0000
Subject: RE: [httperf] How to solve connreset?‏

Hi Cooky

Since you are using a session-based workload, I expect you will have to patch httperf to not re-use connections once the server has issued a Connection: close header. Assuming that this is the issue you are experiencing, I’ve attached a patch (conn_close.patch) which should enable httperf to close the connection upon receiving this header. If the connections are being closed in some other way, this patch won’t resolve the issue.

If you aren’t familiar with patching, and are using httperf version 0.9.0, I have also attached the three files that I modified to create the patch. You will need to put these three files (conn.h, core.c, http.c) in httperf-0.9.0/src, and then re-run “make”.

I have only tested this in a simple case, so please let me know if it resolves the problem you are experiencing. If not, please use the --print-request and –print-reply options to capture the headers in a test that exhibits the problem.

Thanks
Martin


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://napali.hpl.hp.com/pipermail/httperf/attachments/20101130/f0ee7319/attachment-0001.htm


More information about the httperf mailing list