大网数据广告活动
服务器运维问答

How to detect if Apache is (on the verge of) being overwhelmed by requests?

· 52CE 我爱测

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 resp…

问题原文

原帖链接 · 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.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-07-08)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。