Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I currently host one website on a server which many other websites use connect to via an API.

When I use the terminal command 'top' I can see www-data is the main culprit for my server running slow.

How do I identify which website is making the most API requests? Is there a way to see the referrer for www-data?


share|improve this question

If you are not logging requests, you can enable logs for a short period of time. Then analyze the logs. You can either parse them manually or use a log analyzer to find out who is making the most requests.

Using tools like sed/awk/grep, you can easily extract and print quick reports about referrer URLs, accessing IPs and other items.


for tips on how to parse log files to get data.

share|improve this answer

The Status module allows a server administrator to find out how well their server is performing. A HTML page is presented that gives the current server statistics in an easily readable form. If required this page can be made to automatically refresh (given a compatible browser). Another page gives a simple machine-readable list of the current server state.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.