Nitin Patil wrote:
> Hi, We did a small test to see multiple users hitting our web-site at
> the same time. We tried 8 simultaneous hits, but only 5 went through.
> We tried some more combinations and the number of successful hits is
> around the thread pool size. In others, we are getting NullPointer
> exceptions in the "callPage()" method. Here's the configuration:- JRun
> 2.2 on IIS- The Single-threaded pool size = 6- In the connector
> proxy, Minimum number of threads = 10 Maximum number of threads =
> 100 Is this a know issue? Anybody who knows a solution for this? I
> would appreciate any help ASAP, since this is hindering our site from
> being live. Regards,- Nitin
If you are using SingleThreadModel servlets, you're seeing exactly what
you should expect. STM tells the servlet engine that only one request
is allowed per instance, at any given time. The only way to increase
the number of simultaneous requests you can handle is to increase the
size of the STM pool. If your servlets did not implement STM, the
number of simultaneous requests would be limited to how many threads are
running (presumably 100 in the above case, but I don't know JRun), or
some other such resource limit, and there would be only one instance of
your servlet class, being accessed simultaneously (one thread per
request).
Null pointer exceptions are caused by code that assumes an object
reference is valid, when it's really not. If it's occurring inside the
callPage() method (presumably you're running JSP 0.9x support, right?)
you probably want to address this question to JRun's support. You
should also check further up the stack traceback, though, to see if any
of your own code is involved and might be making the invalid non-null
assumption that doesn't show up until deeper in the call chain.
Craig McClanahan
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html