As far as i know:
(this may be wrong and can be different on your system/configuration - test)

Theoretically Apache will do as many connections as childs are used,
on Apache 2 the default maximum is 150 i think.

I read somewhere that suggested for Tomcat is to use a higher Coyote maxProcessors value than max. Apache childs.

However since the socket reinitialization seems bugged, without a timeout in CoyoteConnector their count goes up high
(counted over 3000 open sockets on a load test with one Tomcat, count seems to go down only on Tomcat restart)


There is also a max_connections setting for JK2 ajp13 worker, although this is propably only useful when you use load balancing:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/configwebcom.html#workers



At 11:25 18.07.2003 +0800, you wrote:
So nothing related to the jk2 connection between Apache and TC can be tuned? How many connections will Apache make? Auto grow?

Joseph Lam

Simon Pabst wrote:

You can tune CoyoteConnector acceptCount and timeout values.
acceptCount=10 should be fine, though you never know (test test test :-)
timeout value (in seconds) shouldn't be set to 0 (infinite) or too high, else your socket count will go up much as time goes by (which not only consumes file descriptors but valuable JVM memory AFAIK),
try reasonable values like 10 mins (600) (20000 is suggested in jk2 doc).
If timeout is too low you could get errors too (server not available), so test test test again.



If you use mod_jk2 load balancing use multithreading Apache (worker mpm)



At 20:25 17.07.2003 +0800, you wrote:


I just got JK2 2.0.2 installed and working with Apache 2.0.47. Since my site will have high traffic and lots of concurrent connections, what parameters should I fine tune (other than the min/maxProcessor in server.xml) ? How does Apache manage its jk2 connections to Tomcat?

Joseph Lam

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to