Questions tagged [traffic-measurement]
57 questions
15
votes
4 answers
android statistic 3g traffic for each APP, how?
For statistic network traffic per APP, what I'm using now is Android TrafficStats
That I can get result like following :
Youtube 50.30 MBytes
Facebook 21.39 MBytes
Google Play 103.38 MBytes
(and more...)
As I know, the "Android Trafficstats" just…

RRTW
- 3,160
- 1
- 35
- 54
13
votes
1 answer
Measure Network Data with Python
I'm currently writing a program to shut down a computer when over a period of time (say, half an hour) network traffic is below a certain threshold.
Here's the pseudocode that I've worked will give the correct logic:
BEGIN SUBPROGRAM
loopFlag =…

nchpmn
- 884
- 2
- 8
- 22
13
votes
1 answer
In Android, how to measure the data traffic per interface per application
I want to implement an extention to android.net.TrafficStats to measure the data traffic per APN or per APN per application. the methods prototype looks like:
getInterfaceTxPackets(String interface)
getInterfaceRxPackets(String…

freeman
- 233
- 3
- 8
12
votes
1 answer
How to get the correct number of bytes sent and received in TrafficStats?
My app is trying to count the number of bytes send and received over WiFi/LAN and mobile data connections. To do that, I get the values of TrafficStats counters at one point in time and subtract that from its values the next time I check.
// get…

Matthew Quiros
- 13,385
- 12
- 87
- 132
7
votes
5 answers
How to monitor traffic of ruby on rails website?
I have a ruby on rails application and it would be nice to see how many hits I get per hour. Is there some simple free software to do this or do I have to develop a custom solution? Thanks!

Tony
- 18,776
- 31
- 129
- 193
6
votes
2 answers
Waze API for Android
I want to develop an android application which retrieving data from the Waze Live Map (to supply some input - like from where to where and get the time it would take to drive that route regard to the traffic jams and all other staff..)
On Waze…

Bush
- 2,433
- 5
- 34
- 57
6
votes
0 answers
Google Ads - App download campaign - add in google play store url with UTM parameters
It was my first time to do app download campaign via google ads. I created a Universal app campaign and has no idea how to add in my tracking parameter on my campaign level. I have tried to append the tracking parameters with final url suffix,…

Franny Geng
- 61
- 1
5
votes
1 answer
Is it possible to enable TrafficStats on android emulator?
I'm trying to get the total number transmitted bytes from the device (using getMobileTxBytes().
The number i'm getting from the method call in the emulator is -1 (which means that this method not supported on the device).
Is there any way to make…

rony l
- 5,798
- 5
- 35
- 56
4
votes
1 answer
How to manage Squid based on per user user bandwidth
I want to manage the bandwidth and traffic based on user activities on Squid Server Proxy.
I made some research but couldn't find the solution that I want.
For example, users who have more than 256K traffic should be restricted from server.
Can you…

user2430445
- 45
- 1
- 1
- 4
4
votes
1 answer
How to measure mobile data traffic on Android
I'm developing an application that measure the data traffic recived through mobile data interface (no wifi) from all processes. Additionally this counter have to be related to a date range, i.e. betheen March 1 and April 1.
I had read about…

dinostroza
- 103
- 7
3
votes
2 answers
real time network usage statistics monitoring/capture?
I would appreciate any advice from experience from the community regarding the following challenge I've given myself - i.e. any pointers re best approach / direction here?
Requirements
Allow collection / real-time-monitoring of network usage from a…

Greg
- 34,042
- 79
- 253
- 454
3
votes
0 answers
How can I measure HttpClient's traffic?
I have an application using Apache HttpClient 3.1.
I want to know how much data the application sends and receives and I want to measure this "per thread" (i.e. I want to know how much data a specific thread sent and received).
I currently simply…

Finch
- 76
- 1
- 3
2
votes
3 answers
How to measure how much traffic a server could potentially handle?
Are there any tools that would enable me to load-test my server and tell me how much traffic it could roughly handle?
By traffic I mean how many requests per second it can consistently serve without timing out.
I realize that every server is…

Honza Pokorny
- 3,205
- 5
- 37
- 43
2
votes
1 answer
JavaScript: how to calculate page traffic use?
Is it possible to calculate how much traffic my page uses? I know I can see it in Developer's Tools, but would it possible to get it in plain JavaScript?
I know I could read content-length header for AJAX requests, but this isn't something I'm…

Aleksandr Makov
- 2,820
- 3
- 37
- 62
2
votes
1 answer
How can I make Apache Spark workers to import libraries before running map
I wanted to make a traffic report on country from nginx access.log file. This is my code snippet using Apache Spark on Python:
from pyspark import SparkContext
if __name__ == "__main__":
sc = SparkContext(appName="PythonAccessLogAnalyzer")
…

vutran
- 2,145
- 21
- 34