Chinaunix首页 | 论坛 | 博客
  • 博客访问: 655291
  • 博文数量: 220
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 1961
  • 用 户 组: 普通用户
  • 注册时间: 2014-11-04 21:54
文章分类

全部博文(220)

文章存档

2018年(1)

2015年(140)

2014年(79)

我的朋友

分类: Mysql/postgreSQL

2015-01-15 21:51:11

这次启动mysql时碰到两个问题,记录下来。

当时为了提升mysql的性能,增加了memlock和large_pages参数,于是产生下面两种现象:

1.MySQL只能以mysql启动,以root用户起动,就会产生segmentation fault.
这个问题是由于memlock参数引起的。需要 在/etc/security/limits.conf文件中增加
* hard memlock 2000000 
* soft memlock 2000000

因为memlock只有以root用户起动时才生效,以mysql启动时不生效,所以会出现以mysql可以正常启动。以root就不行。

2.启动时出现如下告警:
Warning: Failed to allocate 297795584 bytes from HugeTLB memory. errno 22
Warning: Using conventional memory pool
这是由large_pages参数引起,而在OS层面又没有设置largepages。

阅读(955) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~