25707 function calls (25166 primitive calls) in 0.522 seconds
Ordered by: internal time, call count
ncalls tottime percall cumtime percall filename:lineno(function)
26 0.383 0.015 0.383 0.015 {method 'recv' of '_socket.socket' objects}
4 0.054 0.013 0.054 0.013 {function execute at 0x7f8a41c29500}
1 0.014 0.014 0.014 0.014 {psycopg2._psycopg._connect}
4 0.010 0.002 0.014 0.003 /usr/lib/python2.7/collections.py:305(namedtuple)
26 0.006 0.000 0.006 0.000 {method 'sendall' of '_socket.socket' objects}
504 0.004 0.000 0.011 0.000 {method 'sort' of 'list' objects}
26 0.383 0.015 0.383 0.015 {method 'recv' of '_socket.socket' objects}
1. как мерили?В логах указано время, поставил в коде дополнительно вывод в лог в критичных местах.
насколько в этот момент нагружен сервер?50 -350 http-запросов в сек. Загрузка процессора ~0.25
это один запрос? а если подряд несколько делать, меняться время? а в логах еще что-то есть?Пробовал подряд несколько, такой же результат. В логах больше ничего, что могло бы помочь.
/var/log/syslog
{
size 50M
rotate 7
daily
missingok
notifempty
delaycompress
compress
postrotate
invoke-rc.d rsyslog rotate > /dev/null
endscript
}
/var/log/mail.info
/var/log/mail.warn
/var/log/mail.err
/var/log/mail.log
/var/log/daemon.log
/var/log/kern.log
/var/log/auth.log
/var/log/user.log
/var/log/lpr.log
/var/log/cron.log
/var/log/debug
/var/log/messages
{
rotate 4
weekly
missingok
notifempty
compress
delaycompress
sharedscripts
postrotate
invoke-rc.d rsyslog rotate > /dev/null
endscript
}
invoke-rc.d rsyslog rotate
initctl: invalid command: rotate
Try `initctl --help' for more information.
invoke-rc.d: initscript rsyslog, action "rotate" failed.
From: saas_user@yandex.ru
Return-Path: saas_user@saas.ru
Reply-To: saas_user@yandex.ru
Вот конфиг uwsgi: