sego2010 wrote:demian wrote:sego2010 wrote:Здравствуйте,
У нас сервер для разработки (VPS)
RAM 2048 МБ
CPU 2000 МГц
HDD 100 ГБ
но память постоянно зашкаливает... пытаемся лечить кроном:
sudo /etc/init.d/nginx restart
sudo /etc/init.d/httpd restart
sudo /etc/init.d/mysqld restart
но это не надолго помогает + в кроне не всегда отрабатывает, можете порекомендовать настройку, чтобы папять не терялась, ведь посещаемость минимальная (мы и клиенты)
логи нужны для определения причины...
скажите, что именно нужно предоставить (какие именно логи)
спасибо
/var/log/
messages
mysqld.log
dmesg
/var/log/httpd - последние
access_log
error_log
suexec.log
/var/log/httpd/domains/ - последние
???.error.log - от наиболее используемого домена
/var/log/nginx - последние
access.log
error.log
у нас сервер разработки(песочница программистов)
Core(TM)2 CPU 6300
8GiB
Currently running supported MySQL version 5.5.34
[--] Status: -Archive -BDB -Federated +InnoDB -ISAM -NDBCluster
[--] Data in MyISAM tables: 5G (Tables: 1014)
[--] Data in InnoDB tables: 1G (Tables: 1063)
[--] Data in PERFORMANCE_SCHEMA tables: 0B (Tables: 17)
[--] Data in MEMORY tables: 0B (Tables: 2)
[--] Up for: 4d 12h 13m 53s (6M q [17.001 qps], 865K conn, TX: 37B, RX: 1B)
[--] Reads / Writes: 44% / 56%
[--] Total buffers: 2.2G global + 19.2M per thread (100 max threads)
[OK] Maximum possible memory usage: 4.0G (52% of installed RAM)
[OK] Slow queries: 0% (70/6M)
[OK] Highest usage of available connections: 16% (16/100)
[OK] Key buffer size / total MyISAM indexes: 1.0G/718.2M
[OK] Key buffer hit rate: 99.9% (157M cached / 155K reads)
[OK] Query cache efficiency: 86.5% (3M cached / 4M selects)
[OK] Query cache prunes per day: 0
[OK] Sorts requiring temporary tables: 0% (142 temp sorts / 197K sorts)
[OK] Temporary tables created on disk: 2% (18K on disk / 882K total)
[OK] Thread cache hit rate: 99% (48 created / 865K connections)
[OK] Table cache hit rate: 88% (4K open / 4K opened)
[OK] Open file limit used: 12% (2K/24K)
[OK] Table locks acquired immediately: 99% (1M immediate / 1M locks)
[!!] InnoDB data size / buffer pool: 1.4G/1.0G