by the way, the 2 connection limit is actually hardcoded in the http
socket and not in IE. AFAIK, you can't turn it off or change it. You'd
have to write your own browser to get around that.

peter


On Tue, 11 Jan 2005 18:48:20 -0500, Hunt, Joseph (OVBU- Ft.Collins)
<[EMAIL PROTECTED]> wrote:
> Good call, that looks like my problem.  The HTTP 1.1 RFC reads :
> 
>    "Clients that use persistent connections SHOULD limit the number of
>    simultaneous connections that they maintain to a given server. A
>    single-user client SHOULD maintain AT MOST 2 connections with any
>    server or proxy."
> 
> I also found anecdotal references about HTTP 1.0 implementations adding
> connection limits as well to avoid killing HTTP servers.  That is not at
> all what I wanted to hear, but thanks for the quick and very helpful
> response.
> 
> Thanks,
> Joe Hunt
> 
> > -----Original Message-----
> > From: Peter Johnson [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, January 11, 2005 4:19 PM
> > To: Tomcat Users List
> > Subject: Re: Max of two connections per client?
> >
> > Joe,
> >
> > What I am saying is that from memory I believe that it is a
> > specification of the HTTP protocol that no more than two
> > concurrent connections are opened to any one host. The
> > purpose is to limit the potential load on the server and it's
> > network socket pool.
> >
> > I.e. Given a server has about 65000 free sockets at it's
> > disposal and someone poorly designed a page which had 100
> > images and the server came under the Slashdot effect of >650
> > concurrent users then the server would exhaust all it's
> > available sockets if each browser was allowed to make a
> > connection per image.
> > (Yes: these figures are rough as no CSS or HTML content
> > requests have been taken into account and a page with 100
> > images is quite unlikely)
> >
> > However, I could be going down completely the wrong path
> > here. You might want to do a little research on it yourself.
> >
> > PJ
> >
> > Hunt, Joseph (OVBU- Ft.Collins) wrote:
> >
> > >PJ,
> > >     I'm not sure what you are suggesting, but I did try
> > turning off HTTP
> > >1.1 in IE and still get the same behavior.
> > >
> > >Thanks,
> > >Joe Hunt
> > >
> > >
> > >
> > >>-----Original Message-----
> > >>From: Peter Johnson [mailto:[EMAIL PROTECTED]
> > >>Sent: Tuesday, January 11, 2005 2:48 PM
> > >>To: Tomcat Users List
> > >>Subject: Re: Max of two connections per client?
> > >>
> > >>I think that is HTTP/1.1 for you ... but the details are a little
> > >>foggy
> > >>
> > >>PJ
> > >>
> > >>Hunt, Joseph (OVBU- Ft.Collins) wrote:
> > >>
> > >>
> > >>
> > >>>Ladies and Gentlemen,
> > >>>   I have created an html document that contains several
> > >>>
> > >>>
> > >><Iframe>s that
> > >>
> > >>
> > >>>all refer to the same JSP page.  The JSP simply
> > >>>waits(Thread.sleep()) 5 seconds and then returns some
> > text.  When I
> > >>>open the html document in either IE or Mozilla after 5
> > seconds I see
> > >>>the first two iframes load, then 5 seconds later, I see the
> > >>>
> > >>>
> > >>next two, etc.
> > >>
> > >>
> > >>>   I am using the default config params on tomcat 5.0.28
> > >>>
> > >>>
> > >>on Win XP Pro.
> > >>
> > >>
> > >>>If I understand them correctly, I should have between 25
> > >>>(minSpareThreads) and 150(maxSpareTreads) threads
> > available.  Why do
> > >>>the requests wait for the previous to complete as if there
> > >>>
> > >>>
> > >>are only two
> > >>
> > >>
> > >>>threads handling the requests?
> > >>>   In my research, I have noticed that connecting from
> > >>>
> > >>>
> > >>other machines, I
> > >>
> > >>
> > >>>get two concurrent requests per machine.  For example, if
> > I open the
> > >>>html page on three machines simultaneously, it appears
> > that I have 6
> > >>>threads in tomcat working.  But I am always restricted to two
> > >>>concurrent requests per client.  I have also noticed that if
> > >>>
> > >>>
> > >>I use both
> > >>
> > >>
> > >>>IE and Mozilla on the same machine, I am able to get at most 4
> > >>>consecutive requests.  Again 2 requests from each browser.
> > >>>
> > >>>
> > >>If I open 3
> > >>
> > >>
> > >>>IE browsers on the same machine I see the updates happen two
> > >>>
> > >>>
> > >>at a time
> > >>
> > >>
> > >>>across all the browsers.
> > >>>   Is there some piece of configuration that I am missing?
> > >>>
> > >>>
> > >> Where is this
> > >>
> > >>
> > >>>two concurrent requests coming from?
> > >>>
> > >>>BTW it does not appear to be the browser that is dispatching
> > >>>
> > >>>
> > >>only two
> > >>
> > >>
> > >>>requests.  I can add any number of additional Iframes pointing to
> > >>>non-tomcat sites and they seem to begin loading immediately.
> > >>>
> > >>>Thanks,
> > >>>
> > >>>Joe Hunt
> > >>>HP OpenView
> > >>>(970)898-6402
> > >>>
> > >>>-----------------------------------------------------------
> > ----------
> > >>>To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >>>For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > >>>
> > >>>
> > >>>
> > >>>
> > >>>
> > >>------------------------------------------------------------
> > ---------
> > >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >>For additional commands, e-mail: [EMAIL PROTECTED]
> > >>
> > >>
> > >>
> > >>
> > >
> > >---------------------------------------------------------------------
> > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to