MySQL 8.4 Release Notes
30.4.3.17 The memory_by_thread_by_current_bytes and x$memory_by_thread_by_current_bytes 视图
这些视图将根据线程对内存使用进行汇总。默认情况下,行将按降序的内存使用量排序。
The memory_by_thread_by_current_bytes 和 x$memory_by_thread_by_current_bytes 视图具有以下列:
-
thread_id线程 ID。
-
user线程用户或线程名称。
-
current_count_used当前未释放的线程内存块数量。
-
current_allocated当前未释放的线程内存字节数量。
-
current_avg_alloc当前线程内存块的平均字节数量。
-
current_max_alloc线程的当前最大内存分配字节数量。
-
total_allocated线程的总内存分配字节数量。