@
humiaozuzu 内存大小:512MB
系统名称:Ubuntu 12.04 64位
/var/log/mysql.err以及mysql.log 内容都为空
不过在kern.log里倒是发现了一点问题:
cat /var/log/kern.log | grep mysql:
Aug 5 11:59:46 AY1210311012137b74305 kernel: [6624574.875628] Out of memory: Kill process 9321 (mysqld) score 107 or sacrifice child
Aug 5 11:59:46 AY1210311012137b74305 kernel: [6624574.877330] Killed process 9321 (mysqld) total-vm:887172kB, anon-rss:53508kB, file-rss:0kB
Aug 5 11:59:46 AY1210311012137b74305 kernel: [6624575.008973] init: mysql main process (9321) killed by KILL signal
Aug 5 11:59:46 AY1210311012137b74305 kernel: [6624575.009003] init: mysql main process ended, respawning
Aug 5 11:59:46 AY1210311012137b74305 kernel: [6624575.731638] type=1400 audit(1375675186.838:67): apparmor="STATUS" operation="profile_replace" name="/usr/sbin/mysqld" pid=10834 comm="apparmor_parser"
Aug 5 11:59:47 AY1210311012137b74305 kernel: [6624576.468831] init: mysql main process (10838) terminated with status 1
Aug 5 11:59:47 AY1210311012137b74305 kernel: [6624576.468857] init: mysql main process ended, respawning
Aug 5 11:59:48 AY1210311012137b74305 kernel: [6624577.229334] init: mysql post-start process (10839) terminated with status 1
Aug 5 11:59:48 AY1210311012137b74305 kernel: [6624577.282343] type=1400 audit(1375675188.390:68): apparmor="STATUS" operation="profile_replace" name="/usr/sbin/mysqld" pid=10862 comm="apparmor_parser"
Aug 5 11:59:48 AY1210311012137b74305 kernel: [6624577.358414] init: mysql main process (10866) terminated with status 1
Aug 5 11:59:48 AY1210311012137b74305 kernel: [6624577.358453] init: mysql respawning too fast, stopped
Aug 6 11:23:15 AY1210311012137b74305 kernel: [6708784.129980] type=1400 audit(1375759395.241:69): apparmor="STATUS" operation="profile_replace" name="/usr/sbin/mysqld" pid=19445 comm="apparmor_parser"
"Out of memory: Kill process 9321 (mysqld) score 107 or sacrifice child"
貌似真的是因为内存不足? 必须升级内存?