Apache Problem revisited
Alexander Reelsen
ar at rhwd.net
Mon Jan 31 23:22:39 CET 2000
Tach
So. Zurueck zum apache problem (nen strace hatte ich nicht mehr
rumfliegen), daher ein Rest an Daten
Fehlermeldung im error log beim start ist:
[Thu Jan 27 21:42:37 2000] [emerg] (28)No space left on device: could not
call shmget
Ein strace meldete mir: shmget(...) = ENOSPC
<manpage>
ENOSPC is returned if all possible shared memory id's
have been taken (SHMMNI) or if allocating a
segment of the requested size would cause the
system to exceed the system-wide limit on
shared memory (SHMALL).
</manpage>
Die Frage ist jetzt, warum der shmget call nich ging? In /proc/sys/kernel/
habe ich zwei shm klamotten gefunden:
root at joker:/proc/sys/kernel# cat shmall
4194304
root at joker:/proc/sys/kernel# cat shmmax
33554432
root at joker:/proc/sys/kernel#
root at xXxXxXxX~# apache -V
Server version: Apache/1.3.3 (Unix) Debian/GNU
Server built: Feb 13 1999 17:24:50
Server's Module Magic Number: 19980917:0
Server compiled with....
-D HAVE_MMAP
-D HAVE_SHMGET
-D USE_SHMGET_SCOREBOARD
-D USE_MMAP_FILES
-D USE_FLOCK_SERIALIZED_ACCEPT
-D HTTPD_ROOT="/etc/apache"
-D SUEXEC_BIN="/usr/lib/apache/suexec"
-D SHARED_CORE_DIR="/usr/lib/apache/1.3"
-D DEFAULT_PIDLOG="/var/run/apache.pid"
-D DEFAULT_SCOREBOARD="/var/run/apache.scoreboard"
-D DEFAULT_LOCKFILE="/var/run/apache.lock"
-D DEFAULT_XFERLOG="/var/log/apache/access.log"
-D DEFAULT_ERRORLOG="/var/log/apache/error.log"
-D TYPES_CONFIG_FILE="/etc/mime.types"
-D SERVER_CONFIG_FILE="httpd.conf"
-D ACCESS_CONFIG_FILE="access.conf"
-D RESOURCE_CONFIG_FILE="srm.conf"
Die weitere Frage ist dann natuerlich, wer die ID's geklaut hat.
Den Apache habe ich gekillt (incl parent latuernich). Auf dem Ding laufen
einige services, aber nur standard und nicht etwas, was gross SHM id's
klaut (hmm, mysql vielleicht?). Allerdings hat shmmax eine beachtliche
Anzahl von id's (IMHO).
Das einzige was mich momentan interessiert ist, wo/warum der unterschied
zwischen vor und nach dem booten ist, und was ihn ausgeloest hat...
MfG/Regards, Alexander
--
Alexander Reelsen http://joker.rhwd.owl.de
"Bugs ? Features !", -- rrdtool(1), Section BUGS
More information about the Linux
mailing list