Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Measuring traffic sent received

I'm using WAMP.
I want to measure the bytes sent and received while viewing the project.
How to do so ?

like image 649
Sourav Avatar asked Dec 16 '25 20:12

Sourav


1 Answers

Clientside solution: If you are using firefox, the addon firebug ( https://addons.mozilla.org/de/firefox/addon/firebug/ ) can do this.

Serverside solution: You can specify the following in your apache log format (for your access log):

%...B:          Bytes sent, excluding HTTP headers.
%...b:          Bytes sent, excluding HTTP headers. In CLF format

The "..." can be nothing at all (e.g., "%h %u %r %s %b"), or it can indicate conditions for inclusion of the item (which will cause it to be replaced with "-" if the condition is not met).

See: http://httpd.apache.org/docs/1.3/mod/mod_log_config.html

Addition: You will find something like this in your httpd.conf:

 LogFormat "%h %l %u %t \"%r\" %>s %b" common
 CustomLog logs/access_log common

which is easy to customize.

like image 65
Leif Avatar answered Dec 19 '25 13:12

Leif



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!