Java Mailing List Archive

http://www.junlu.com/

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

Re: production settings for Tomcat

Tim Funk

2004-01-29

Replies:

Oddly enough, I usually ignore all those settings until I run into a problem.
(With the exception of maxThreads since I run apache in from of tomcat.)

Since 1.4 - I think the -server option has been ok to use. (YMMV)

As for memory settings - you should at least pick a default -Xmx(...) so you
have a base to start from when doing your tweaks than guessing what the
defaults are.

My opinion on options are that each option was added because someone had a
problem. Ignore them until you have that problem. (Benchmarking notes those
problems quickly instead of a 'wait and see' approach when the box is sitting
in production)

-Tim

Pete Stokes wrote:

> Hi.
>
> I've had differing comments about certain setting for Tomcat in
> production, namely:
>
> server.xml,
> (under default connector port 8080),
> how can I guestimate good settings for the maxThreads,
> min/maxSpareThreads looking at a reasonable size app but thinking about
> the RAM etc on the box so that the box gives it all but doesn't give too
> much!
>
> and for JVM options,
> -server
> -Xss (thread stack size)
>
> Any comments would be useful.
>
> Thanks,
> Pete.
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



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