简体   繁体   English

mariadb进程列表中的InnoDB清除工作者

[英]InnoDB purge worker in mariadb processlist

I just installed mariadb-server-10.3.10 in ubuntu16.04 我刚刚在ubuntu16.04中安装了mariadb-server-10.3.10

When I do log in, and check processlist I found some connection with user "system user" and with command "Daemon". 登录并检查进程列表后,发现与用户“系统用户”和命令“守护程序”存在某种连接。

+----+-------------+-----------+--------------+---------+------+--------------------------+------------------+----------+
| Id | User        | Host      | db           | Command | Time | State                    | Info             | Progress |
+----+-------------+-----------+--------------+---------+------+--------------------------+------------------+----------+
|  1 | system user |           | NULL         | Daemon  | NULL | InnoDB purge coordinator | NULL             |    0.000 |
|  2 | system user |           | NULL         | Daemon  | NULL | InnoDB purge worker      | NULL             |    0.000 |
|  3 | system user |           | NULL         | Daemon  | NULL | InnoDB purge worker      | NULL             |    0.000 |
|  4 | system user |           | NULL         | Daemon  | NULL | InnoDB purge worker      | NULL             |    0.000 |
|  5 | system user |           | NULL         | Daemon  | NULL | InnoDB shutdown handler  | NULL             |    0.000 |
| 45 | lalit       | localhost | NULL         | Query   |    0 | Init                     | show processlist |    0.000 |
+----+-------------+-----------+--------------+---------+------+--------------------------+------------------+----------+

And my query also taking much time, query executing in MySQL within 2 minutes it's taking around 10 minutes in MariaDB. 而且我的查询也花费很多时间,查询在MySQL中执行2分钟,而在MariaDB中则需要10分钟左右。

I am not understanding what wrong with MariaDB. 我不了解MariaDB有什么问题。

Please can explain what is those worker doing in the server? 请解释一下那些工人在服务器上做什么?

Innodb Purge workers do innodb purge, just a guess:) They likely do not do much if you did not insert/delete/update into innodb tables, but do something if you did. Innodb Purge工作者会执行innodb purge,只是一个猜测:)如果您没有在innodb表中插入/删除/更新,他们可能不会做很多事情,但是如果您这样做,他们会做一些事情。

Your actual problem is the slow query, not the system user. 您的实际问题是查询缓慢,而不是系统用户。 There are other tools that handle that, EXPLAIN being the first one. 还有其他工具可以解决这个问题,EXPLAIN是第一个。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM