Zabbix agent:cannot allocate shared memory for collect
来源:互联网 发布:刷流量软件 编辑:程序博客网 时间:2024/06/05 06:58
在Cent0S5.4下运行zabbix_agent。
其他高版本平台没有问题,只有CentOS5.4有如下错误:
16608:20140813:215959.345 cannot allocate shared memory of size 117184: [28] No space left on device
16608:20140813:215959.345 cannot allocate shared memory for collector
就提示无法申请共享内存,也没有其他提示,去zabbix论坛看到:
https://www.zabbix.com/forum/archive/index.php/t-14445.html
看完我是知道要增大自己的共享内存参数,但要增大多少也不知道,对比其他的被监控机(centos6.4),如下:
kernel.shmmax = 68719476736
kernel.shmall = 4294967296
使用如下命令进行设置
sysctl -w kernel.shmmax=68719476736
发现设置完就变成0了。
所以你要根据自己机器的实际情况设置shmmax以及shmall,这里我没办法告诉你 你应该设置多少,只能分享一个blog:
http://seriousbirder.com/blogs/linux-understanding-shmmax-and-shmall-settings/
把这两个参数搞懂,这个问题应该就搞定了。
最后我的设置如下:
kernel.shmmax = 134217728
kernel.shmall = 67108864
问题搞定,希望对大家有帮助。
0 0
- Zabbix agent:cannot allocate shared memory for collect
- Android cannot allocate memory
- Fix for mount error(12): Cannot allocate memory
- Fatal error: cannot allocate memory for the buffer pool
- 解决MySQL : InnoDB: Cannot allocate memory for the buffer pool
- InnoDB: Cannot allocate memory for the buffer pool
- Mysql cannot allocate memory for the buffer pool 解决方法
- swapoff错误Cannot allocate memory
- mprotect() failed: Cannot allocate memory
- linux java Cannot allocate memory
- error='Cannot allocate memory'
- virtual memory exhausted:cannot allocate memory
- virtual memory exhausted:Cannot allocate memory
- virtual memory exhausted: Cannot allocate memory
- virtual memory exhausted: Cannot allocate memory
- mysql无法启动——cannot allocate the memory for the buffer pool
- mysql启动报错cannot allocate memory for the buffer pool处理
- 【数据库】InnoDB: Fatal error: cannot allocate memory for the buffer pool
- linux C复习:内存管理
- 备注
- cocos2d-x 文件管理分析
- 回溯法搜索总结与常见问题
- LeetCode-Jump Game
- Zabbix agent:cannot allocate shared memory for collect
- kobject_uevent
- Android ActionBar应用实战,高仿微信主界面的设计
- IGeometry接口
- 8.13
- 14年暑假前5日训练总结
- How to check the Gateway address in Windows
- Eclipse输入函数的联想功能
- URAL 1297 后缀数组:求最长回文子串