问题原文
原帖链接 · Raffael · CC BY-SA 3.0
I'm maintaining and planning an EC2 server instance running Apache2 on Ubuntu which receives currently up to about 10000 (very simple) requests per hour. It's just some data coming in by POST and a dummy plain text hyphen is responded with.
The amount of requests will rise gradually with time up to about a million per hour.
How do I (reliably>) detect that the server is brought to its knees and is no longer able to handle the incoming requests?
What I am doing at the moment is simply checking memory and CPU load in htop - and if those aren't bordering full capacity then I assume everything is fine.
已采纳解答
原帖链接 · Ryan Babchishin · CC BY-SA 3.0
I think you're right watching system resources. Load average, IO load, memory, swap, CPU, etc...
You'll probably benefit from some detail on Apache's internal status, like what it's processes are actually doing.
http://www.tecmint.com/monitor-apache-web-server-load-and-page-statistics/
An example of what mod_status can show you from www.apache.org
http://www.apache.org/server-status
This might help collect information over time to look at later as a whole
https://httpd.apache.org/docs/2.4/programs/log_server_status.html
Depending on your setup you'll need to watch independently for performance of backend services that Apache is using like database servers and such.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
