mysql Fatal error: cannot allocate memory for the buffer pool

前端 未结 3 913
自闭症患者
自闭症患者 2020-12-01 00:36

I have this error log from MySQL, any idea? Website works for some time and then I get MySQL shutdown completely after a couple of hours.

140919 10:48:27 [Wa         


        
3条回答
  •  自闭症患者
    2020-12-01 01:26

    I found this answer adds to the discussion: https://www.digitalocean.com/community/questions/mysql-server-keeps-stopping-unexpectedly?answer=26021

    In short, on top of setting innodb_buffer_pool_size to something reasonable like 64M, you also may need to modify /etc/apache2/mods-enabled/mpm_prefork.conf to reduce the number of connections started by apache;

    
        StartServers     3
        MinSpareServers  3
        MaxSpareServers  5
        MaxRequestWorkers 25
        MaxConnectionsPerChild   1024
    
    

提交回复
热议问题