Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 50602 invoked from network); 19 Jan 2007 13:51:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Jan 2007 13:51:37 -0000 Received: (qmail 28860 invoked by uid 500); 19 Jan 2007 13:51:30 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 28843 invoked by uid 500); 19 Jan 2007 13:51:30 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 28832 invoked by uid 99); 19 Jan 2007 13:51:30 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Jan 2007 05:51:30 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of lists@nabble.com designates 72.21.53.35 as permitted sender) Received: from [72.21.53.35] (HELO talk.nabble.com) (72.21.53.35) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Jan 2007 05:51:20 -0800 Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1H7u89-00031T-Ug for users@tomcat.apache.org; Fri, 19 Jan 2007 05:50:09 -0800 Message-ID: <8449258.post@talk.nabble.com> Date: Fri, 19 Jan 2007 05:50:09 -0800 (PST) From: Frankbl To: users@tomcat.apache.org Subject: Re: Tomcat limited connection to only 1 In-Reply-To: <45B0C6FB.9010402@oma.be> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Nabble-From: frank.bluemel@dpg.com References: <8446295.post@talk.nabble.com> <45B09AEF.5000604@oma.be> <8448664.post@talk.nabble.com> <45B0C6FB.9010402@oma.be> X-Virus-Checked: Checked by ClamAV on apache.org normaly yes.=20 but by this application the connection can only handle one session with one sessionid. but by the local installation the session id is not importand. Only by the web application we need the session id and here we can oly handle one sessionid for one connection. by the local installation we connect only once a time with the user guest. i don't understand this. normaly when i close the browser the session and session id will be distroyed. is that not right. David Delbecq wrote: >=20 > Connection has nothing to do with session. A session lives across > several connections to server. Are you trying to prevent 2 different > user from logging in at the same time? This is an application specific > issue and should be handled, probably using an HttpSessionListener. It's > not the tomcat's job. >=20 > A connection is something that last for a few milli seconds. A session > is something that id identified by a SessionId and live for a long as it > is used. The sessions get destroyed after a certain amount of idle time > (usually 30 minutes). >=20 > An no, there is no way for a web server to count the number of web > browser who have a page opened on your server. You can count the > session, but this count include browser that have closed less than 30 > minutes ago. >=20 > En l'instant pr=C3=A9cis du 01/19/07 14:04, Frankbl s'exprimait en ces te= rmes: >> ok. i know. nothing will be work is not correct. >> i mean. i can allways connect 4 until 6 times at the same time. I have >> not >> tested more. i have open 3 session on my local pc with localhost and 3 >> session on a remote pc with the ip address. >> >> what i need is. that i can only connect with localhost or ip address wit= h >> 2 >> sessions. My application open two browser windows allways. for me this i= s >> 2 >> connection and only 1 sessions at the same time. the first browser windo= w >> shows only the company banner. from here i start the second browser >> window >> with my sesseion where i work. Here i get my session no. >> >> The application is a local installation on a pc for running a spareparts >> catalogue. here we have the same layout and funcitionality as our Web >> server. >> >> >> The application comes from a external company and i'am serv this here by >> us. >> i'am not the big profi with tomcat and that's my problem. At first i >> have >> ask the external company. but he has no reason. i must pay when we wont >> this.=20 >> i would rather spend the time for lern more about tomcat and to give >> better >> service to our customer. >> >> ok, at last. I have try the parameter maxkeepaliverequest. But the same. >> i >> can connect with the same result as before. >> >> Frank >> >> >> >> >> David Delbecq wrote: >> =20 >>> Can you describe with more details the "nothing will work" and your >>> intended behaviour. Explain how you tested configuration. According to >>> your configuration, the connector should work like this: >>> >>> 1) Serves exactly one request at a time (maxProcessors). >>> 2) When another connection is attempted and your Http Thread is already >>> serving another request, it will queue that request and serve it later >>> (queue has a size of acceptCount) >>> 3) If there is a third simultaneous connection attempt (the first being >>> served, the second waiting to be served), the server will refuse it (It >>> will behave to client as if server was down!!). >>> >>> There is also the problem of 'keepAlive' request that might interfer in >>> your case, try to add |maxKeepAliveRequests=3D"1" >>> >>> Last but not least, limiting tomcat to 1 connection will behave >>> erratically in the browser's view, browsers tend to open several >>> connections at a time to same server, to get pictures, css, favicon in >>> parallel. >>> >>> |En l'instant pr=C3=A9cis du 01/19/07 10:32, Frankbl s'exprimait en ces >>> termes: >>> =20 >>>> I will limited the connection for tomcat to one. I have tryed any >>>> configuration with the connector in server.xml. but nothing will work. >>>> Can anyone say what i must do to get the right parameters. here my las= t >>>> configuration string. >>>> >>>> >>> port=3D"8080" >>>> maxThreads=3D"1" minSpareThreads=3D"1" maxSpareThreads=3D"1" >>>> minProcessors=3D"1" >>>> maxProcessors=3D"1" enableLookups=3D"false" acceptCount=3D"1" debug=3D= "0" >>>> connectionTimeout=3D"20000" useURIValidationHack=3D"false"/> >>>> >>>> Thanks for your help. >>>> >>>> Frank >>>> >>>> =20 >>>> =20 >>> --------------------------------------------------------------------- >>> To start a new topic, e-mail: users@tomcat.apache.org >>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org >>> For additional commands, e-mail: users-help@tomcat.apache.org >>> >>> >>> >>> =20 >> >> =20 >=20 >=20 > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org >=20 >=20 >=20 --=20 View this message in context: http://www.nabble.com/Tomcat-limited-connecti= on-to-only-1-tf3039025.html#a8449258 Sent from the Tomcat - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org