Bug #104367 | Query all the locks in performance.schema.data_locks cause mysqld oom | ||
---|---|---|---|
Submitted: | 20 Jul 2021 13:14 | Modified: | 21 Jul 2021 1:45 |
Reporter: | zkong kong | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | MySQL Server: Performance Schema | Severity: | S3 (Non-critical) |
Version: | 8.0.25 | OS: | Linux |
Assigned to: | CPU Architecture: | Any |
[20 Jul 2021 13:14]
zkong kong
[20 Jul 2021 13:41]
MySQL Verification Team
Hi Mr. kong, Thank you for your bug report. We have just performed a test that you have vaguely described on a machine with 1 Tb of virtual memory. We have not been able to repeat your OOM situation. Hence, why do you think that this is a bug ????/
[20 Jul 2021 13:50]
MySQL Verification Team
The OOM situation is most probably happening on the client side. All you have to do is to use mysql_use_result() instead of mysql_store_result(). If you are using MySQL CLI, that means the following option: --quick That is it ......
[21 Jul 2021 1:45]
zkong kong
Hi: I confirm the query will cause the mysqld process use more 10G byte physical memory, it is not make sense.