启动apache的时候 有时候会遇到这样的错误:No space left on device: Couldn’t create rewrite_map(XXXX)

第一眼看以为是磁盘没有空间了,其实不然;

没有空间,不存在的。。。。

细究发现其实是:IPC的资源占用问题,先用”ipcs”命令查一下当前用于已经使用了的信号量集合;apache已经分配了这么多

可以使用如下的指令,删除对应服务的信号量结

sem_list=$(ipcs -s | grep apache | awk '{print $2}')
for i in $sem_list
do
ipcrm -s $i
done 可以设置更改每个用户的semaphore array的最大数量
[root@vmm-web ~]# ipcs -s -l
 
------ Semaphore Limits --------
max number of arrays = 128
max semaphores per array = 250
max semaphores system wide = 32000
max ops per semop call = 32
semaphore max value = 32767
[root@vmm-web ~]# sysctl kernel.sem
kernel.sem = 250 32000 32 128
[root@vmm-web ~]# sysctl kernel.sem="250 256000 32 1024"
[root@vmm-web ~]# sysctl kernel.sem
kernel.sem = 250 256000 32 1024
而其中kernel.sem参数的四个值分别表示:Parameters meaning:
SEMMSL – semaphores per ID
SEMMNS – (SEMMNI*SEMMSL) max semaphores in system
SEMOPM – max operations per semop call
SEMMNI – max semaphore identifiers
关于msgmni解释如下:
The parameter “msgmni” is the number of message queue ids available to the system. Each message queue requires one id. msgget() gives the error ENOSPC if all the ids have been used up.
而ipcs和ipcrm的用途如下:
ipcs – report XSI interprocess communication facilities status
ipcrm – remove an XSI message queue, semaphore set, or shared memory segment identifier

原文出处:https://blog.csdn.net/caianye/article/details/38534461

最新文章

  1. WPF 有用博客地址
  2. HTML中       等6种空白空格的区别
  3. zookeeper选举原理
  4. win7下用python3.3获取cable modem的设备信息
  5. java设计之简单的JAVA计算器
  6. [docker]docker的四种网络方式
  7. nodejs 平台的 webscoket 的实现
  8. MPMoviePlayerController
  9. Mysql数据库连接查询
  10. win10下python2与python3以及pip共存
  11. phpMyAdmin的使用
  12. 数据结构(C++)之Double Linked List实践
  13. day41 mycql 函数
  14. 依赖注入的方式测试ArrayList和LinkedList的效率(对依赖注入的再次理解)
  15. BZOJ3779 : 重组病毒
  16. 深度优先搜索DFS(二)
  17. Nginx安装、配置和使用
  18. glog功能介绍
  19. VLOOKUP函数将一个excel表格的数据匹配到另一个表中
  20. 电视不支持AirPlay镜像怎么办?苹果iPhone手机投屏三种方法

热门文章

  1. K-th Number 【POJ - 2104】【可持久化线段树】
  2. python self和cls的区别
  3. python 字符编码问题总结
  4. [转]云计算:SaaS、PaaS、IaaS、CaaS
  5. 74.Maximal Rectangle(数组中的最大矩阵)
  6. Spring Data Redis实战之提供RedisTemplate
  7. vue 中使用 watch 出现了如下的报错
  8. 全文检索引擎sphinx 与 Elasticsearch 索引速度对比
  9. go语言从例子开始之Example36.互斥锁
  10. selenium原理(以百度搜索为例)