php - How to count the traffic of each website in the Linux server?
为情所困
为情所困 2017-06-14 10:50:12
0
4
1000

There is an Alibaba Cloud ecs with many websites deployed in it. Recently, the server has been particularly stuck. It is found that the number of visits is relatively large and the bandwidth is full. How can I count the traffic statistics of each website in the server and find out which website is used? It is best to count which page has the largest traffic.

Server: linux centos apache2 php

为情所困
为情所困

reply all(4)
迷茫

Use if top when the network card is full to see which process it is

習慣沉默

If you want accurate statistics, it is best to analyze the access.log of apache2

给我你的怀抱

Install nethogs to monitor the network traffic of each application, which should meet your needs. In addition, other plug-ins are summarized

習慣沉默

If you are using apache, you may consider installing apachetop

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template