Skip to main content

semaphores in apache webserver

Comments

3 comments

  • cPanelMichael
    Hello :) Lost semaphores are generally caused by Apache experiencing an unclean shutdown. If this continues to be an issue and it prevents Apache from starting, the best thing to do would be to determine why Apache is crashing. The following command should help to clean up the lost semaphores:
    for shmid in `ipcs |grep nobody |awk '{print $2}'`; do ipcrm -s $shmid ; done
    To see your current semaphores settings for memory, use a command such as:
    cat /proc/sys/kernel/sem
    Thank you.
    0
  • SUJ1
    Thank you for the Response. But i tried, cat /proc/sys/kernel/sem we do not have /proc this file system we have the following on our server . What is the location of /sem on this ? df -k Mounted on / /usr /var /tmp /proc /opt /root /glocks /sysmg /opt/ /logs /application /home
    0
  • cPanelMichael
    You can also view the settings with a command such as:
    ipcs -lm
    Thank you.
    0

Please sign in to leave a comment.