日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 >

Apache - No space left on device / Failed to create proxy Mutex

發布時間:2024/1/23 26 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Apache - No space left on device / Failed to create proxy Mutex 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

A Big Thanks to "https://help.directadmin.com/item.php?id=110”

Restarting Apache in one of the Servers failed with "No Space left on the Device" Error and we have enough space in all available partitions.

This is something to deal with Server Kernel semaphores.

On Linux, A semaphore?is a?System V IPC object that is used to control utilization of a particular process. Refer?https://www.tldp.org/LDP/tlk/ipc/ipc.html

Semaphores are a?shareable?resource that take on a non-negative integer value. They are manipulated by the P (wait) and V (signal) functions, which decrement and increment the semaphore, respectively. When a process needs a resource, a “wait” is issued and the semaphore is decremented. When the semaphore contains a value of zero, the resources are not available and the calling process spins or blocks (as appropriate) until resources are available. When a process releases a resource controlled by a semaphore, it increments the semaphore and the waiting processes are notified.”

The system does n't have actual resource available to serve the request,?so either we need to configure the Kernel Semaphores or clear the Old entries to get it back.

kernel.sem = SEMMSL SEMMNS SEMOPM SEMMNI

SEMMSL? ? ? maximum number of semaphores per array
SEMMNS? ? ?maximum semaphores system-wide
SEMOPM? ? ?maximum operations per semop call
SEMMNI? ? ? maximum arrays

[root@r12 ~]# cat /etc/sysctl.conf |grep kernel.sem
kernel.sem = 256 32000 100 142
[root@r12 ~]#

[root@r12 ~]# cat /proc/sys/kernel/sem
256 32000 100 142
[root@r12 ~]#

[root@r12 ~]# ipcs -l | awk ‘FNR>=7 && FNR<=15’

—— Semaphore Limits ——–
max number of arrays = 142
max semaphores per array = 256
max semaphores system wide = 32000
max ops per semop call = 100
semaphore max value = 32767

—— Messages: Limits ——–
[root@r12 ~]#

[root@r12 ~]# ipcs -ls

—— Semaphore Limits ——–
max number of arrays = 142
max semaphores per array = 256
max semaphores system wide = 32000
max ops per semop call = 100
semaphore max value = 32767

To Clear ,? we can execute the following

ipcs | grep apache | awk ‘{print $2}’ > sem.txt
for i in `cat sem.txt`; do { ipcrm -s $i; }; done;

For Automating the removal of apache semaphores with ipcs/ipcrm, Please refer?https://help.directadmin.com/item.php?id=572

?

最終,參考這篇文章,我的解決方案是將/etc/sysctl.conf文件中sem的數值改大,然后執行/sbin/sysctl -p搞定。

總結

以上是生活随笔為你收集整理的Apache - No space left on device / Failed to create proxy Mutex的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。