V
V
Vladislav2015-06-02 09:20:10
JavaScript
Vladislav, 2015-06-02 09:20:10

How it is possible to count up traffic for request (request)?

Me interests to consider all traffic of the server for each request (request). I was able to calculate the sizes of the given static files, but I can't calculate the headers + JSON + HTML in any way. Maybe someone faced a similar problem? I use Express.js as a framework. nodejs -v=0.10.25

Answer the question

In order to leave comments, you need to log in

3 answer(s)
T
Timur Shemsedinov, 2015-06-02
@MarcusAurelius

sudo apt-get install nethogs
or
yum install nethogs

V
Vladislav, 2015-06-02
@externuz

You probably didn't understand the problem. You need to calculate using Node.js. Traffic is counted for users (sessions) of the system in order to bill them later.

Y
Yustas Alexu, 2015-06-02
@Yuxus

Perhaps there is an answer to your question stackoverflow.com/questions/14163558/measure-node-...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question