|
mysql большая нагрузка
|
|||
---|---|---|---|
#18+
сервер 4 ядра 16гб озу la 35 память занята 6гб my.cnf [mysqld] bind-address = 10.1.96.4 key_buffer_size = 200M max_allowed_packet = 300M bulk_insert_buffer_size = 300M #thread_handling = pool-of-threads #thread_pool_size = 8 max_connections = 350 thread_cache_size = 350 query_cache_size = 128M query_cache_limit = 1M #query_cache_min_res_unit = 4K #query_cache_type = 0 join_buffer_size = 1M #read_buffer_size = 512K #read_rnd_buffer_size = 512K wait_timeout = 60 interactive_timeout = 60 innodb_buffer_pool_size = 13G innodb_log_file_size = 1400M innodb_buffer_pool_instances = 13 innodb_flush_log_at_trx_commit = 2 #innodb_flush_method = O_DSYNC table_open_cache = 300000 table_definition_cache = 300000 open_files_limit = 600000 tmp_table_size = 512M max_heap_table_size = 512M log_error = /var/lib/mysql/mysqld.log pid-file = /var/run/mysql/mysql.pid #innodb_force_recovery = 4 performance_schema = ON tmpdir = /dev/shm skip_name_resolve=1 low-priority-updates expire_logs_days = 10 max_binlog_size = 100M slow_query_log_file = /var/log/mariadb-slow.log slow_query_log = 1 long_query_time = 1 #log_slow_verbosity = query_plan #log-queries-not-using-indexes mysqltuner >> MySQLTuner 1.7.19 - 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 10.1.46-MariaDB [OK] Operating on 64-bit architecture -------- Log file Recommendations ------------------------------------------------------------------ [OK] Log file /var/lib/mysql/mysqld.log exists [--] Log file: /var/lib/mysql/mysqld.log(0B) [OK] Log file /var/lib/mysql/mysqld.log is readable. [!!] Log file /var/lib/mysql/mysqld.log is empty [OK] Log file /var/lib/mysql/mysqld.log is smaller than 32 Mb [OK] /var/lib/mysql/mysqld.log doesn't contain any warning. [OK] /var/lib/mysql/mysqld.log doesn't contain any error. [--] 0 start(s) detected in /var/lib/mysql/mysqld.log [--] 0 shutdown(s) detected in /var/lib/mysql/mysqld.log -------- Storage Engine Statistics ----------------------------------------------------------------- [--] Status: +Aria +CSV +InnoDB +MEMORY +MRG_MyISAM +MyISAM +PERFORMANCE_SCHEMA +SEQUENCE [--] Data in MyISAM tables: 236.9M (Tables: 483) [--] Data in InnoDB tables: 7.1G (Tables: 19393) [OK] Total fragmented tables: 0 -------- Analysis Performance Metrics -------------------------------------------------------------- [--] innodb_stats_on_metadata: OFF [OK] No stat updates during querying INFORMATION_SCHEMA. -------- Security Recommendations ------------------------------------------------------------------ [OK] There are no anonymous accounts for any database users [OK] All database users have passwords assigned [!!] User 'mlb13@%' does not specify hostname restrictions. [!!] User 'mlb15@%' does not specify hostname restrictions. [!!] There is no basic password file list! -------- CVE Security Recommendations -------------------------------------------------------------- [--] Skipped due to --cvefile option undefined -------- Performance Metrics ----------------------------------------------------------------------- [--] Up for: 5h 36m 5s (46M q [2K qps], 339K conn, TX: 64G, RX: 8G) [--] Reads / Writes: 98% / 2% [--] Binary logging is disabled [--] Physical Memory : 15.5G [--] Max MySQL memory : 118.2G [--] Other process memory: 0B [--] Total buffers: 14.0G global + 303.7M per thread (350 max threads) [--] P_S Max memory usage: 433M [--] Galera GCache Max memory usage: 0B [!!] Maximum reached memory usage: 28.3G (182.63% of installed RAM) [!!] Maximum possible memory usage: 118.2G (761.85% of installed RAM) [!!] Overall possible memory usage with other process exceeded memory [OK] Slow queries: 0% (41/46M) [OK] Highest usage of available connections: 13% (47/350) [OK] Aborted connections: 2.37% (8053/339674) [!!] Query cache may be disabled by default due to mutex contention. [OK] Query cache efficiency: 44.8% (36M cached / 81M selects) [!!] Query cache prunes per day: 35480964 [OK] Sorts requiring temporary tables: 0% (0 temp sorts / 1M sorts) [!!] Joins performed without indexes: 144766 [OK] Temporary tables created on disk: 25% (264K on disk / 1M total) [OK] Thread cache hit rate: 99% (47 created / 339K connections) [OK] Table cache hit rate: 99% (20K open / 20K opened) [OK] table_definition_cache(300000) is upper than number of tables(20123) [OK] Open file limit used: 0% (1K/600K) [OK] Table locks acquired immediately: 100% (21M immediate / 21M locks) -------- Performance schema ------------------------------------------------------------------------ [--] Memory used by P_S: 433.9M [--] Sys schema is installed. -------- ThreadPool Metrics ------------------------------------------------------------------------ [--] ThreadPool stat is enabled. [--] Thread Pool Size: 4 thread(s). [--] Using default value is good enough for your version (10.1.46-MariaDB) -------- MyISAM Metrics ---------------------------------------------------------------------------- [!!] Key buffer used: 18.6% (39M used / 209M cache) [OK] Key buffer size / total MyISAM indexes: 200.0M/163.6M [!!] Read Key buffer hit rate: 93.3% (150 cached / 10 reads) -------- InnoDB Metrics ---------------------------------------------------------------------------- [--] InnoDB is enabled. [--] InnoDB Thread Concurrency: 0 [OK] InnoDB File per table is activated [OK] InnoDB buffer pool / data size: 13.0G/7.1G [OK] Ratio InnoDB log file size / InnoDB Buffer pool size: 1.4G * 2/13.0G should be equal to 25% [OK] InnoDB buffer pool instances: 13 [--] InnoDB Buffer Pool Chunk Size not used or defined in your version [OK] InnoDB Read buffer efficiency: 99.98% (548227360 hits/ 548356331 total) [!!] InnoDB Write Log efficiency: 114.23% (130871 hits/ 114571 total) [OK] InnoDB log waits: 0.00% (0 waits / 245442 writes) -------- AriaDB Metrics ---------------------------------------------------------------------------- [--] AriaDB is enabled. [OK] Aria pagecache size / total Aria indexes: 128.0M/1B [!!] Aria pagecache hit rate: 89.5% (2M cached / 242K reads) -------- TokuDB Metrics ---------------------------------------------------------------------------- [--] TokuDB is disabled. -------- XtraDB Metrics ---------------------------------------------------------------------------- [--] XtraDB is disabled. -------- Galera Metrics ---------------------------------------------------------------------------- [--] Galera is disabled. -------- Replication Metrics ----------------------------------------------------------------------- [--] Galera Synchronous replication: NO [--] No replication slave(s) for this server. [--] Binlog format: STATEMENT [--] XA support enabled: ON [--] Semi synchronous replication Master: Not Activated [--] Semi synchronous replication Slave: Not Activated [--] This is a standalone server -------- Recommendations --------------------------------------------------------------------------- General recommendations: Restrict Host for 'mlb13'@% to mlb13@SpecificDNSorIp UPDATE mysql.user SET host ='SpecificDNSorIp' WHERE user='mlb13' AND host ='%'; FLUSH PRIVILEGES; Restrict Host for 'mlb15'@% to mlb15@SpecificDNSorIp UPDATE mysql.user SET host ='SpecificDNSorIp' WHERE user='mlb15' AND host ='%'; FLUSH PRIVILEGES; MySQL was started within the last 24 hours - recommendations may be inaccurate Reduce your overall MySQL memory footprint for system stability Dedicate this server to your database for highest performance. Increasing the query_cache size over 128M may reduce performance We will suggest raising the 'join_buffer_size' until JOINs not using indexes are found. See https://dev.mysql.com/doc/internals/en/join-buffer-size.html (specially the conclusions at the bottom of the page). Variables to adjust: *** MySQL's maximum memory usage is dangerously high *** *** Add RAM before increasing MySQL buffer variables *** query_cache_size (=0) query_cache_type (=0) query_cache_size (> 128M) [see warning above] join_buffer_size (> 1.0M, or always use indexes with JOINs) mytop выдает qps 2000, время запросов 0 кеш включал\выключал разницы никакой iotop показывает 99% updatedb -f sysfs но в htop эта команда нагрузку не дает раньше помогало увеличение размера лимита открытых файлов, но с этим порядок что еще проверить? ... |
|||
:
Нравится:
Не нравится:
|
|||
15.09.2020, 11:08 |
|
mysql большая нагрузка
|
|||
---|---|---|---|
#18+
можно уменьшить innodb_buffer_pool_size = 10-11 G ... |
|||
:
Нравится:
Не нравится:
|
|||
15.09.2020, 12:16 |
|
mysql большая нагрузка
|
|||
---|---|---|---|
#18+
это по-моему много, хоть и пишут 25%, хватит 1G innodb_log_file_size = 1400M thread_pool_size сколько по дефолту, может 0 выставить? ... |
|||
:
Нравится:
Не нравится:
|
|||
15.09.2020, 12:31 |
|
mysql большая нагрузка
|
|||
---|---|---|---|
#18+
#thread_pool_size = 8 show VARIABLES like '%thread_pool_size%' = 4 я пробовал с этим играться,нагрузка уменьшалась но увеличивалось время отклика в интернете пишут что должно быть равным кол-ву ядрам ... |
|||
:
Нравится:
Не нравится:
|
|||
15.09.2020, 12:39 |
|
mysql большая нагрузка
|
|||
---|---|---|---|
#18+
установил innodb_buffer_pool_size = 10G innodb_log_file_size = 1G innodb_buffer_pool_instances = 10 особо не помогло la немного уменьшился ... |
|||
:
Нравится:
Не нравится:
|
|||
15.09.2020, 13:04 |
|
mysql большая нагрузка
|
|||
---|---|---|---|
#18+
в какой то момент нагрузка упала до la 3 mytop показывает 1500-2500 qps потом подскочила до la 20 iotop ничего тяжелого не показывает ... |
|||
:
Нравится:
Не нравится:
|
|||
15.09.2020, 13:37 |
|
mysql большая нагрузка
|
|||
---|---|---|---|
#18+
perfomance schema? ... |
|||
:
Нравится:
Не нравится:
|
|||
15.09.2020, 14:10 |
|
mysql большая нагрузка
|
|||
---|---|---|---|
#18+
performance_schema = ON тюнер запускал в первом посте результат ... |
|||
:
Нравится:
Не нравится:
|
|||
15.09.2020, 16:41 |
|
mysql большая нагрузка
|
|||
---|---|---|---|
#18+
автор[!!] Maximum reached memory usage: 28.3G (182.63% of installed RAM) а он точно не свопится? автор[!!] Joins performed without indexes: 144766 [OK] Temporary tables created on disk: 25% (264K on disk / 1M total) вот это бы еще поправить. ... |
|||
:
Нравится:
Не нравится:
|
|||
15.09.2020, 16:47 |
|
mysql большая нагрузка
|
|||
---|---|---|---|
#18+
ScareCrow автор[!!] Maximum reached memory usage: 28.3G (182.63% of installed RAM) а он точно не свопится? автор[!!] Joins performed without indexes: 144766 [OK] Temporary tables created on disk: 25% (264K on disk / 1M total) вот это бы еще поправить. памяти полно свободной исправить джойны без индексов или временные таблицы? ... |
|||
:
Нравится:
Не нравится:
|
|||
15.09.2020, 17:02 |
|
mysql большая нагрузка
|
|||
---|---|---|---|
#18+
zizi_topв интернете пишут что должно быть равным кол-ву ядрамне, это не те потоки. Кратно ядрам - может быть. Лучше пробовать (8,) 16, 32. Может поставить в 0 (авто настройка, система не отдаст больше чем ей надо) ... |
|||
:
Нравится:
Не нравится:
|
|||
15.09.2020, 20:55 |
|
mysql большая нагрузка
|
|||
---|---|---|---|
#18+
ставил thread_pool_size 8 и 16 но не сильно помогло по сравнению с значением 4 ... |
|||
:
Нравится:
Не нравится:
|
|||
15.09.2020, 21:52 |
|
mysql большая нагрузка
|
|||
---|---|---|---|
#18+
так а что не нравится? вывод под спойлер, если можно mytop top а то все эти la, gps - условные показатели ... |
|||
:
Нравится:
Не нравится:
|
|||
16.09.2020, 08:59 |
|
mysql большая нагрузка
|
|||
---|---|---|---|
#18+
top top - 06:48:51 up 12 days, 2:29, 1 user, load average: 33,62, 33,84, 34,84 Tasks: 163 total, 32 running, 131 sleeping, 0 stopped, 0 zombie %Cpu(s): 81,0 us, 19,0 sy, 0,0 ni, 0,0 id, 0,0 wa, 0,0 hi, 0,0 si, 0,0 st KiB Mem : 16266144 total, 672108 free, 6069604 used, 9524432 buff/cache KiB Swap: 0 total, 0 free, 0 used. 9537248 avail Mem PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 22285 mysql 20 0 13,8g 4,6g 12840 S 20,0 29,8 104:41.79 mysqld 32543 guai 20 0 358140 35440 11036 R 20,0 0,2 0:00.14 php-cgi 32544 guai 20 0 358128 35392 11520 R 20,0 0,2 0:00.14 php-cgi 32546 guai 20 0 357732 36032 11124 R 20,0 0,2 0:00.13 php-cgi 32547 guai 20 0 352108 31756 11092 R 20,0 0,2 0:00.11 php-cgi 32551 guai 20 0 349540 28240 11028 R 20,0 0,2 0:00.09 php-cgi 32553 guai 20 0 345900 25300 10988 R 20,0 0,2 0:00.07 php-cgi 32554 guai 20 0 348224 26776 11104 R 20,0 0,2 0:00.08 php-cgi 32562 guai 20 0 236788 17936 10352 R 20,0 0,1 0:00.03 php-cgi 32534 guai 20 0 360760 39712 11532 R 13,3 0,2 0:00.19 php-cgi 32536 guai 20 0 360364 38860 11212 S 13,3 0,2 0:00.17 php-cgi 32537 guai 20 0 360300 37852 11200 R 13,3 0,2 0:00.16 php-cgi 32538 guai 20 0 359716 39004 11092 R 13,3 0,2 0:00.16 php-cgi 32541 guai 20 0 357816 36624 11156 R 13,3 0,2 0:00.14 php-cgi 32542 guai 20 0 358128 35652 11520 R 13,3 0,2 0:00.13 php-cgi 32549 guai 20 0 351588 31296 11092 R 13,3 0,2 0:00.11 php-cgi 32552 guai 20 0 349540 27808 11020 R 13,3 0,2 0:00.08 php-cgi 32555 guai 20 0 344608 24040 10784 R 13,3 0,1 0:00.05 php-cgi 32531 guai 20 0 362680 41972 11468 R 6,7 0,3 0:00.20 php-cgi 32539 guai 20 0 358252 37448 11168 R 6,7 0,2 0:00.15 php-cgi 32540 guai 20 0 358252 37748 11200 R 6,7 0,2 0:00.16 php-cgi 32548 guai 20 0 353572 31728 10984 R 6,7 0,2 0:00.11 php-cgi 32550 guai 20 0 347884 27248 10920 R 6,7 0,2 0:00.08 php-cgi 32556 guai 20 0 342524 20608 10828 R 6,7 0,1 0:00.04 php-cgi 32557 guai 20 0 238836 20472 10768 R 6,7 0,1 0:00.04 php-cgi 32559 guai 20 0 236888 18296 10248 R 6,7 0,1 0:00.02 php-cgi 32561 guai 20 0 233908 14112 9212 R 6,7 0,1 0:00.01 php-cgi 32563 guai 20 0 233908 14112 9212 R 6,7 0,1 0:00.01 php-cgi 1 root 20 0 191012 3600 2148 S 0,0 0,0 1:57.82 systemd 2 root 20 0 0 0 0 S 0,0 0,0 0:00.09 kthreadd 4 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 kworker/0:0H 6 root 20 0 0 0 0 S 0,0 0,0 2:31.26 ksoftirqd/0 7 root rt 0 0 0 0 S 0,0 0,0 0:23.37 migration/0 8 root 20 0 0 0 0 S 0,0 0,0 0:00.00 rcu_bh 9 root 20 0 0 0 0 R 0,0 0,0 33:24.49 rcu_sched 10 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 lru-add-drain 11 root rt 0 0 0 0 S 0,0 0,0 0:03.77 watchdog/0 12 root rt 0 0 0 0 S 0,0 0,0 0:03.67 watchdog/1 13 root rt 0 0 0 0 S 0,0 0,0 0:23.38 migration/1 14 root 20 0 0 0 0 S 0,0 0,0 2:32.29 ksoftirqd/1 16 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 kworker/1:0H 17 root rt 0 0 0 0 S 0,0 0,0 0:03.62 watchdog/2 18 root rt 0 0 0 0 S 0,0 0,0 0:23.47 migration/2 19 root 20 0 0 0 0 S 0,0 0,0 2:29.36 ksoftirqd/2 21 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 kworker/2:0H 22 root rt 0 0 0 0 S 0,0 0,0 0:03.63 watchdog/3 23 root rt 0 0 0 0 S 0,0 0,0 0:23.37 migration/3 24 root 20 0 0 0 0 S 0,0 0,0 2:31.27 ksoftirqd/3 26 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 kworker/3:0H 28 root 20 0 0 0 0 S 0,0 0,0 0:00.00 kdevtmpfs 29 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 netns 30 root 20 0 0 0 0 S 0,0 0,0 0:00.72 khungtaskd 31 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 writeback 32 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 kintegrityd 33 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 bioset 34 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 bioset 35 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 bioset 36 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 kblockd 37 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 md 38 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 edac-poller 39 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 watchdogd 45 root 20 0 0 0 0 S 0,0 0,0 2:20.09 kswapd0 46 root 25 5 0 0 0 S 0,0 0,0 0:00.00 ksmd 47 root 39 19 0 0 0 S 0,0 0,0 0:02.00 khugepaged 48 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 crypto 56 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 kthrotld 58 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 kmpath_rdacd 59 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 kaluad 61 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 kpsmoused 62 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 ipv6_addrconf 75 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 deferwq 111 root 20 0 0 0 0 S 0,0 0,0 0:00.00 kauditd 254 root 0 -20 0 0 0 S 0,0 0,0 0:00.36 ata_sff 257 root 20 0 0 0 0 S 0,0 0,0 0:00.00 scsi_eh_0 258 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 scsi_tmf_0 259 root 20 0 0 0 0 S 0,0 0,0 0:00.00 scsi_eh_1 260 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 scsi_tmf_1 268 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 ttm_swap 272 root 0 -20 0 0 0 S 0,0 0,0 1:37.75 kworker/2:1H 282 root 0 -20 0 0 0 S 0,0 0,0 1:34.36 kworker/1:1H 286 root 0 -20 0 0 0 S 0,0 0,0 1:36.88 kworker/0:1H 293 root 20 0 0 0 0 S 0,0 0,0 2:43.21 jbd2/vda1-8 294 root 0 -20 0 0 0 S 0,0 0,0 0:00.00 ext4-rsv-conver 361 root 0 -20 0 0 0 S 0,0 0,0 1:36.90 kworker/3:1H 374 root 20 0 80192 36220 35888 S 0,0 0,2 0:51.78 systemd-journal 401 root 20 0 44928 1480 932 S 0,0 0,0 0:00.05 systemd-udevd 441 root 20 0 26808 2088 1296 S 0,0 0,0 0:04.16 systemd-logind 443 dbus 20 0 58232 2052 1440 S 0,0 0,0 0:08.14 dbus-daemon 446 root 20 0 0 0 0 S 0,0 0,0 0:00.00 hwrng 447 rpc 20 0 69280 932 388 S 0,0 0,0 0:00.94 rpcbind 450 chrony 20 0 117808 1580 1120 S 0,0 0,0 0:01.10 chronyd 452 polkitd 20 0 612348 11216 2460 S 0,0 0,1 0:02.77 polkitd 456 root 20 0 21688 1144 824 S 0,0 0,0 0:57.89 irqbalance 500 root 20 0 25908 852 648 S 0,0 0,0 0:00.00 atd 503 root 20 0 126416 1584 916 S 0,0 0,0 0:01.30 crond 531 root 20 0 110204 792 664 S 0,0 0,0 0:00.00 agetty 738 root 20 0 102904 2812 756 S 0,0 0,0 0:05.96 dhclient 793 root 20 0 216848 9124 3944 S 0,0 0,1 0:42.61 php-fpm 796 root 20 0 574300 13972 2668 S 0,0 0,1 1:13.62 tuned 798 memcach+ 20 0 344100 1548 1044 S 0,0 0,0 0:24.11 memcached 808 root 20 0 370944 22740 20056 S 0,0 0,1 0:56.00 rsyslogd 810 root 20 0 112924 3776 2752 S 0,0 0,0 0:00.01 sshd 811 root 20 0 203576 2632 1364 S 0,0 0,0 0:00.05 pure-ftpd 815 redis 20 0 216544 9596 2380 S 0,0 0,1 12:28.35 redis-server 854 named 20 0 395216 205992 2488 S 0,0 1,3 0:00.79 named 882 varnish 20 0 31856 5296 1080 S 0,0 0,0 0:53.92 varnishd 1270 root 20 0 120432 2432 1156 S 0,0 0,0 0:05.79 master 1277 varnish 20 0 300716 123820 83020 S 0,0 0,8 4:31.97 cache-main 1278 postfix 20 0 120512 4896 3668 S 0,0 0,0 0:00.00 pickup 1292 postfix 20 0 120652 4724 3392 S 0,0 0,0 0:01.66 qmgr 3833 root 20 0 79100 14236 1656 S 0,0 0,1 0:00.45 nginx 8144 root 20 0 0 0 0 S 0,0 0,0 0:00.00 kworker/2:1 8227 nobody 20 0 2054676 13596 2436 S 0,0 0,1 0:19.22 httpd 10124 root 20 0 16092 1132 800 S 0,0 0,0 0:00.02 dovecot 10129 dovecot 20 0 9752 1120 948 S 0,0 0,0 0:00.00 anvil 10130 root 20 0 9884 1316 960 S 0,0 0,0 0:00.00 log 10135 root 20 0 19356 2596 1180 S 0,0 0,0 0:00.02 config 10353 root 20 0 0 0 0 S 0,0 0,0 0:00.20 kworker/1:2 11654 root 20 0 228376 18812 4244 S 0,0 0,1 3:11.72 php-fpm 12082 root 20 0 0 0 0 S 0,0 0,0 0:00.00 kworker/2:0 12216 root 20 0 0 0 0 S 0,0 0,0 0:00.32 kworker/u8:1 12283 root 20 0 217036 7260 4072 S 0,0 0,0 0:15.30 php-fpm 12891 postfix 20 0 120536 4724 3436 S 0,0 0,0 0:00.31 tlsmgr 14107 root 20 0 0 0 0 S 0,0 0,0 0:00.05 kworker/0:2 14616 root 20 0 53556 2352 232 S 0,0 0,0 0:00.00 cwpsrv 14618 root 20 0 54576 5468 2264 S 0,0 0,0 0:00.34 cwpsrv 14619 root 20 0 54936 5732 2264 S 0,0 0,0 0:00.33 cwpsrv 14813 root 20 0 126500 8060 4116 S 0,0 0,0 0:00.43 httpd 15651 root 20 0 0 0 0 S 0,0 0,0 0:00.28 kworker/0:1 15896 root 20 0 0 0 0 S 0,0 0,0 0:00.00 kworker/u8:2 15903 nobody 20 0 79688 15624 2240 S 0,0 0,1 1:03.53 nginx 15904 nobody 20 0 79688 14372 988 S 0,0 0,1 0:40.42 nginx 15905 nobody 20 0 79688 14372 988 S 0,0 0,1 1:56.58 nginx 15906 nobody 20 0 79688 14360 976 S 0,0 0,1 0:46.92 nginx 15907 nobody 20 0 79104 13116 428 S 0,0 0,1 0:00.02 nginx 15989 nobody 20 0 416276 6136 1304 S 0,0 0,0 0:00.00 httpd 16022 nobody 20 0 2054676 11484 2440 S 0,0 0,1 0:33.00 httpd 16023 nobody 20 0 2054676 12224 2440 S 0,0 0,1 0:41.38 httpd 16111 nobody 20 0 416276 6136 1304 S 0,0 0,0 0:00.00 httpd 16152 nobody 20 0 2054676 11592 2436 S 0,0 0,1 0:53.79 httpd 16210 nobody 20 0 2054676 12128 2440 S 0,0 0,1 1:18.74 httpd 16248 nobody 20 0 2054676 13680 2440 S 0,0 0,1 2:32.08 httpd 19698 root 20 0 182500 2536 1580 S 0,0 0,0 0:00.00 crond 19701 root 20 0 113280 1428 1244 S 0,0 0,0 0:00.00 freshclam-sleep 19708 root 20 0 108052 352 280 S 0,0 0,0 0:00.00 sleep 23066 root 20 0 0 0 0 S 0,0 0,0 0:00.00 kworker/1:3 23949 root 20 0 0 0 0 S 0,0 0,0 0:00.04 kworker/0:0 25297 root 20 0 0 0 0 S 0,0 0,0 0:00.00 kworker/3:0 28286 root 20 0 0 0 0 S 0,0 0,0 0:00.01 kworker/3:2 28307 root 20 0 9748 852 708 S 0,0 0,0 0:00.00 ssl-params 30696 root 20 0 158924 5740 4408 S 0,0 0,0 0:00.02 sshd 30762 root 20 0 116744 3372 1808 S 0,0 0,0 0:00.04 bash 30883 postfix 20 0 120648 5044 3792 S 0,0 0,0 0:00.00 cleanup 30886 postfix 20 0 120728 5704 4196 S 0,0 0,0 0:00.00 proxymap 30892 postfix 20 0 120520 5400 4128 S 0,0 0,0 0:00.00 trivial-rewrite 30900 postfix 20 0 120596 5604 4308 S 0,0 0,0 0:00.00 local 31109 root 20 0 219600 10204 2764 S 0,0 0,1 0:00.29 php-fpm 32091 root 20 0 175076 24904 2148 S 0,0 0,2 0:09.80 lfd - sleeping 32535 guai 20 0 360364 38904 11216 R 0,0 0,2 0:00.17 php-cgi 32558 guai 20 0 236788 18900 10416 R 0,0 0,1 0:00.02 php-cgi 32560 root 20 0 162128 2156 1540 R 0,0 0,0 0:00.00 top 32564 guai 20 0 227592 9728 6912 R 0,0 0,1 0:00.00 php-cgi 32565 nobody 20 0 2054676 9700 0 R 0,0 0,1 0:00.00 httpd mytop MySQL on localhost (10.1.46-MariaDB) up 0+03:36:32 [06:49:16] Queries: 33.2M qps: 2682 Slow: 84.0 Se/In/Up/De(%): 176/00/00/01 Cache Hits: 26.2M Hits/s: 2116.6 Hits now: 0.0 Ratio: 44.9% Ratio now: 0.0% Key Efficiency: 91.7% Bps in/out: 542.6k/ 4.0M Id User Host/IP DB Time Cmd Query or State -- ---- ------- -- ---- --- ---------- 212719 guai_fans localhost guai_fansg 0 Query SELECT UNIX_TIME 212727 guai_fans localhost guai_fansg 0 Query SELECT *FROM `tb 212734 root localhost mysql 0 Query show full proces 212736 mlb15 10.1.96.3 mlb15_milw 0 Query SELECT *FROM `ps 212737 guai_fans localhost guai_fansg 0 Query SELECT product_s 212745 unauthent localhost 0 Connec Reading from net 212748 unauthent localhost 0 Connec Reading from net la показывает что система перегружена сайты открываются с задержкой ... |
|||
:
Нравится:
Не нравится:
|
|||
16.09.2020, 09:52 |
|
mysql большая нагрузка
|
|||
---|---|---|---|
#18+
помоему php сожрал. ... |
|||
:
Нравится:
Не нравится:
|
|||
16.09.2020, 11:15 |
|
mysql большая нагрузка
|
|||
---|---|---|---|
#18+
да пхп тоже неплохо нагружает на серваке нету opcache возможно изза этого? ... |
|||
:
Нравится:
Не нравится:
|
|||
16.09.2020, 13:28 |
|
mysql большая нагрузка
|
|||
---|---|---|---|
#18+
Какой пхп, вы что? Ничего не смущает? автор[--] Physical Memory : 15.5G [--] Max MySQL memory : 118.2G [--] Other process memory: 0B [--] Total buffers: 14.0G global + 303.7M per thread (350 max threads) [--] P_S Max memory usage: 433M [--] Galera GCache Max memory usage: 0B [!!] Maximum reached memory usage: 28.3G (182.63% of installed RAM) [!!] Maximum possible memory usage: 118.2G (761.85% of installed RAM) [!!] Overall possible memory usage with other process exceeded memory Сервак в свопе сидит и диски насилует. ... |
|||
:
Нравится:
Не нравится:
|
|||
16.09.2020, 21:13 |
|
mysql большая нагрузка
|
|||
---|---|---|---|
#18+
Хотя, проглядел выхлоп top, не похоже это на пхп и на мукскуль не похоже. Если это виртуалка, то проблема в io, скорее всего в дисках, но у гипервизора. В случае виртуалки ещё неплохо бы посмотреть steal time в статах cpu. ... |
|||
:
Нравится:
Не нравится:
|
|||
16.09.2020, 21:55 |
|
mysql большая нагрузка
|
|||
---|---|---|---|
#18+
Karbafos не похоже это на пхп Код: sql 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27.
3,5 ядра из 4 имеющихся. ... |
|||
:
Нравится:
Не нравится:
|
|||
16.09.2020, 22:03 |
|
mysql большая нагрузка
|
|||
---|---|---|---|
#18+
zizi_top, пробуем thread_pool_size = 0 и результаты, тяжело разгребать неформатированные логи... ... |
|||
:
Нравится:
Не нравится:
|
|||
16.09.2020, 22:18 |
|
mysql большая нагрузка
|
|||
---|---|---|---|
#18+
%Cpu(s): 50,8 us, 9,8 sy, 0,0 ni, 38,7 id, 0,0 wa, 0,0 hi, 0,5 si, 0,2 st KiB Mem : 16266144 total, 1118504 free, 9201016 used, 5946624 buff/cache память свободная есть тюнер неправильно считает занимаемую память ... |
|||
:
Нравится:
Не нравится:
|
|||
16.09.2020, 22:19 |
|
mysql большая нагрузка
|
|||
---|---|---|---|
#18+
miksoft, да, там долбит какой то процесс, может и дырка zizi_top, la показывает среднюю нагрузку, т.е. ни о чем, для статистики qps тоже, колво запросов. много - значит кто-то долбит ... |
|||
:
Нравится:
Не нравится:
|
|||
16.09.2020, 22:19 |
|
mysql большая нагрузка
|
|||
---|---|---|---|
#18+
Alex_Ustinov zizi_top, пробуем thread_pool_size = 0 и результаты, тяжело разгребать неформатированные логи... установил thread_pool_size = 0 Код: sql 1. 2. 3. 4. 5. 6.
нагрузка не поменялась ... |
|||
:
Нравится:
Не нравится:
|
|||
16.09.2020, 22:32 |
|
|
start [/forum/topic.php?fid=47&msg=39998781&tid=1828380]: |
0ms |
get settings: |
10ms |
get forum list: |
13ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
133ms |
get topic data: |
12ms |
get forum data: |
3ms |
get page messages: |
63ms |
get tp. blocked users: |
2ms |
others: | 14ms |
total: | 258ms |
0 / 0 |