search

Home  >  Q&A  >  body text

php - How to count the traffic of each website in the Linux server?

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

为情所困为情所困2754 days ago1034

reply all(4)I'll reply

  • 迷茫

    迷茫2017-06-14 10:52:12

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

    reply
    0
  • 習慣沉默

    習慣沉默2017-06-14 10:52:12

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

    reply
    0
  • 给我你的怀抱

    给我你的怀抱2017-06-14 10:52:12

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

    reply
    0
  • 習慣沉默

    習慣沉默2017-06-14 10:52:12

    If you are using apache, you may consider installing apachetop

    reply
    0
  • Cancelreply