База знаний: Linux Server
Как определить сайты, создающие нагрузку на Plesk Linux
Автор Алексей | HiTex.BY на 30 апреля 2011 21:02
Для определения сайтов с которыми сейчас работают процессы Apache, можно воспользоваться следующей командой:
ls -l /proc/*/cwd | grep /var/www/vhosts | sed -e "s#.*/var/www/vhosts\(.*\)#/var/www/vhosts\1#" | sort

Также рекомендуется активировать /server-status в httpd.con.

# Allow server status reports, with the URL of 

http://servername/server-status
# Change the ".your-domain.com" to match your domain to enable.
#
# ExtendedStatus on
#<Location /server-status>
# SetHandler server-status
# Order deny,allow
# Deny from all
# Allow from .your-domain.com
#</Location>

and it will show what CGI script produces a high load.

Also, you can get more information here:

http://httpd.apache.org/docs-2.0/mod/mod_status.html

You can make it password protected:

ExtendedStatus on
<Location /server-status>
SetHandler server-status
AuthType basic
AuthName "Apache status"
AuthUserFile /etc/httpd/conf/server-status_htpasswd
Require valid-user
</Location>

Then restart apache.

(1437 голос(а))
Эта статья полезна
Эта статья бесполезна

Комментарии (0)