请教:apache运行出错?

请教:apache运行出错?

apache2运行一段时间后,有时不能打开网页,在日志里出现以下错误:

[Copy to clipboard] [ - ]
CODE:
[Tue Mar 13 12:27:28 2007] [error] [client 192.168.1.254] (12)Not enough space: couldn't create child process: 12: viewlog.cgi, referer: http://192.168.1.254/cgi/groupmail.cgi?__mode=edit_mail&sid=df3f731350d67f5f816bd98a26a65a70
[Tue Mar 13 12:27:28 2007] [error] [client 192.168.1.254] (12)Not enough space: couldn't spawn child process: /var/www/cgi/viewlog.cgi, referer: http://192.168.1.254/cgi/groupmail.cgi?__mode=edit_mail&sid=df3f731350d67f5f816bd98a26a65a70

[Tue Mar 13 12:28:49 2007] [warn] (128)Network is unreachable: connect to listener on [::]:80
[Tue Mar 13 12:28:50 2007] [warn] (128)Network is unreachable: connect to listener on [::]:80
[Tue Mar 13 12:28:51 2007] [warn] (128)Network is unreachable: connect to listener on [::]:80
[Tue Mar 13 12:28:52 2007] [warn] (128)Network is unreachable: connect to listener on [::]:80
[Tue Mar 13 12:28:53 2007] [warn] (128)Network is unreachable: connect to listener on [::]:80
[Tue Mar 13 12:28:54 2007] [warn] (128)Network is unreachable: connect to listener on [::]:80
[Tue Mar 13 12:28:55 2007] [warn] (128)Network is unreachable: connect to listener on [::]:80
[Tue Mar 13 12:28:56 2007] [warn] (128)Network is unreachable: connect to listener on [::]:80
[Tue Mar 13 12:28:57 2007] [warn] (128)Network is unreachable: connect to listener on [::]:80
[Tue Mar 13 12:28:58 2007] [warn] (128)Network is unreachable: connect to listener on [::]:80
[Tue Mar 13 12:28:59 2007] [warn] (128)Network is unreachable: connect to listener on [::]:80
[Tue Mar 13 12:29:00 2007] [warn] (128)Network is unreachable: connect to listener on [::]:80
[Tue Mar 13 12:29:01 2007] [warn] (128)Network is unreachable: connect to listener on [::]:80
[Tue Mar 13 12:29:02 2007] [warn] (128)Network is unreachable: connect to listener on [::]:80
[Tue Mar 13 12:29:03 2007] [warn] (128)Network is unreachable: connect to listener on [::]:80
[Tue Mar 13 12:29:04 2007] [warn] (128)Network is unreachable: connect to listener on [::]:80
[Tue Mar 13 12:29:05 2007] [warn] (128)Network is unreachable: connect to listener on [::]:80



[Copy to clipboard] [ - ]
CODE:
# df -k -o i
df: operation not applicable for FSType fd
df: operation not applicable for FSType mntfs
df: operation not applicable for FSType proc
df: operation not applicable for FSType tmpfs
Filesystem             iused   ifree  %iused  Mounted on
/dev/dsk/c0t0d0s0      97085  889987    10%   /
/dev/dsk/c0t0d0s3      29591  957481     3%   /var
/dev/dsk/c0t0d0s7          4  300284     0%   /temp



[Copy to clipboard] [ - ]
CODE:
# df -kv
Filesystem            kbytes    used   avail capacity  Mounted on
/          /dev/dsk/c0t0d0  8068221  3084193  4903346    39%
/proc      /proc                  0        0        0     0%
/etc/mntta mnttab                 0        0        0     0%
/dev/fd    fd                     0        0        0     0%
/var       /dev/dsk/c0t0d0  8068221  1424033  6563506    18%
/var/run   swap                5208        6     5202     1%
/tmp       swap                5230       28     5202     1%
/temp      /dev/dsk/c0t0d0   577091        9   519373     1%

请问如何解决?
Not enough space: couldn't create child process: 12: viewlog.cgi
没有足够的空间创建子进程

是没有内存了吧
top下
vmstat -n 5
free看看!


QUOTE:
原帖由 gogo407 于 2007-3-13 13:09 发表
Not enough space: couldn't create child process: 12: viewlog.cgi
没有足够的空间创建子进程

是没有内存了吧
top下
vmstat -n 5
free看看!

如果不时内存不足
请详细贴下你的os
apache 版本
运行的MPM是prefork,还是 worker
还有你的http.conf修改的具体参数
# vmstat 5
procs     memory            page            disk          faults      cpu
r b w   swap  free  re  mf pi po fr de sr s0 -- -- --   in   sy   cs us sy id
0 0 0  60248 13880   2  19  2  1  0  0  0  1  0  0  0  308  105  164  0  0 99
0 0 0  65424 42376   0   2  0  0  0  0  0  0  0  0  0  302  253  201  0  0 100
0 0 0  65424 42376   0   0  0  0  0  0  0  0  0  0  0  300  251  211  0  0 100
0 0 0  65424 42376   0   0  0  0  0  0  0  0  0  0  0  300  259  205  0  0 100
0 0 0  65232 42192   5  33  0  0  0  0  0  0  0  0  0  303  324  213  0  0 99
0 0 0  64840 41680  12  34  0  3  3  0  0  1  0  0  0  307  344  215  0  0 99
0 0 0  65048 41976  12  50  0  0  0  0  0  7  0  0  0  361  481  223  0  2 98
0 0 0  65128 42088   0   0  0  0  0  0  0  0  0  0  0  300  264  209  0  0 100

# uname -a
SunOS mail 5.8 Generic_117350-45 sun4u sparc SUNW,UltraAX-i2

apache版本为2.0.59

httpd.conf就是默认的配置文件,没有更改

多谢帮忙看看!
# /usr/local/apache2/bin/apachectl -V
Server version: Apache/2.0.59
Server built:   Aug 21 2006 04:24:00
Server's Module Magic Number: 20020903:12
Server loaded:  APR 0.9.12, APR-UTIL 0.9.12
Compiled using: APR 0.9.12, APR-UTIL 0.9.12
Architecture:   32-bit
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/prefork"
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_FCNTL_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D HTTPD_ROOT="/usr/local/apache2"
-D SUEXEC_BIN="/usr/local/apache2/bin/suexec"
-D DEFAULT_PIDLOG="logs/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_LOCKFILE="logs/accept.lock"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"
# prstat -a
   PID USERNAME  SIZE   RSS STATE  PRI NICE      TIME  CPU PROCESS/NLWP
  7824 root     2592K 1496K cpu0    58    0   0:00.00 0.1% prstat/1
   185 root     3464K 2344K sleep   55    0   0:00.00 0.1% nscd/11
   350 root     2656K 1688K sleep   46    0   0:00.00 0.0% mibiisa/12
  6755 root     5608K 2312K run      2   19   0:00.05 0.0% qmonitor.pl/1
   221 root     1768K  992K sleep   30    0   0:00.00 0.0% smcboot/1
   213 root     1096K  656K sleep   59    0   0:00.00 0.0% utmpd/1
   229 root     1152K  608K sleep    0    0   0:00.00 0.0% htt/1
   318 postfix  4872K 1688K sleep   59    0   0:00.00 0.0% qmgr/1
   155 root     1968K  880K sleep   40    0   0:00.00 0.0% lockd/1
   148 root     2472K 1264K sleep   48    0   0:00.00 0.0% inetd/1
   190 root     3312K  672K sleep   53    0   0:00.00 0.0% lpsched/1
   171 root     4568K 2016K sleep   58    0   0:00.00 0.0% syslogd/10
   366 root     1280K  792K sleep    0    0   0:00.00 0.0% mysqld_safe/1
   174 root     2152K 1128K sleep   48    0   0:00.00 0.0% cron/1
   203 root     1472K  608K sleep   32    0   0:00.00 0.0% powerd/3
   159 daemon   3144K 1360K sleep   50    0   0:00.00 0.0% statd/3
   166 root     3208K 1704K sleep   58    0   0:00.00 0.0% in.named/1
   118 root     2280K  792K sleep   58    0   0:00.00 0.0% rpcbind/1
    50 root     2472K  792K sleep   51    0   0:00.00 0.0% syseventd/9
   428 amavis     49M 7784K sleep   50    0   0:00.00 0.0% amavisd/1
   427 amavis     49M 7152K sleep    0    0   0:00.00 0.0% amavisd/1
NPROC USERNAME  SIZE   RSS MEMORY      TIME  CPU
    46 root      202M  111M    45%   0:00.37 0.2%
     5 user      87M   17M   6.8%   0:00.00 0.0%
     1 mysql      48M   11M   4.5%   0:00.01 0.0%
     2 postfix  9680K 3936K   1.6%   0:00.00 0.0%
     1 daemon   3144K 1360K   0.5%   0:00.00 0.0%
    11 amavis    540M  100M    41%   0:00.02 0.0%


Total: 66 processes, 179 lwps, load averages: 0.00, 0.00, 0.01
用free命令查看一下,是否内存没有了