Перегляд поточних запитів до Apache

LoadModule status_module modules/mod_status.so

SetHandler server-status Order deny,allow Deny з усіх Allow fromxxx.xxx.xxx.xxx

# service httpd restart

Переглянути поточні запити до Apache і ресурси, що використовуються ним, можна за посиланнямhttp://site.ru/server-status, замість site.ru підставте свій домен.

Увага! При використанні системи з front-end та back-end та вказівці в httpd.conf необхідно розмістити статистику запитів, наприклад, на 8081 порту. Для цього в httpd.conf внесемо рядок

# service httpd restart

Приклад виведення поточних запитів до Apache

У дужках подано переклади до параметрів.

Apache Server Status for www.site.ru

Server Version: Apache/2.0.54 (Fedora) Server Built: Oct 17 2005 08:59:28 Current Time: Пн, 23-Mar-2009 13:02:05 MSK Restart Time: Sunday, 22-Mar-2009 12: 54:39 ​​MSK Parent Server Generation: 0 Server uptime: 1 день 7 хвилин 25 seconds Total accesses: 1350366 — Total Traffic: 252.2 MB CPU Usage: u43.52 s15.97 cu.04 cs0 —. 0685% CPU load 15.5 requests/sec — 3044 B/second — 195 B/request 10 requests currently being processed, 6 idle workers

Scoreboard Key: «_ » Waiting for Connection, «S » Starting up, «R » Reading Request, «W » Sending Reply, «K » Keepalive (read), «D » DNS Lookup, «C » Closing connection, «L » Logging, «G » Gracefully finishing, «I » Idle cleanup of worker, «. » Open slot with no current process