You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Uwe Kolsch <uw...@wax.co.uk> on 2002/11/26 18:02:45 UTC

[users@httpd] semget: No space left on device

Hi,

I run Apache 1.3.27 on RedHat 8 in combination with Tomcat. Because of some
configuration changes in httpd.conf (just a new vhost) I had to restart
httpd. It stopped and did not came up again. The only error output I found
was "semget: No space left on device" in the Apache error_log. As it was a
production server I decided to reboot the machine and it came up fine.
However, I'm puzzled about the cause of this error. The server is quite a
high end machine and there is certainly not a shortage of resources. It was
running fine before the restart for weeks and did not show any problems
right before the event, and it runs since fine since it came up again.

The configuration:
Apache/1.3.27 (Unix) mod_jk/1.2.0 PHP/4.2.3 mod_ssl/2.8.11 OpenSSL/0.9.6g
Tomcat 4.06
jdk1.3.1_01 with options -server -Xms100M -Xmx512M
Interbase SuperServer v6.0-1
Dual Proc Intel 2.4 GHz and 2 GB Mem

Did someone come across this and can give me a clue or some direction where
to look for a solution.

Thanks

Uwe Kolsch

Wax New Media Agency
Power Road Studios
Power Road
London
W4 5PY
T) +44 020 8742 1551
F) +44 020 8742 3774

www.wax.co.uk

Internet communications are not secure and therefore Wax New Media Agency
and any associated company does not accept legal responsibility for the
contents of this message. Any opinions stated are solely those of the
author.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] semget: No space left on device

Posted by Gary Turner <kk...@sbcglobal.net>.
On Tue, 26 Nov 2002 17:02:45 -0000, Uwe Kolsch wrote:

>Hi,
>
>I run Apache 1.3.27 on RedHat 8 in combination with Tomcat. Because of some
>configuration changes in httpd.conf (just a new vhost) I had to restart
>httpd. It stopped and did not came up again. The only error output I found
>was "semget: No space left on device" in the Apache error_log. As it was a
>production server I decided to reboot the machine and it came up fine.
>However, I'm puzzled about the cause of this error. The server is quite a
>high end machine and there is certainly not a shortage of resources. It was
>running fine before the restart for weeks and did not show any problems
>right before the event, and it runs since fine since it came up again.

This is *not* the authoritative answer :)

Two possibilities come to mind:
    On restart, httpd may have tried to start too many
[child?]processes.  Often another restart will cure the problem (no idea
why, but a google supports this plan);
    Or, logrotate may have gone crazy and created umpty-zillion *.*.*.gz
files.  This will eat up your inodes.  In my case, IIRC, 64K files were
created in /var/log/.  (This is a strong argument for a separate /var
partition.)  Fortunately, deleting the files restored sanity.  It hasn't
happened again and I have let well enough alone.  I have no clue why it
happened.

--
gt       kk5st@sbcglobal.net
It ain't so much what you don't know that gets you in trouble---
it's what you do know that ain't so.--unk

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] semget: No space left on device

Posted by Jacob Coby <jc...@listingbook.com>.
> I run Apache 1.3.27 on RedHat 8 in combination with Tomcat. Because of
some
> configuration changes in httpd.conf (just a new vhost) I had to restart
> httpd. It stopped and did not came up again. The only error output I found
> was "semget: No space left on device" in the Apache error_log. As it was a
> production server I decided to reboot the machine and it came up fine.
> However, I'm puzzled about the cause of this error. The server is quite a
> high end machine and there is certainly not a shortage of resources. It
was
> running fine before the restart for weeks and did not show any problems
> right before the event, and it runs since fine since it came up again.

one of the error codes returned by semget is ENOSPC (Error No Space)

ENOSPC     A  semaphore set has to be created but the sys­
                  tem limit for the maximum number  of  semaphore
                  sets  (SEMMNI), or the system wide maximum num­
                  ber of semaphores (SEMMNS), would be  exceeded.

Sounds like something is possibly leaking semaphores.  It may have started
after a couple min if whatever was holding them were to free them up.  Maybe
Tomcat or Interbase likes to hold semaphores?

There is an entry in /proc/sys/kernel/sem, but I'm not sure what the data
means.  On my server, I have:

250     32000   32      128

Searching google shows some info about changing them for Oracle.

> The configuration:
> Apache/1.3.27 (Unix) mod_jk/1.2.0 PHP/4.2.3 mod_ssl/2.8.11 OpenSSL/0.9.6g
> Tomcat 4.06
> jdk1.3.1_01 with options -server -Xms100M -Xmx512M
> Interbase SuperServer v6.0-1
> Dual Proc Intel 2.4 GHz and 2 GB Mem



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org