mysql服务器内存使用情况总结

活动链接(动态)使用的内存数量如下所示:

 

per_connection_memory =

read_buffer_size //memory for sequential table scans

+read_rnd_buffer_size // memory for buffering reads

+sort_buffer_size // memory ofr in mem sorts

+thread_stack //per connection memory

+join_buffer_size // memory for in mem table joins

 

每台服务器(固定)使用内存的数量如下所示:

 

per_server_memory =

tmp_table_size //memory for all temp tables

+max_heap_table_size // max size of single temp table

+key_buffer_size //memory allocated for index blocks

+innodb_buffer_pool_size // main cache for InnoDB data

+innodb_additional_mem_pool_size // InnoDB record structure cache

+innodb_log_buffer_size // log file write buffer

+query_cache_size // compiled statement cache

 

Mysql可以使用的最大内存定义如下:

max_memory = (per_connection_memory* max _connections) + per_server_memory

 

转载于:https://www.cnblogs.com/martinjinyu/p/4711745.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值