You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Markus Schönhaber <ma...@schoenhaber.de> on 2007/03/05 23:48:16 UTC
APR, sendfile and logging of response size
Hello!
When using Tomcat 6.0.10, Tomcat Native library 1.1.8 and requesting a big
static file from the server, the file's size is neither written to the access
log (it contains a '-' in the response size field) nor added to value the
Server Status page shows as "Bytes sent".
If I add useSendfile="false" to the Connector's configuration the response
size is written to the access log but it still doesn't add to the "Bytes
sent" value.[1]
Using the Base Connector, the response size is logged and added to "Bytes
sent".
Is there a way to use APR and sendfile and still get the Base Connector's
behaviour wrt the response size? If so, which?
Regards
mks
[1] In fact, I've not seen any other value than "0.00 MB" for "Bytes sent"
or "Bytes received" on the Server Status page - regardless whether the
traffic was generated by servlets or static files.
Tomcat 5.5.20 behaves slightly different: with APR and useSendfile="true" it
will not add the traffic generated by static files but it will add the
dynamically created traffic. Using APR but useSendfile="false" it will log
the response size and show it on the Server Status page.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: APR, sendfile and logging of response size
Posted by Markus Schönhaber <ma...@schoenhaber.de>.
Rémy Maucherat wrote:
> On 3/5/07, Markus Schönhaber <ma...@schoenhaber.de> wrote:
> > Is there a way to use APR and sendfile and still get the Base Connector's
> > behaviour wrt the response size? If so, which?
>
> No, it is not possible without hacks that I don't want to add. The
> reponse will be asynchronously (or not, it depends on the load of the
> system and the OS) sent by the connector itself.
Thanks for the info, Rémy.
Regards
mks
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: APR, sendfile and logging of response size
Posted by Rémy Maucherat <re...@gmail.com>.
On 3/5/07, Markus Schönhaber <ma...@schoenhaber.de> wrote:
> Is there a way to use APR and sendfile and still get the Base Connector's
> behaviour wrt the response size? If so, which?
No, it is not possible without hacks that I don't want to add. The
reponse will be asynchronously (or not, it depends on the load of the
system and the OS) sent by the connector itself.
Rémy
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org