tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mikolaj Rydzewski <>
Subject Re: Securing Tomcat Article for Review
Date Wed, 10 Jan 2007 10:50:32 GMT
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()?

How could you expect a few system calls (when apache processes the 
request) be slower than hundreds of calls when JVM processes the request?

Mikolaj Rydzewski <>

View raw message