tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <>
Subject RE: Search engine friendly URLs
Date Mon, 04 Oct 2004 13:04:37 GMT

You can also do this with one (or more, if you want, depending on the
exact requirements) Filters.  That prevents the need for a separate
servlet and any associated session overhead, so the performance argument
is even more moot.

Yoav Shapira
Millennium Research Informatics

>-----Original Message-----
>From: Steffen Heil []
>Sent: Sunday, October 03, 2004 11:18 AM
>To: 'Tomcat Users List'
>Subject: AW: Search engine friendly URLs
>> If you want to be able to scale your application, you need to be able
>move the static image handling out of tomcat to a separate web server.
>Tomcat to handle both application chores and web serving chores will
>the overall scalability of your system.
>I strongly disagree.
>Tomcat is nearly as fast as apache in serving images.
>So, yes, you can save a little time using apache, BUT remeber that the
>apache slows tomcat down. You need cpu-cycles for apache, for mod_jk
>additionally for tomcat. Those cycles for apache and mod_jk are not
>nessesary, since tomcat can work standalone.
>So the question comes down to decide wether the overhead of handling
>and mod_jk for dynamic content is smaller then the difference of apache
>tomcat in serving images. I guess with current versions of tomcat the
>overhead to apache and mod_jk is even bigger.
>Hence, tomcat alone will be faster.
>(Please also consider, that static content will mostly be taken from
>browsers cache, whereas dynamic content needs to be received from
>That means that the time won by using apache for static content needs
to be
>a magnitude higher than the overhead of mod_jk. That's simply not the
>Tomcat cannot do rewriting, that is correct, but it does not need to:
>I use url such as:
>  /content/pages/test.htm
>where content is mapped to my servlet.
>The parameter is simply the rest of the url.
>You could do:
>  http://localhost/
>and parse the rest of the url to
>  section = books
>  subsection = architecture
>Simply map to your servlet.
>  Steffen

This e-mail, including any attachments, is a confidential business communication, and may
contain information that is confidential, proprietary and/or privileged.  This e-mail is intended
only for the individual(s) to whom it is addressed, and may not be saved, copied, printed,
disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message