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 > > How could you expect a few system calls (when apache processes the > request) be slower than hundreds of calls when JVM processes the request?
Very few people will propably expect that. OTOH there is no need to let the JVM do all the work. As mentioned before, there's an interface to APR. Look for the "useSendfile" attribute of the APR Connector: http://tomcat.apache.org/tomcat-5.5-doc/apr.html#HTTP Regards mks --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]