You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Shields, Dorwin T." <DS...@Paymentech.com> on 2000/04/07 14:45:11 UTC

Pooling is slower?

Hi,
  I know that I'm using a beta release, but
after turning on connection pooling (by changing 
the ajp12 connector to org.apache.tomcat.service.PoolTcpConnector)
I'm now getting much slower performance.  I had expected a
speedup due to a reduced number of thread creation.  I'm trying
to tweak my installation out for speed.  Any comments?

Thanks,

Dorwin


Re: Minimalistic Users Guide

Posted by Gal Shachor <sh...@il.ibm.com>.
Alexey,

> 
> Hi!
> 
> 1. A Minimalistic Apache-Tomcat Configuration
> # (4)
> ApJServMount /examples /root
> # Full URL mount
> # ApJServMount /examples ajpv12://hostname:port/root
> </IfModule>
> 
> It doen't work, because REQUEST_URI needs to be build like:
> /context_name/uri_map/servlet_name | name.jsp
> 
Look into the section "Making Apache Serve your Context's Static Files"
step 4 is similar to what you need.

It seems that 
<LocationMatch /*.jsp>
     SetHandler jserv-servlet
</LocationMatch>

Is what you need.

	Gal Shachor

Minimalistic Users Guide

Posted by "Alexey V. Meledin" <av...@webclub.ru>.
Hi!

1. A Minimalistic Apache-Tomcat Configuration
# (4)
ApJServMount /examples /root
# Full URL mount
# ApJServMount /examples ajpv12://hostname:port/root
</IfModule>

It doen't work, because REQUEST_URI needs to be build like:
/context_name/uri_map/servlet_name | name.jsp

In this case only "ApJServMount /root /root" will work.

If it's right - then correct the Guide, please.
            



Alexey V. Meledin <av...@webclub.ru>
> InterForge Developers Group,  St-Petersburg, Russia
New: http://www.crossroad.ru; http://www.garoway.com
> > > > > > "InterForge to Forge Ahead" > > > > > > >



Re: Pooling is slower?

Posted by Gal Shachor <sh...@il.ibm.com>.

Dorwin,

> 
> Hi,
>   I know that I'm using a beta release, but
> after turning on connection pooling (by changing
> the ajp12 connector to org.apache.tomcat.service.PoolTcpConnector)
> I'm now getting much slower performance.  I had expected a
> speedup due to a reduced number of thread creation.  I'm trying
> to tweak my installation out for speed.  Any comments?
> 

Check that your pool size is big enough... The pool limits the number of 
threads that Tomcat can open and for small&simple servlets such as 
HelloWorldServlet Tomcat can serve many concurrent requests. For
example,
if you load Tomcat with 100 clients all of the asking for
HelloWorldServlet
you should configure the pool with 100 threads (the default will not be
good
enough)

	Gal Shachor