1. 程式人生 > >mysql錯誤日誌之cannot allocate the memory for the buffer pool

mysql錯誤日誌之cannot allocate the memory for the buffer pool

今天上午開發人員突然跟我說資料庫掛掉了,結果啟動mysql提示沒有pid檔案,這條資訊好像沒什麼作用。接著檢視mysql錯誤日誌

2017-10-10 11:32:43 32447 [ERROR] InnoDB: Cannot allocate memory for the buffer pool
2017-10-10 11:32:43 32447 [ERROR] Plugin 'InnoDB' init function returned error.
2017-10-10 11:32:43 32447 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2017
-10-10 11:32:44 32447 [ERROR] Unknown/unsupported storage engine: InnoDB 2017-10-10 11:32:44 32447 [ERROR] Aborting

很明顯Cannot allocate memory for the buffer pool,這句話的意思是不能給buffer pool分配記憶體了,free看果然所剩不多了,手動清理快取之後啟動還是失敗,接著看程序什麼樣。果然apache有一堆沒用的程序,kill掉不用的程序,或者像我一樣圖省事就直接優雅重啟apache。再free檢視剩餘的記憶體變多了,再次啟動mysql,成功。

還有一種情況就是你把innodb buffer pool值設定大一點

innodb_buffer_pool_size = 128M

具體情況具體對待

相關推薦

mysql錯誤日誌cannot allocate the memory for the buffer pool

今天上午開發人員突然跟我說資料庫掛掉了,結果啟動mysql提示沒有pid檔案,這條資訊好像沒什麼作用。接著檢視mysql錯誤日誌 2017-10-10 11:32:43 32447 [ERROR] InnoDB: Cannot allocate memor

MySQL無法啟動——cannot allocate the memory for the buffer pool

數據庫2017-08-13 13:40:27 19011 [Note] InnoDB: Initializing buffer pool, size = 128.0MInnoDB: mmap(137363456 bytes) failed; errno 122017-08-13 13:40:27 19011

mysql報錯mmap(137428992 bytes) failed; errno 12,Cannot allocate memory for the buffer pool

not span can journal total 時間 查看 stat tar mysql以`systemctl start mysqld.service`的方式啟動一段時間後發現突然無法啟動,嘗試重新啟動也不能解決問題,排查問題時,先後通過`systemctl sta

centos Cannot allocate memory for the buffer pool

compress instr suse ocean crc ret imp 參數設置 git mysql 無法啟動 ,查看日誌: 17-10-01T15:37:27.401599Z 0 [Warning] TIMESTAMP with implicit DEFAULT v

MySQL錯誤日誌、二進制日誌、慢查詢日誌、事務日誌

文件信息 comm nes 文件中 二進制日誌 expr mysq 文本 分別是 錯誤日誌:Error log 默認情況下錯誤日誌大概記錄以下幾個方面的信息: 1、服務器啟動和關閉過程中的信息(未必是錯誤信息,例如,mysql如何啟動INNODB的表空間文件的、如何初始化

MySQL錯誤日誌

簡介 錯誤日誌包含伺服器操作期間發生的嚴重錯誤的記錄,表損壞,啟動和停止資訊。 如果log-warnings伺服器系統變數為1(預設值),則會在錯誤日誌中記錄關鍵SQL警告。如果其值為0,則禁用SQL警告的日誌記錄。如果其值大於1,則為新連線嘗試記錄為基於語句,中止連線和訪問拒絕錯誤的不

Linux上mysql錯誤處理ERROR 1786 (HY000)

1.錯誤描述 在資料庫中執行語句:CREATE TABLE mis_auto_sagaw_sub_qiyexiaoshougepinzhobak131 SELECT * FROM mis_auto_sagaw_sub_qiyexiaoshougepinzho WHERE m

MySQL錯誤日誌出現大量的 Got an error reading communication packets 報錯

MySQL錯誤日誌出現大量的 Got an error reading communication packets 報錯 將log_warnings引數設為1 mysql> select @@log_warnings; +----------------+ | @@log_warn

設定和查詢mysql錯誤日誌、訪問日誌

日誌型別 mysql有以下幾種日誌: 錯誤日誌: log_err 查詢日誌: log 慢查詢日誌: log_slow-queries 更新日誌: log_update

錯誤日誌觀察者模式

星期一 情景 早晨,專案組長來到小明身邊,“有人反映咱們的專案有Bug” “什麼Bug?” “不知道,你新增一個日誌模組自己看記錄去。” ”...“ 分析 在MVC全域性過濾器中自己新增有異常過濾器。 Global.asax 1 public class MvcApplication : Sys

There is insufficient memory for the Java Runtime Environment to continue. 解決

在Centos  6.4 X64, JDK 1.7 U21下用hadoop 1.2.1 執行 mahout 0.9,處理一個5GB的資料,系統提示There is insufficient memory for the Java Runtime Environment to

安裝mysql報錯:cannot create windows service for mysql.error:0

安裝安裝mysql-5.1.46時報錯,cannot create windows service for mysql.error:0。 錯誤原因: 多數是由於重新安裝mysql或者對mysql升級,使用MySQL Configuration Wizard而產生。 解決方法1

CVPR 2017:See the Forest for the Trees: Joint Spatial and Temporal Recurrent Neural Networks for Video-based Person Re-identification

network 測試 eee 分享 The 因此 進行 最大 變化 [1] Z. Zhou, Y. Huang, W. Wang, L. Wang, T. Tan, Ieee, See the Forest for the Trees: Joint Spatial and

JSP報錯The value for the useBean class attribute *** is invalid.

再次 attribute use 基本 sdn 正常 沒有 class art 環境:IDEA+Tomcat9+JDK1.8 在前期學習時,環境一直能夠“正常”使用,實際上環境並沒有完全搭建成功。 推薦: https://blog.csdn.net/lw_power/art

【Git】It is also possible that a host key has just been changed. The fingerprint for the ECDSA key解決

今天提交程式碼,pull的時候.出現IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack

[VS2017 setup] Fix: We could not refresh the credentials for the account

遇到一個使用者反映VS2017 Community註冊資訊快要到期,但是他無法更新自己的Account資訊,導致無法更新license。試了很多辦法,最後解決的方法可能是: 1.通過工具欄的Help選項,選擇Send Feedback後登陸,曲線救國。 Open Visual Studi

One step closer to complex quantum teleportation: Novel complex quantum entanglement generated in the laboratory for the first t

Similar to bits in conventional computers, QuBits are the smallest unit of information in quantum systems. Big companies like Google and IBM are competing

Why Snapt built the ADC for the DevOps of today

Guest post by Dave Blakey, Co-Founder and CEO of Snapt The goal with Snapt, which I co-founded in 2012 with my fellow South African Dougla

Structuring the Deal for the Public Sector

Dedicated Instances are Amazon EC2 instances that run in a VPC on hardware that's dedicated to a single customer. Your Dedicated Instanc

關於eclipse的The source attachment does not contain the source for the file找不到類的說明

關於eclipse的The source attachment does not contain the source for the file找不到類的說明 在attach source中新增Fo