We've a web server used for heavy uploads/downloads (may take minutes).
For doing maintenance disruption, we'd like to know if downloads/uploads are being processed at the current time.
The things we know are :
tail -f /var/log/apache/access.log
but this one shows only information when the transaction is donenetstat -ntaupe | grep 443 | grep ESTABLISHED
but here we also have lines for every active session (the web service that is hosted offers a refresh feature that keeps a request open to the server up to the moment something interesting has changed).
How to know which open connexion has a bandwidth traffic?
Discovered
iftop
thanks to https://serverfault.com/a/248285/54845With a basic setup in ~/.iftoprc :
we can now see uploading / downloading traffic over https (port 443) in real time with the following command :
More info can be read here : http://sickbits.net/iftop-finding-traffic-hogs/