mysql configurations
Configurations:
# Set buffer pool size to 50-80% of your computer's memory
innodb_buffer_pool_size=256M
innodb_additional_mem_pool_size=20M
#
# Set the log file size to about 25% of the buffer pool size
innodb_log_file_size=64M
innodb_log_buffer_size=8M
#
# Set key_buffer to 5 - 50% of your RAM depending on how much
# you use MyISAM tables, but keep key_buffer_size + InnoDB
# buffer pool size < 80% of your RAM
key_buffer_size=value
If not use MyISAM, use 16M -32M is OK
memory usage
innodb_buffer_pool_size
+ key_buffer_size
+ max_connections*(sort_buffer_size+read_buffer_size+binlog_cache_size)
+ max_connections*2MB
So the max_connections can not configured too high, or it will use up memory cause mysql crash
Total buffers: 22.4G global + 1.5M per thread (2540 max threads) mysql mysqltuner.pl use this to calculate total usage
# Set buffer pool size to 50-80% of your computer's memory
innodb_buffer_pool_size=256M
innodb_additional_mem_pool_size=20M
#
# Set the log file size to about 25% of the buffer pool size
innodb_log_file_size=64M
innodb_log_buffer_size=8M
#
# Set key_buffer to 5 - 50% of your RAM depending on how much
# you use MyISAM tables, but keep key_buffer_size + InnoDB
# buffer pool size < 80% of your RAM
key_buffer_size=value
If not use MyISAM, use 16M -32M is OK
memory usage
innodb_buffer_pool_size
+ key_buffer_size
+ max_connections*(sort_buffer_size+read_buffer_size+binlog_cache_size)
+ max_connections*2MB
So the max_connections can not configured too high, or it will use up memory cause mysql crash
Total buffers: 22.4G global + 1.5M per thread (2540 max threads) mysql mysqltuner.pl use this to calculate total usage
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/545828/viewspace-2101453/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- gogland 設定Run ConfigurationsGo
- 2.2.6 Overview of Common Audit ConfigurationsView
- Entity Framework Code-First(16):Move ConfigurationsFramework
- Oracle Validated Configurations與Preinstall RPMOracle
- 簡化oracle安裝準備利器--Oracle Validated ConfigurationsOracle
- I/O Tuning with Different RAID Configurations (Doc ID 30286.1)AI
- 【Mysql】MySQL管理工具MySQL UtilitiesMySql
- MySQL - 初識MySQLMySql
- 【MySQL】MySQL基礎MySql
- 【MySQL】MySQL 5.7 初探MySql
- mysql 索引( mysql index )MySql索引Index
- 【MySQL】mysql optimize tableMySql
- 「MySQL」 MySQL執行流程MySql
- MySQL入門--mysql命令MySql
- MySQL入門--MySQL安全MySql
- 【Mysql】修改mysql時區MySql
- 【MySQL】MySQL中的鎖MySql
- [mysql]ubuntu安裝mysqlMySqlUbuntu
- MySQL(六):MySQL之MVCCMySqlMVC
- Warning:The /usr/local/mysql/data directory is not owned by the 'mysql' or '_mysql'MySql
- MySQL入門系列:MySQL概述MySql
- mysql + nodejs mysql篇(2)MySqlNodeJS
- 【MySQL(2)| MySQL索引機制】MySql索引
- 重返MySQL之MySQL基礎MySql
- 安裝mysql和mysql workbenchMySql
- 【MySQL】九、MySQL與IO.MySql
- Mysql入門【Mysql約束】MySql
- MYSQL學習(二) --MYSQL框架MySql框架
- 【MYSQL】Mysql常用檢查sqlMySql
- MySQL(二) MySql常用優化MySql優化
- MySql(一) 淺析MySql索引MySql索引
- [Mysql] 5.Mysql 建立表MySql
- MySQL抓包工具:MySQL SnifferMySql
- 【MySQL】淺談MySQL優化MySql優化
- Mysql編碼, Mysql編碼流程, Mysql編碼順序, Mysql編碼原理, Mysql編碼修改依據MySql
- MySQLMySql
- 【Mysql】mysql公開課之-mysql5.7複製特性MySql
- MySQL Study之–Mysql啟動失敗“mysql.host”薦MySql