You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Nathan Long <na...@gmail.com> on 2010/01/13 17:26:47 UTC

[users@httpd] Apache 2.2.14 - Win XP - requests hanging, nothing sent

Hi! First time posting - will try to step lightly.

I've got Apache 2.2.14 installed on a Win XP laptop. Some page loads
work fine, but others never complete. To rule out PHP or MySQL, I made
a 1 KB, static, HTML-only page, and I get the same hit-or-miss issue
with it. I've also tried Firefox and IE, with the same results.

If I load a page repeatedly, some requests never complete. It isn't
100% predictable, but seems to happen most if a 'hard refresh'
(Ctrl+F5) is used and requests come in quick succession. If I wait 5
seconds between each one, it rarely hangs; if 2 seconds, it hangs
every 2nd or 3rd time.

To investigate, I enabled httpd-info and ExtendedStatus. On the
server-status page, I see that each time a request 'hangs,' the number
of requests being processed goes up. Each is listed as 'sending
reply,' but both the number of accesses to that connection and the
kilobytes transferred are 0. Requests to server-status itself
sometimes hang, though rarely.

Here's a sample of server-status after hammering Apache with a bunch of reloads:
---------------------------------------------------
Current Time: Wednesday, 13-Jan-2010 11:10:01 Eastern Standard Time
Restart Time: Wednesday, 13-Jan-2010 10:59:23 Eastern Standard Time
Parent Server Generation: 0
Server uptime: 10 minutes 37 seconds
Total accesses: 202 - Total Traffic: 1.2 MB
.317 requests/sec - 1912 B/second - 5.9 kB/request
19 requests currently being processed, 45 idle workers

___________________________W_WWWWWWWWWWWWWWWWWW
................................................................

Srv	PID	Acc	M	SS	Req	Conn	Child	Slot	Client	VHost	Request
0-0	2924	0/16/16	W 	0	0	0.0	0.13	0.13 	127.0.0.1	127.0.0.1	GET
/server-status HTTP/1.1
0-0	2924	0/102/102	_ 	116	0	0.0	0.77	0.77 	localhost	127.0.0.1	GET
/server-status HTTP/1.1
0-0	2924	0/1/1	W 	131	0	0.0	0.00	0.00 	127.0.0.1	127.0.0.1	GET / HTTP/1.1
0-0	2924	31/33/33	W 	132	0	230.3	0.23	0.23 	localhost	127.0.0.1	GET / HTTP/1.1
0-0	2924	0/3/3	W 	302	0	0.0	0.00	0.00 	127.0.0.1	127.0.0.1	GET / HTTP/1.1
0-0	2924	4/5/5	W 	559	0	19.9	0.02	0.02 	localhost	127.0.0.1	GET / HTTP/1.1
------------------------------------------------------------------------

The machine itself doesn't seem to be straining - CPU and RAM usage
are both low. It's a DELL D600 with 1 GB of RAM and 1.6 GHz processor.

Normally I'd be 100% sure that a problem is my fault, but I found
someone else with an identical issue, so I'm only 98% sure. :) He
asked the question here, and I have responded, but we're in the same
boat.

http://serverfault.com/questions/95620/local-apache-on-windows-xp-not-finishing-page-requests/102080#102080

Thanks in advance for any help or (gentle?) corrections.

--Nathan

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Apache 2.2.14 - Win XP - requests hanging, nothing sent

Posted by Nathan Long <na...@gmail.com>.
William,

That fixed it! Thank you so much - a three-day headache is gone.

--Nathan

On Wed, Jan 13, 2010 at 1:14 PM, William A. Rowe Jr.
<wr...@rowe-clan.net> wrote:
> On 1/13/2010 10:26 AM, Nathan Long wrote:
>> Hi! First time posting - will try to step lightly.
>>
>> I've got Apache 2.2.14 installed on a Win XP laptop. Some page loads
>> work fine, but others never complete. To rule out PHP or MySQL, I made
>> a 1 KB, static, HTML-only page, and I get the same hit-or-miss issue
>> with it. I've also tried Firefox and IE, with the same results.
>
> XP [personal operating system] only supports two simultanious applications
> of the TransmitFile API.
>
> Please try the 'stock answer' of 'EnableSendfile Off' in your config.
>
>
>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Apache 2.2.14 - Win XP - requests hanging, nothing sent

Posted by "William A. Rowe Jr." <wr...@rowe-clan.net>.
On 1/13/2010 10:26 AM, Nathan Long wrote:
> Hi! First time posting - will try to step lightly.
> 
> I've got Apache 2.2.14 installed on a Win XP laptop. Some page loads
> work fine, but others never complete. To rule out PHP or MySQL, I made
> a 1 KB, static, HTML-only page, and I get the same hit-or-miss issue
> with it. I've also tried Firefox and IE, with the same results.

XP [personal operating system] only supports two simultanious applications
of the TransmitFile API.

Please try the 'stock answer' of 'EnableSendfile Off' in your config.



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org