さくらVPSのWordpressでサイトを運営しています。
今まで何も問題なかったのですが、
ある日(12/14 今日ですが)データベース接続確立エラーとなり
調べたところ、MySQLサーバーが停止していました。
起動しなおせば、元どおりなのですが、
また数時間後にMySQLが落ちていました。
何が原因で、どのような対策を取れば
改善できるのでしょうか。教えてください。
###ログの一部です
Version: '5.6.37' socket: '/var/lib/mysql/mysql.sock' port: 3306 MySQL Community Server (GPL) 2017-12-14 19:44:56 5440 [Note] Plugin 'FEDERATED' is disabled. 2017-12-14 19:44:56 5440 [Note] InnoDB: Using atomics to ref count buffer pool pages 2017-12-14 19:44:56 5440 [Note] InnoDB: The InnoDB memory heap is disabled 2017-12-14 19:44:56 5440 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins 2017-12-14 19:44:56 5440 [Note] InnoDB: Memory barrier is not used 2017-12-14 19:44:56 5440 [Note] InnoDB: Compressed tables use zlib 1.2.3 2017-12-14 19:44:56 5440 [Note] InnoDB: Using Linux native AIO 2017-12-14 19:44:56 5440 [Note] InnoDB: Using CPU crc32 instructions 2017-12-14 19:44:56 5440 [Note] InnoDB: Initializing buffer pool, size = 128.0M 2017-12-14 19:44:56 5440 [Note] InnoDB: Completed initialization of buffer pool 2017-12-14 19:44:56 5440 [Note] InnoDB: Highest supported file format is Barracuda. 2017-12-14 19:44:56 5440 [Note] InnoDB: The log sequence numbers 0 and 0 in ibdata files do not match the log sequence number 454842473 in the ib_logfiles! 2017-12-14 19:44:56 5440 [Note] InnoDB: Database was not shutdown normally! 2017-12-14 19:44:56 5440 [Note] InnoDB: Starting crash recovery. 2017-12-14 19:44:56 5440 [Note] InnoDB: Reading tablespace information from the .ibd files... 2017-12-14 19:44:56 5440 [Note] InnoDB: Restoring possible half-written data pages 2017-12-14 19:44:56 5440 [Note] InnoDB: from the doublewrite buffer... 2017-12-14 19:44:56 5440 [Note] InnoDB: 128 rollback segment(s) are active. 2017-12-14 19:44:56 5440 [Note] InnoDB: Waiting for purge to start 2017-12-14 19:44:57 5440 [Note] InnoDB: 5.6.37 started; log sequence number 454842473 2017-12-14 19:44:57 5440 [Note] Server hostname (bind-address): '*'; port: 3306 2017-12-14 19:44:57 5440 [Note] IPv6 is available. 2017-12-14 19:44:57 5440 [Note] - '::' resolves to '::'; 2017-12-14 19:44:57 5440 [Note] Server socket created on IP: '::'. 2017-12-14 19:44:57 5440 [Note] Event Scheduler: Loaded 0 events 2017-12-14 19:44:57 5440 [Note] /usr/sbin/mysqld: ready for connections.
###メモリーの使用状況
total used free shared buffers cached Mem: 3961 1987 1973 0 58 185 -/+ buffers/cache: 1743 2217 Swap: 2047 18 2029
###試したこと
service mysqld start
###2日くらい前からCPU使用率が異常に上がっているみたいです
###アクセス数についてです
アクセス数に目立った変化はありませんでした。
MySQLが落ちたのは
【12/14】
・16:00 一度目
・19:00 二度目
でした。
回答1件
あなたの回答
tips
プレビュー