首页 > 数据库技术 > 详细

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

时间:2015-08-07 21:42:33      阅读:225      评论:0      收藏:0      [点我收藏+]

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

 

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

 

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

原文:http://www.cnblogs.com/martinjinyu/p/4711745.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!