[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] "Unable to allocate" problem on raq4



** http://www.diygear.com THE Online DIY Toolstore For DIY & Business
** Infolink Electronic Systems Ltd. http://www.infolinkelectronics.co.uk
** Professional Web Design & Cobalt Hosting Solutions
** Sun Cobalt iForce Reseller - Canon Silver Reseller
** Contact: Sales@xxxxxxxxxxxxxxxxxxxxxxxxx
** Tel / Fax 0121 458 4894 (office) 0121 441 3558 (home)
 

> Hi, this is my first message to the list so i am trying to be as
> specific as I can. 
> 
> My RAQ4 is hanging every 7 days, more or less... When it hangs i can
> ping but i cannot get http, ftp, ssh etc.  Rebooting solves the problem
> every time, but i am worried because i think it is a memory leak or
> something similar. Looking the logs the only error i see is in the error
> log of apache:
> 
> FATAL:  erealloc():  Unable to allocate 15360 bytes
> FATAL:  erealloc():  Unable to allocate 245760 bytes
> [Thu Jan  8 04:20:54 2004] [error] (32)Broken pipe: accept: (client
> socket)
> [Thu Jan  8 04:20:54 2004] [error] (32)Broken pipe: accept: (client
> socket)
> FATAL:  emalloc():  Unable to allocate 48 bytes
> Ouch!  malloc failed in malloc_block()
> FATAL:  erealloc():  Unable to allocate 15360 bytes
> 
> 
> Well, i have a lot of lines about "unable to allocate" when the box
> hungs. My box has 128MB RAM, i understand it should be enough for
> serving 30000pages/day, the most are php scripts. 
> 
> I have:
> php 4.0.6
> mysql  3.23.54 for pc-linux on i586
> 
> apache 
> --------------
> Server version: Apache/1.3.20 Sun Cobalt (Unix)
> Server built:   Apr  4 2003 16:03:06
> Server's Module Magic Number: 19990320:10
> Server compiled with....
>  -D EAPI
>  -D HAVE_MMAP
>  -D HAVE_SHMGET
>  -D USE_SHMGET_SCOREBOARD
>  -D USE_MMAP_FILES
>  -D USE_SYSVSEM_SERIALIZED_ACCEPT
>  -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
>  -D HTTPD_ROOT="/etc/httpd"
>  -D SUEXEC_BIN="/usr/sbin/suexec"
>  -D DEFAULT_PIDLOG="/var/run/httpd.pid"
>  -D DEFAULT_SCOREBOARD="/var/run/httpd.scoreboard"
>  -D DEFAULT_LOCKFILE="/var/run/httpd.lock"
>  -D DEFAULT_XFERLOG="/var/log/httpd/access_log"
>  -D DEFAULT_ERRORLOG="/var/log/httpd/error_log"
>  -D TYPES_CONFIG_FILE="conf/mime.types"
>  -D SERVER_CONFIG_FILE="conf/httpd.conf"
>  -D ACCESS_CONFIG_FILE="conf/access.conf"
>  -D RESOURCE_CONFIG_FILE="conf/srm.conf"
> 
> the box is also running awstats.
> 
> When i compare the requests for apache during the memory error 
> all the php scripts should be ok, as i have do some profiling and they 
> are ok. They were working on another box without problem.
> 
> Some hint? it could be a PHP version speficic problem? I have been
> looking in the list for a similar problem and the only thing i read is
> to try a RAM upgrade. Should i do that or you know another solution?
> 
> Thank you very much for your support.

If it is every 7 days could it be a PHP script that is in Cron-weekly that is going rogue?
Are you using persistant connections to a database in your scripts and that's the point you run out of availability?

Phil