9月 052017
 

不知不觉中,我的博客的mysql用的内存越来越多了,我的1核1G的主机有点儿内存不太够用了,一个偶尔的操作,mysqld被oom了,重启就报错,大概意思是:

因为我的机器只有1G内存,而且没有swap,mmap想map大于1g的文件,结果失败了;

比较大气的解决办法是: 加内存

比较小气的解决办法是: 加swap

 Posted by at 上午 11:40

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

(required)

(required)

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据