[MDEV-9096] lot of active connection cause mysql slow ? Created: 2015-11-07 Updated: 2016-01-08 Resolved: 2016-01-07 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Locking |
| Affects Version/s: | 10.0.21 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | sysdljr | Assignee: | Unassigned |
| Resolution: | Incomplete | Votes: | 0 |
| Labels: | need_feedback | ||
| Environment: |
CentOS 6.3 , MariaDB server 10.0.21 |
||
| Attachments: |
|
| Description |
|
hi, All At problem time point, show engine innodb status show: pt-stalk capture files in Attachmens:mysql querstion.zip , please help analyze ,thanks. |
| Comments |
| Comment by Elena Stepanova [ 2015-11-08 ] |
|
Hi, First thing that comes to mind is that you might have too low innodb_thread_concurrency value in your configuration. There is no cnf file in your archive, but from the attached data it appears that it's 64, is it so? I would suggest to increase it, or better still, to set it temporarily to 0 (set global innodb_thread_concurrency=0, to see if it changes the picture, and if it does, later tune it further if necessary. |
| Comment by Daniel Black [ 2015-11-09 ] |
|
your sdb device is at 100% utilization for the time of this sample. vmstat is showing bo is mainly read. Can't tell if this is mysql (look for backups or other IO events), however if it is mysql, I'd suggest more ram/innodb buffer pool and/or validate that your select queries are using indexes correctly. |
| Comment by sysdljr [ 2015-11-09 ] |
|
Thank you very much . Elena Stepanova Daniel Black, current buffer pool status show , Innodb_buffer_pool hit rate very high, not too small server's my.cnf file: |
| Comment by Daniel Black [ 2015-11-09 ] |
|
sysdljr regardless of your innodb_buffer_pool_read hit rate your IO is saturated on sdb and you'll continue to have a problem until the IO capacity of the storage is increases or the volume of block read requests is decreased. |
| Comment by sysdljr [ 2015-11-09 ] |
|
Daniel Black ,thanks you quickly reply. |
| Comment by Elena Stepanova [ 2015-12-07 ] |
|
sysdljr, any news? |
| Comment by Elena Stepanova [ 2016-01-07 ] |
|
If you have any new information on this issue, please comment to re-open the report. |
| Comment by sysdljr [ 2016-01-08 ] |
|
Thanks all. |