TCP Connections per hostname?

TCP Connections per hostname?

am 06.09.2009 23:35:56 von raulmt

Hi,

I use Apache as a loadbalancer of Tomcat instances using mod_jk. The IP in
which Apache is has many hostnames and the final application (in Tomcat)
sends a different response depending on the hostname (Header Host) of the
request.

I used Jmeter on this server using only one hostname and with sufficient
number of threads the connections just hangs. The strange thing is that when
this happens, I can't successfully request the site with a normal browser (I
suppose that's spected because there are many tcp connections open) BUT if I
use another hostname (that points to the same server) I can request the site
as usual. The other hostname just stop responding until I restart Apache.
Does this mean that the max tcp connections are independent on the hostname?

Sorry if my english isn't very good. Just tell me if you didn't understand
my question, please.

Regards.
--
View this message in context: http://www.nabble.com/TCP-Connections-per-hostname--tp253223 10p25322310.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See 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: TCP Connections per hostname?

am 24.09.2009 04:16:27 von Jignesh Badani

--=_alternative 000C7DA88825763B_=
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

If I understand your question right, I believe most browsers open 2 or 3=20
max TCP connections per host/domain.

regards
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -=20
- -=20
JB




From:
raulmt
To:
users@httpd.apache.org
Date:
09/06/2009 02:36 PM
Subject:
[users@httpd] TCP Connections per hostname?




Hi,

I use Apache as a loadbalancer of Tomcat instances using mod=5Fjk. The IP in
which Apache is has many hostnames and the final application (in Tomcat)
sends a different response depending on the hostname (Header Host) of the
request.

I used Jmeter on this server using only one hostname and with sufficient
number of threads the connections just hangs. The strange thing is that=20
when
this happens, I can't successfully request the site with a normal browser=20
(I
suppose that's spected because there are many tcp connections open) BUT if =

I
use another hostname (that points to the same server) I can request the=20
site
as usual. The other hostname just stop responding until I restart Apache.
Does this mean that the max tcp connections are independent on the=20
hostname?

Sorry if my english isn't very good. Just tell me if you didn't understand
my question, please.

Regards.
--=20
View this message in context:=20
http://www.nabble.com/TCP-Connections-per-hostname--tp253223 10p25322310.html

Sent from the Apache HTTP Server - Users mailing list archive at=20
Nabble.com.


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See 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





--=_alternative 000C7DA88825763B_=
Content-Type: text/html; charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

If I understand your question right, I
believe most browsers open 2 or 3 max TCP connections per host/domain. t>

regards
- - - - - - - - - -=
- - - - - - - - - - - - - - - - - - - - - - - - - -
- - -
JB




>From: n=3Dtop> n=3Dtop> =3Dtop>
ize=3D1 face=3D"sans-serif">raulmt <raulmt@gmail.com>
To: d>users@httpd.apache.org
Date:=
09/06/2009 02:36 PM
Subject: t>[users@httpd] TCP Connections per =
hostname?






=
Hi,

I use Apache as a loadbalancer of Tomcat instances using mod=5Fj=
k. The IP
in
which Apache is has many hostnames and the final application (in Tomc=
at)
sends a different response depending on the hostname (Header Host) o=
f the
request.

I used Jmeter on this server using only one hostna=
me and with sufficient
number of threads the connections just hangs. The=
strange thing is that
when
this happens, I can't successfully request the site with a normal b=
rowser
(I
suppose that's spected because there are many tcp connections open) B=
UT
if I
use another hostname (that points to the same server) I can request=
the
site
as usual. The other hostname just stop responding until I restart A=
pache.
Does this mean that the max tcp connections are independent on th=
e hostname?

Sorry if my english isn't very good. Just tell me if you=
didn't understand
my question, please.

Regards.
--
View t=
his message in context:
nnections-per-hostname--tp25322310p25322310.html">http:/=
/www.nabble.com/TCP-Connections-per-hostname--tp25322310p253 22310.html t>

Sent from the Apache HTTP Server - Users =
mailing list archive at Nabble.com.


----------------------------=
-----------------------------------------
The official User-To-User supp=
ort forum of the Apache HTTP Server Project.
See <URL:
href=3Dhttp://httpd.apache.org/userslist.html>http://htt=
pd.apache.org/userslist.html
>
for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.or=
g
  "   from the digest: users-digest-unsubscribe@httpd.=
apache.org
For additional commands, e-mail: users-help@httpd.apache.org<=
br>



--=_alternative 000C7DA88825763B_=--

Re: TCP Connections per hostname?

am 24.09.2009 04:21:23 von Jignesh Badani

--=_alternative 000CF1568825763B_=
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

I said 2 or 3, it is actually 2.

"It turns out that this is a case where IE strictly follows the=20
standards-- in this case, RFC2616, which covers HTTP1.1. As noted in the=20
RFC:
Clients that use persistent connections SHOULD limit the number of=20
simultaneous connections that they maintain to a given server. A=20
single-user client SHOULD NOT maintain more than 2 connections with any=20
server or proxy.
Saavy web developers can take this connection limit into account and=20
deliver their data from multiple domains, since the browser will open up=20
to two connections per domain."


http://blogs.msdn.com/ie/archive/2005/04/11/407189.aspx

regards
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -=20
- -=20
Jignesh Badani



From:
raulmt
To:
users@httpd.apache.org
Date:
09/06/2009 02:36 PM
Subject:
[users@httpd] TCP Connections per hostname?




Hi,

I use Apache as a loadbalancer of Tomcat instances using mod=5Fjk. The IP in
which Apache is has many hostnames and the final application (in Tomcat)
sends a different response depending on the hostname (Header Host) of the
request.

I used Jmeter on this server using only one hostname and with sufficient
number of threads the connections just hangs. The strange thing is that=20
when
this happens, I can't successfully request the site with a normal browser=20
(I
suppose that's spected because there are many tcp connections open) BUT if =

I
use another hostname (that points to the same server) I can request the=20
site
as usual. The other hostname just stop responding until I restart Apache.
Does this mean that the max tcp connections are independent on the=20
hostname?

Sorry if my english isn't very good. Just tell me if you didn't understand
my question, please.

Regards.
--=20
View this message in context:=20
http://www.nabble.com/TCP-Connections-per-hostname--tp253223 10p25322310.html

Sent from the Apache HTTP Server - Users mailing list archive at=20
Nabble.com.


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See 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





--=_alternative 000CF1568825763B_=
Content-Type: text/html; charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

I said 2 or 3, it is actually 2.<=
br>
"

//blogs.msdn.com/ie/archive/2005/04/11/407189.aspx method=3Dpost> =3D2 color=3D#2f2f2f face=3D"Verdana">It
turns out that this is a case where IE strictly follows the standards--
in this case,
size=3D2 color=3Dblue face=3D"Verdana">RFC2616 or=3D#2f2f2f face=3D"Verdana">,
which covers HTTP1.1.  As noted in the RFC:

olor=3D#2f2f2f face=3D"Verdana">Clients that use persistent
connections SHOULD limit the number of simultaneous connections that they
maintain to a given server. A single-user client SHOULD NOT maintain more
than 2 connections with any server or proxy.

olor=3D#2f2f2f face=3D"Verdana">Saavy web developers can
take this connection limit into account and deliver their data from multiple
domains, since the browser will open up to two connections per domain."=
;


sdn.com/ie/archive/2005/04/11/407189.aspx> ">http://blogs.msdn.com/ie/archive/2005/04/11/407189.aspx
>regards
- - - - - - - - - - - - - - =
- - - - - - - - - - - - - - - - - - - - - -
- - -
Jignesh Badani


=3Dtop>
From:<=
td>raulmt <raulmt@gmail.com> >
To=
:
users@httpd.apache.org >
Da=
te:
09/06/2009 02:36 PM=
Sub=
ject:
[users@httpd] TCP Connec=
tions per hostname?





e=3D2>
Hi,

I use Apache as a loadbalancer of Tomcat instances usi=
ng mod=5Fjk. The IP
in
which Apache is has many hostnames and the final application (in Tomc=
at)
sends a different response depending on the hostname (Header Host) o=
f the
request.

I used Jmeter on this server using only one hostna=
me and with sufficient
number of threads the connections just hangs. The=
strange thing is that
when
this happens, I can't successfully request the site with a normal b=
rowser
(I
suppose that's spected because there are many tcp connections open) B=
UT
if I
use another hostname (that points to the same server) I can request=
the
site
as usual. The other hostname just stop responding until I restart A=
pache.
Does this mean that the max tcp connections are independent on th=
e hostname?

Sorry if my english isn't very good. Just tell me if you=
didn't understand
my question, please.

Regards.
--
View t=
his message in context:
nnections-per-hostname--tp25322310p25322310.html">http:/=
/www.nabble.com/TCP-Connections-per-hostname--tp25322310p253 22310.html t>

Sent from the Apache HTTP Server - Users =
mailing list archive at Nabble.com.


----------------------------=
-----------------------------------------
The official User-To-User supp=
ort forum of the Apache HTTP Server Project.
See <URL:
href=3Dhttp://httpd.apache.org/userslist.html>http://htt=
pd.apache.org/userslist.html
>
for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.or=
g
  "   from the digest: users-digest-unsubscribe@httpd.=
apache.org
For additional commands, e-mail: users-help@httpd.apache.org<=
br>



--=_alternative 000CF1568825763B_=--

Re: TCP Connections per hostname?

am 25.09.2009 00:03:29 von raulmt

No, maybe I didn't explained it very well. Second try:

Apache as a loadbalancer in my case, receives requests on one IP but with
many different hostnames (like a hosting company who hosts many domains on
one server).
I did a stress test with JMeter to see how many concurrent users my
application supports. And what i found is this: if I set Jmeter to
sufficient concurrent requests to my server on one of the domains it hosts
(say, example.org), Apache hangs and doesn't respond anymore to any other
request on example.org. BUT, if i make a normal request to example2.org,
also hosted on the same server, Apache responds normally... but on
example.org doesn't respond anymore until I restart Apache.

So, it appers that Apache blocks the requests only to that domain...

Thank you for your response, I hope this explanation is more understandable.

Regards.
--
View this message in context: http://www.nabble.com/TCP-Connections-per-hostname--tp253223 10p25593464.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See 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