当系统内存不足时,ubuntu 12.04会终止mysql进程:
Out of memory: Kill process 17074 (mysqld) score 146 or sacrifice child
Run Code Online (Sandbox Code Playgroud)
所以这个过程最终被杀死了.这发生在服务器负载的高峰期,主要是因为apache变得疯狂并且吃剩余的可用内存.可能的方法可能是:
你怎么看?
为什么我的网站http://elancemarket.com/一次又一次地出现这个错误?
Error establishing a database connection
SQL ERROR [ mysqli ]
User elancema_user already has more than 'max_user_connections' active connections [1203]
Warning: mysqli::mysqli(): (HY000/1203): User elancema_user already has more than 'max_user_connections' active connections in /home/elancemarket/public_html/ask/qa-include/qa-db.php on line 66
Run Code Online (Sandbox Code Playgroud)
我使用的是非常昂贵的 VPS!