You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Tony Anecito <ad...@yahoo.com> on 2010/05/21 18:05:34 UTC

[users@httpd] Connections hanging...

Hi All,

When load testing against a system that uses Apache we notice an extra-ordinary issue where we had quite a few connections. While not unexpected we were concerned. I ran a manual test against Apache and discovered sometimes connections would last exactly 30 seconds when closing them which turned out to be the same setting for WAIT_TIME for tcpip settings in my windows registry. I noticed the connection issue when closing connetions for IE 7. I also did not see the same issue with the latest version of FireFox but then I suspect it does not use the WAIT_TIME setting to obtain faster disconnect times for tcpip sockets?

So I am not sure what the issue is if Apache is responding slowly to socket disconnects. Performance wise when viewing pages this 30 seconds is not visible to the user but I am concerned about socket availability.

Thanks,
-Tony


      

---------------------------------------------------------------------
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] Connections hanging...

Posted by Tony Anecito <ad...@yahoo.com>.
Thanks Igor,

So are you saying the server size socket is no longer open? I had 2 concerns:

1. Server sockets are not available on the server side for 30 seconds
2. Client side sockets are still not available.

Sounds like #2 might be true is true but what about #1?

Thanks,
-Tony


----- Original Message ----
From: Igor Galić <i....@brainsware.org>
To: users@httpd.apache.org
Sent: Fri, May 21, 2010 2:57:10 PM
Subject: Re: [users@httpd] Connections hanging...


----- "Tony Anecito" <ad...@yahoo.com> wrote:

> Hi All,
> 
> When load testing against a system that uses Apache we notice an
> extra-ordinary issue where we had quite a few connections. While not
> unexpected we were concerned. I ran a manual test against Apache and
> discovered sometimes connections would last exactly 30 seconds when
> closing them which turned out to be the same setting for WAIT_TIME for
> tcpip settings in my windows registry. I noticed the connection issue
> when closing connetions for IE 7. I also did not see the same issue
> with the latest version of FireFox but then I suspect it does not use
> the WAIT_TIME setting to obtain faster disconnect times for tcpip
> sockets?

Depending on how a connection is closed (I suppose), WAIT_TIME is the state
a socket connection will linger in, before the OS allows the port to be
reused.

> So I am not sure what the issue is if Apache is responding slowly to
> socket disconnects. Performance wise when viewing pages this 30
> seconds is not visible to the user but I am concerned about socket
> availability.

Unless you have KeepAlive Off, and are planning to serve more than
30K connections concurrently, this shouldn't be an issue.

> Thanks,
> -Tony

-- 
Igor Galić

Tel: +43 (0) 699 122 96 338
Fax: +43(0) 1 91 333 41
Mail: i.galic@brainsware.org
URL: http://brainsware.org/

---------------------------------------------------------------------
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


      

---------------------------------------------------------------------
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] Connections hanging...

Posted by Igor Galić <i....@brainsware.org>.
----- "Tony Anecito" <ad...@yahoo.com> wrote:

> Hi All,
> 
> When load testing against a system that uses Apache we notice an
> extra-ordinary issue where we had quite a few connections. While not
> unexpected we were concerned. I ran a manual test against Apache and
> discovered sometimes connections would last exactly 30 seconds when
> closing them which turned out to be the same setting for WAIT_TIME for
> tcpip settings in my windows registry. I noticed the connection issue
> when closing connetions for IE 7. I also did not see the same issue
> with the latest version of FireFox but then I suspect it does not use
> the WAIT_TIME setting to obtain faster disconnect times for tcpip
> sockets?

Depending on how a connection is closed (I suppose), WAIT_TIME is the state
a socket connection will linger in, before the OS allows the port to be
reused.

> So I am not sure what the issue is if Apache is responding slowly to
> socket disconnects. Performance wise when viewing pages this 30
> seconds is not visible to the user but I am concerned about socket
> availability.

Unless you have KeepAlive Off, and are planning to serve more than
30K connections concurrently, this shouldn't be an issue.

> Thanks,
> -Tony

-- 
Igor Galić

Tel: +43 (0) 699 122 96 338
Fax: +43(0) 1 91 333 41
Mail: i.galic@brainsware.org
URL: http://brainsware.org/

---------------------------------------------------------------------
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