Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

Re: Apache mod_jk memory leak?

Rainer Jung

2007-01-18

Replies:

JNeuhoff wrote:
>> By default apache will use as max number of connections the same value,
>> as the max number of threads, so that each thread can get it's own
>> connection. By default it will shrink the connection pool down to half
>> of the max size. There is a min value you can configure if this doesn't
>> fit your needs.
>
> How do I set this min value? Is it the MinSpareThreads directive?
>
Please study the docs. In the workers.properties description of the
reference guide, you will find the params to configure the connection cache.

>> Yes, the Windows MPM has one observer process and a second one, that
>> handles all the requests. If you are really low on server ressources,
>> you can shrink you connection pool from 250 (equals number of threads
>> you configured) to 200 and set the minimum to something like 10. You
>> should also consider a connect_timeout (e.g. 15000) and a
>> prepost_timeout (e.g. 10000).
>
> Does mod_jk use 2 threads (2 socket connections) for each HTTPSession in
> Tomcat, as seemed to be indicated by the 'netstat -a' listing?

No, it's normal that you find a local connection twice in netstat, once
from the point of view of each end of the connection.

>
> Regards
>
> J.Neuhoff
>

---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.