-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 10/01/2007, at 11:50 AM, Mikolaj Rydzewski wrote:

Leon Rosenberg wrote:
Sure, I could write my own filters and pass the static content through
them first, but that'd slow down the whole app (tested).

Could you explain this a little more? How can it be that if you write
out something from memory it's slower than ask the filesystem which
could eventually have it in cache and be comparable fast in _best_
case?
Ever heard about sendfile()?
http://builder.com.com/5100-6372-1044112.html
http://www.freebsd.org/cgi/man.cgi?query=sendfile&sektion=2


sendfile is only interesting if you are delivering static content.

If 90% of your content is dynamic/ being created by tomcat you will end
up with a significant performance decrease if you stream every request
through Apache.

What I ended up doing on a customer site to separate images from
content is using wwww.domain.com from dynamic content and image.domain.com
for static content.

Cheers

Andrew
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFFpRw2W126qUNSzvURAumeAJ9hru9xSbfeM4MttBRaSIuTwmo0TgCgjMg2
hakZka0QpvLjaVv3JAEKHQc=
=MxXj
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to