暂无图片
弱弱的请教, mysql 5.6.46,如何查看分配mysql实例内存大小?
我来答
分享
上善若水
2021-08-20
弱弱的请教, mysql 5.6.46,如何查看分配mysql实例内存大小?

弱弱的请教, mysql 5.6.46,如何查看分配mysql实例内存大小

我来答
添加附件
收藏
分享
问题补充
2条回答
默认
最新
Murkey

#全局共享内存 9个变量
show variables like ‘innodb_buffer_pool_size’; /* InnoDB 数据和索引缓存(InnoDB Buffer Pool) /
show variables like ‘innodb_additional_mem_pool_size’; /
InnoDB 字典信息缓存(InnoDB Additional Memory Pool)/
show variables like ‘innodb_log_buffer_size’; /
InnoDB 日志缓冲区(InnoDB Log Buffer) /
show variables like ‘binlog_cache_size’; /
二进制日志缓冲区(Binlog Buffer)/
show variables like ‘thread_cache_size’; /
连接线程缓存(Thread Cache)/
show variables like ‘query_cache_size’; /
查询缓存(Query Cache)/
show variables like ‘table_open_cache’; /
表缓存(Table Cache) /
show variables like ‘table_definition_cache’; /
表定义信息缓存(Table definition Cache) /
show variables like ‘key_buffer_size’; /
MyISAM索引缓存(Key Buffer) /
#最大线程数
show variables like ‘max_connections’;
#线程独享内存 6个变量
show variables like ‘thread_stack’; /
线线程栈信息使用内存(thread_stack) /
show variables like ‘sort_buffer_size’; /
排序使用内存(sort_buffer_size) /
show variables like ‘join_buffer_size’; /
Join操作使用内存(join_buffer_size) /
show variables like ‘read_buffer_size’; /
顺序读取数据缓冲区使用内存(read_buffer_size) /
show variables like ‘read_rnd_buffer_size’; /
随机读取数据缓冲区使用内存(read_rnd_buffer_size) /
show variables like ‘tmp_table_size’; /
临时表使用内存(tmp_table_size) ,我实际计算把tmp_table_size放入全局共享内*/
也可以通过系统变量的方式直接获取
select @@key_buffer_size;
select @@max_connections

暂无图片 评论
暂无图片 有用 0
打赏 0
暂无图片
JiekeXu
暂无图片

show variables where variable_name in(

‘innodb_buffer_pool_size’,‘innodb_log_buffer_size’,‘innodb_additional_mem_pool_size’,‘key_buffer_size’,‘query_cache_size’

);

图片.png

暂无图片 评论
暂无图片 有用 0
打赏 0
回答交流
Markdown


请输入正文
提交
问题信息
请登录之后查看
邀请回答
暂无人订阅该标签,敬请期待~~
暂无图片墨值悬赏