You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Sudhir Kumar <su...@cgsmith.soft.net> on 2003/03/19 14:36:40 UTC
Concurrent users accesing JSP application
hello,
I am running a JSP application with tomcat 4.1.12. It works fine when
accessed individually. But when more than 3 users try to access the same
page or link simultaniously,it behaves abnormally, sometimes the tomcat
crashes, sometimes i get some JParser exception. I have defined my own
context in server.xml. Is there any configuration to be done in server.xml
to allow maximun number of concurrent users ? The tomcat i am using is
freely down loaded from the net and is an evaluation copy.
Can anyone help me in this regard
Thanks and best regards
Sudhir
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
RE: Concurrent users accesing JSP application
Posted by "Craig R. McClanahan" <cr...@apache.org>.
On Thu, 20 Mar 2003, Sudhir Kumar wrote:
> Date: Thu, 20 Mar 2003 10:10:36 +0530
> From: Sudhir Kumar <su...@cgsmith.soft.net>
> Reply-To: Tomcat Users List <to...@jakarta.apache.org>,
> sudhir@cgsmith.soft.net
> To: 'Tomcat Users List' <to...@jakarta.apache.org>
> Subject: RE: Concurrent users accesing JSP application
>
> hi Tim,
> Thanks for the reply..
> I am using JDBC-ODBC bridge,
You can stop wondering now. This driver is *not* designed to be used in a
multi-threaded environment like a servlet container, so you are bound to
have thread safety problems.
> the JSP's are thread safe and the block of
> code accessing the database are Syncronized. Will that be sufficient to say
> that my code is thread safe ? or will i have to do anything extra ?
>
Using a different JDBC driver is the most important issue. Even if you
very carefully ensure that only one database operation at a time occurs,
your application's response time will make it totally unusable for any
reasonable number of concurrent users.
> thanks
> Sudhir
>
Craig McClanahan
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
RE: Concurrent users accesing JSP application
Posted by Sudhir Kumar <su...@cgsmith.soft.net>.
hi Tim,
Thanks for the reply..
I am using JDBC-ODBC bridge, the JSP's are thread safe and the block of
code accessing the database are Syncronized. Will that be sufficient to say
that my code is thread safe ? or will i have to do anything extra ?
thanks
Sudhir
-----Original Message-----
From: Tim Funk [mailto:funkman@joedog.org]
Sent: Wednesday, March 19, 2003 7:12 PM
To: Tomcat Users List
Subject: Re: Concurrent users accesing JSP application
All tomcat binaries are free and there are no evaluations. Make sure
someone isn't swindling you.
As for concurrent access, tomcat can handle many concurrent users. The
only restriction is your code (or code your using) must be thread safe.
If you are using ODBC (JDBC-ODBC bridge) - you will probably be very
unstable since ODBC isn't very thread friendly with respect to java.
If you are using 3rd party code, make sure it is thread safe.
-Tim
Sudhir Kumar wrote:
> hello,
> I am running a JSP application with tomcat 4.1.12. It works fine when
> accessed individually. But when more than 3 users try to access the same
> page or link simultaniously,it behaves abnormally, sometimes the tomcat
> crashes, sometimes i get some JParser exception. I have defined my own
> context in server.xml. Is there any configuration to be done in server.xml
> to allow maximun number of concurrent users ? The tomcat i am using is
> freely down loaded from the net and is an evaluation copy.
>
> Can anyone help me in this regard
>
> Thanks and best regards
> Sudhir
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Concurrent users accesing JSP application
Posted by Tim Funk <fu...@joedog.org>.
All tomcat binaries are free and there are no evaluations. Make sure
someone isn't swindling you.
As for concurrent access, tomcat can handle many concurrent users. The
only restriction is your code (or code your using) must be thread safe.
If you are using ODBC (JDBC-ODBC bridge) - you will probably be very
unstable since ODBC isn't very thread friendly with respect to java.
If you are using 3rd party code, make sure it is thread safe.
-Tim
Sudhir Kumar wrote:
> hello,
> I am running a JSP application with tomcat 4.1.12. It works fine when
> accessed individually. But when more than 3 users try to access the same
> page or link simultaniously,it behaves abnormally, sometimes the tomcat
> crashes, sometimes i get some JParser exception. I have defined my own
> context in server.xml. Is there any configuration to be done in server.xml
> to allow maximun number of concurrent users ? The tomcat i am using is
> freely down loaded from the net and is an evaluation copy.
>
> Can anyone help me in this regard
>
> Thanks and best regards
> Sudhir
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org