简体   繁体   English

MySQL内存使用情况(InnoDB,Win)

[英]MySQL memory usage (InnoDB, Win)

I have MySQL 5.6 (InnoDB) installed on Win 2008 server with 1Gb. 我在具有1Gb的Win 2008服务器上安装了MySQL 5.6(InnoDB)。 mysqld uses 415Mb memory. mysqld使用415Mb内存。 How to reduce memory usage? 如何减少内存使用量? I read that it is possible to do by configuring my.ini: key_buffer_size , innodb_buffer_pool_size , etc. Please, tell me the correct settings to minimize memory usage. 我看,这是有可能通过配置的my.ini做: key_buffer_sizeinnodb_buffer_pool_size等,请告诉我正确的设置,以尽量减少内存使用情况。

You can check Configuring MySQL to use minimal memory : 您可以选中“ 配置MySQL以使用最少的内存”

在此处输入图片说明

# /etc/my.cnf:
innodb_buffer_pool_size=5M
innodb_log_buffer_size=256K
query_cache_size=0
max_connections=10
key_buffer_size=8
thread_cache_size=0
host_cache_size=0
innodb_ft_cache_size=1600000
innodb_ft_total_cache_size=32000000

# per thread or per operation settings
thread_stack=131072
sort_buffer_size=32K
read_buffer_size=8200
read_rnd_buffer_size=8200
max_heap_table_size=16K
tmp_table_size=1K
bulk_insert_buffer_size=0
join_buffer_size=128
net_buffer_length=1K
innodb_sort_buffer_size=64K

#settings that relate to the binary log (if enabled)
binlog_cache_size=4K
binlog_stmt_cache_size=4K

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM