On Tue, 13 Aug 2002, Michael E. Locasto wrote:

> Date: Tue, 13 Aug 2002 20:11:01 -0400
> From: Michael E. Locasto <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: Re: apache+tomcat?
>
>
> ----- Original Message -----
> From: "Lee Zhao" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Tuesday, August 13, 2002 7:30 PM
> Subject: apache+tomcat?
>
>
> > Can someone please explain why one needs or wants to use apache in
> addition to tomcat? Can one just use tomcat as plain web server for serving
> HTML pages? Thanks in advance.
> >
>
> The main reason is performance.
>
> Yes, Tomcat can be used standalone as an HTTP server.
>
> However, a compiled Apache instance is faster at serving static content.
> Since Tomcat's "main" job is to be a servlet container, if quick response is
> an issue, it should spend its time being one, rather than serving static
> content.
>

That statement is too simplistic.

> Of course, people's requirements are different, and Tomcat serving both
> static and dynamic content is cool for many different folks depending on
> their needs.
>

In particular, be aware of the difference between "fastest possible" and
"fast enough for my needs".

*Way* too many people go through the pain and agony of configuring a web
connector because they think they have to (or because people on this list
tell them they are nuts not to), when all they are running is an app with
almost no static content, or where the request rate is so low that Tomcat
standalone keeps up just fine.

My rule of thumb -- always try your app (under a representative load) on
Tomcat standalone first.  If its fast enough, then you can be done
configuring things in 15 minutes instead of 15 hours or 15 days.  If you
need the extra performance (or other features) that running behind a web
server provides, that's the time to invest in learning how to set the
connectors up.  But not until.

> Check out the website and the mailing list archives for good bits of
> information relating to this topic, it's a very popular one.
>
> Regards,
> Michael
>

Craig McClanahan



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

Reply via email to