How to find Bandwidth usage

hi guys!!!

anybody knows how to calculate or find the bandwidth usage for my rails
application? means…i want to know is there any builtin methods
available to find the application bandwidth…
all i need is how to calculate an user’s bandwidth usage between login
and logout actions…

i expect some good replies…

regards,
Neo

Your rails app can’t really track bandwidth, not least of all because
it’s
not generating all the stuff the user sees - there will be images or
other
media that are only linked to by rails. So, there is no built in method
to
do what you want.

You’d could rig up a filter to try to estimate for those other factors,
and
run that filter after all requests and then log its estimate.

Bandwidth is usually tracked by the web server. You might want to make
URL’s
that include the username and then process the server logs to determine
who
is using what.

-Jim