Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm having a problem where apache2 won't start at all on my VPS, and it outputs this error:

[Mon May 09 07:00:38 2011] [emerg] (28)No space left on device: mod_fcgid: Can't create shared memory for size 13018600 bytes

I know for a fact that I have enough memory (I have 2 gb available plus 1 gb burstable).

Any ideas on what it could be?


If it is any help, the VPS is running on OpenVZ and the guest operating system is Ubuntu 10.04 64bit

share|improve this question

@dgrimbergen is right. Check this for example:

If not, is the sharemempath set in your Apache config (httpd.conf or apache2.conf)?

SharememPath /var/run/fcgid_shm

Make sure this directory exists, is chmod "700" and owned by the same owner as the webserver is running under (www / www-data).

share|improve this answer
I'm trying to add SharememPath /var/run/fcgid_shm. I'll post back with the result. – Sam Bloomberg May 9 '11 at 13:31

Something is using up all shared memory. As root run:

ipcs -m

This will give you a list of all shared memory allocations. The second column (shmid) gives you the id of the allocation.

If you want to remove some allocations, you can use:

ipcrm -m

It would be better to find out why a process is allocation all the memory and take steps against that (or get more memory).

share|improve this answer
Absolutely nothing is appearing with ipcs -m. Any ideas? – Sam Bloomberg May 9 '11 at 13:28

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.