mysql參數之innodb_buffer_pool_size大小設置


運行已久的mysql今天突然服務停止了 查看日志

[FATAL] InnoDB: Over 95 percent of the buffer pool is occupied by lock heaps or the adaptive hash index! Check that your transactions do not set too many row locks. Your buffer pool size is 8 MB. Maybe you should make the buffer pool bigger? We intentionally generate a seg fault to print a stack trace on Linux!For more information, see Help and Support Center at http://www.mysql.com.  

大概的意思書緩沖區太小了只有 8M

使用如下語句查詢參數

show variables like 'innodb_buffer_pool%';
SELECT @@innodb_buffer_pool_size/1024/1024/1024;  換算成G

如下設置  innodb_buffer_pool_size  必須是 innodb_buffer_pool_chunk_size 的倍數

--  set global innodb_buffer_pool_size = 21474836480; 

 如果想持久化設置 必須修改 my.ini文件

  show status like 'Innodb_buffer_pool_resize%'; 查看調整進度

 

https://www.cnblogs.com/linjiqin/p/11430698.html

https://www.cnblogs.com/wanbin/p/9530833.html


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM