Новости
Документация
Download
Webboard
Поиск
FAQ/ЧаВо
Обратная связь




MySQL.RU - Webboard



Вернуться
Помогите с Mysql (Владимир) 20/02/2016 - 13:13:27



From: Владимир - 20/02/2016 - 13:13:27
Subject:Помогите с Mysql
-----------------
Добрый день, столкнулся с такой проблемой, сервер нормально работает скажем неделю а потом неожиданно начинает дико тормозить, по top никаких сильных нагрузок я не вижу, по iotop вижу большую загрузку диска (от 1 до 20мбит) но что грузит диск непонятно, вижу огромную кучу mysql процессов и пару нгинкс и апачей.

Подозреваю что это мускул грузит диски, помогите пожалуйста с конфигом, памяти 16гб, процессор 8ядерный, ниже прикладываю мусклтюнер

# perl mysqltuner.pl
[OK] Logged in using credentials from debian maintenance account.
>> MySQLTuner 1.6.2 - Major Hayden <major@mhtx.net>
>> Bug reports, feature requests, and downloads at http://mysqltuner.com/
>> Run with '--help' for additional options and output filtering
[--] Skipped version check for MySQLTuner script
[OK] Currently running supported MySQL version 5.5.46-0+deb7u1
[OK] Operating on 64-bit architecture

-------- Storage Engine Statistics -------------------------------------------
[--] Status: +ARCHIVE +BLACKHOLE +CSV -FEDERATED +InnoDB +MRG_MYISAM
[--] Data in MyISAM tables: 8G (Tables: 3084)
[--] Data in InnoDB tables: 29G (Tables: 410)
[!!] Total fragmented tables: 737

-------- Security Recommendations -------------------------------------------
[OK] There are no anonymous accounts for any database users
[OK] All database users have passwords assigned
[!!] User 'anton@%' hasn't specific host restriction.
[!!] User 'vv_00aa@%' hasn't specific host restriction.
[!!] There is no basic password file list!

-------- CVE Security Recommendations -------------------------------------------
[--] Skipped due to --cvefile option undefined

-------- Performance Metrics -------------------------------------------------
[--] Up for: 16m 14s (363K q [373.489 qps], 7K conn, TX: 2B, RX: 45M)
[--] Reads / Writes: 95% / 5%
[--] Binary logging is disabled
[--] Total buffers: 3.4G global + 4.6M per thread (300 max threads)
[OK] Maximum reached memory usage: 3.7G (23.56% of installed RAM)
[OK] Maximum possible memory usage: 4.8G (30.41% of installed RAM)
[OK] Slow queries: 0% (25/363K)
[OK] Highest usage of available connections: 20% (60/300)
[OK] Aborted connections: 0.00% (0/7143)
[OK] Query cache efficiency: 68.3% (224K cached / 329K selects)
[!!] Query cache prunes per day: 3724957
[OK] Sorts requiring temporary tables: 0% (169 temp sorts / 34K sorts)
[!!] Joins performed without indexes: 28
[!!] Temporary tables created on disk: 69% (6K on disk / 10K total)
[OK] Thread cache hit rate: 98% (89 created / 7K connections)
[OK] Table cache hit rate: 99% (2K open / 2K opened)
[OK] Open file limit used: 39% (3K/8K)
[OK] Table locks acquired immediately: 99% (119K immediate / 119K locks)

-------- MyISAM Metrics -----------------------------------------------------
[!!] Key buffer used: 30.4% (334M used / 1B cache)
[OK] Key buffer size / total MyISAM indexes: 1.0G/1.0G
[OK] Read Key buffer hit rate: 100.0% (360M cached / 131K reads)
[OK] Write Key buffer hit rate: 100.0% (50M cached / 5K writes)

-------- InnoDB Metrics -----------------------------------------------------
[--] InnoDB is enabled.
[!!] InnoDB buffer pool / data size: 2.0G/29.6G
[!!] InnoDB buffer pool instances: 1
[!!] InnoDB Used buffer: 30.85% (40434 used/ 131072 total)
[OK] InnoDB Read buffer efficiency: 99.97% (147013160 hits/ 147050824 total)
[!!] InnoDB Write buffer efficiency: 0.00% (0 hits/ 1 total)
[OK] InnoDB log waits: 0.00% (0 waits / 182 writes)

-------- AriaDB Metrics -----------------------------------------------------
[--] AriaDB is disabled.

-------- Replication Metrics -------------------------------------------------
[--] No replication slave(s) for this server.
[--] This is a standalone server..

-------- Recommendations -----------------------------------------------------
General recommendations:
Run OPTIMIZE TABLE to defragment tables for better performance
Restrict Host for user@% to user@SpecificDNSorIp
MySQL started within last 24 hours - recommendations may be inaccurate
Enable the slow query log to troubleshoot bad queries
Increasing the query_cache size over 128M may reduce performance
Adjust your join queries to always utilize indexes
Temporary table size is already large - reduce result set size
Reduce your SELECT DISTINCT queries without LIMIT clauses
Variables to adjust:
query_cache_size (> 128M) [see warning above]
join_buffer_size (> 2.0M, or always use indexes with joins)
innodb_buffer_pool_size (>= 29G) if possible.
innodb_buffer_pool_instances(=2)



[Это сообщение - спам!]

Последние сообщения из форума

Уважаемые посетители форума MySQL.RU!
Убедительная просьба, прежде чем задавать свой вопрос в этом форуме, обратите внимание на разделы:
- ответы на наиболее часто задаваемые вопросы - FAQ
- раздел документация
- раздел поиск по сообщениям форума и документации
Также, старайтесь наиболее подробно указывать свою ситуацию (версию операционной системы, версию MySQL, версию программного обеспечения, по которому возникает вопрос, текст возникающих ошибок, и др.)
Помните, чем конкретнее Вы опишете ситуацию, тем больше шансов получить реальную помощь.
 Имя:
 E-mail:
 Тема:
 Текст:
Код подтверждения отправки: Code
43492



РЕКЛАМА НА САЙТЕ
  Создание сайтов | |