26.4.3.18 memory_by_user_by_current_bytes 和 x $ memory_by_user_by_current_bytes 视图

这些视图总结了按用户分组的内存使用情况。默认情况下,行按使用的内存量降序排序。

memory_by_user_by_current_bytesx$memory_by_user_by_current_bytes视图具有以下列:

  • user

Client 端用户名。基础性能模式 table 中的USER列为NULL的行被假定为用于后台线程,并以background的主机名报告。

  • current_count_used

当前尚未为用户释放的已分配存储块数。

  • current_allocated

当前尚未为用户释放的已分配字节数。

  • current_avg_alloc

用户为每个内存块分配的当前字节数。

  • current_max_alloc

用户最大的单个当前内存分配(以字节为单位)。

  • total_allocated

用户的总内存分配(以字节为单位)。