I know that I have seen a method out there in PHP that when called will give me the current CPU status, but I cannot remember it, and google searches are not coming up with anything for me.
Basically, I have a chat program, and I need to make sure that it doesn't wreak havoc on the server. So I would like to, when a message is posted (as that is the only time that PHP is used, otherwise just straight .txt file), check to see what the status of the server is. That way I can regulate how often ajax requests are sent out by the client, depending on the health of the server.