Проверьте потребление ресурсов VPS веб-сайта

Хорошо пойдите он работа, я приближался к нему от чего-то вроде неправильного угла прежде. Вот конфигурация победы:

/etc/postfix/main.cf

relay_domains = $mydestination, student.domain.ac.uk
virtual_alias_maps = hash:/etc/postfix/virtual.map, ldap:/etc/postfix/vstudent.map

/etc/postfix/vstudent.map

# postmap /etc/postfix/vstudent.map
server_host = ldap.domain.ac.uk
server_port = 389
bind = no
search_base = dc=domain,dc=ac,dc=uk
query_filter = (&(|(mail=%s)(mailAlternateAddress=%s))(businessCategory=student)(eduPersonEntitlement=http://entitlement.domain.ac.uk/gmail))
result_filter = %U@student.domain.ac.uk
result_attribute = mail

Я надеюсь, что это помогает другим с той же проблемой перед ними.

Спасибо Mike Dixson

1
задан 27 May 2012 в 18:22
1 ответ

You have a VPS and thus ssh-acces (I assume) to it you can just use top or htop to see which process is using up most of your resources.

In case you don't have ssh-acces to your vps you can make a php page and put the following in it:

$output = null;
exec('/usr/bin/top -b -n1', $output);
var_dump($output);

This will execute the 'top' command on your system 1 time and will print it.


Edit: Saw your comment. You can use:

ps -o '%cpu' $PID

to find the average CPU usage of the process over its life. The hassle is that you have to look up every PID.

0
ответ дан 4 December 2019 в 09:57

Теги

Похожие вопросы