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…


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

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

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


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs