MySQL 8.4 Release Notes
30.4.3.18 MySQL 30.4.3.18:内存使用视图
这些视图总结了内存使用,按用户分组。默认情况下,行按降序的内存使用排序。
memory_by_user_by_current_bytes 和 x$memory_by_user_by_current_bytes 视图具有以下列:
-
user客户端用户名。对于在 underlying Performance Schema 表中的
USER列为NULL的行,假设为背景线程,并将其报告为background主机名。 -
current_count_used当前未释放的内存块数,为用户。
-
current_allocated当前未释放的字节数,为用户。
-
current_avg_alloc当前每个内存块的字节数,为用户。
-
current_max_alloc用户的当前最大内存分配字节数。
-
total_allocated用户的总内存分配字节数。