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
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