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 would like to develop a "simple" script which should be automatically detect (every 5 minutes let say) if a server (in this case the same host on which it is running) is overloaded or not.

The server in question hosts a Web server (Apache) and a MySQL server.

I found some interesting resources related to this problem:


It's clear that before stating that a server is overloaded or not I should check several parameters, but how can I combine them? Which are the thresholds for each of these aspects?

In your opinion, what would be the "best" solution?


share|improve this question

closed as not constructive by womble, Iain Apr 6 '12 at 7:38

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.If this question can be reworded to fit the rules in the help center, please edit the question.

What is your end goal in knowing the server is under high load? – WerkkreW Apr 6 '12 at 7:32
Only you can answer these questions based on your workloads and business requirements. – Iain Apr 6 '12 at 7:39

A server is overloaded when it cannot perform it's required functions in a timely manner. What counts as "required functions" and "timely manner" is defined by the person(s) responsible for the machine's operation, in consultation with the stakeholders of the service(s) provided.

share|improve this answer
Yuck for the word stakeholders. I've been hearing it far too often at work recently. Otherwise, agreed. – dmourati Apr 6 '12 at 8:13
Would you rather be a steakholder? – Kyle Smith Apr 6 '12 at 11:23

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