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

RE: [cobalt-users] memory problems!!



we checked the source for never ending loops....but this is not the
problem...
does mysql/apache doesn't free the mem? (we used: mysql_free_result())

-Steven

> -----Original Message-----
> From: cobalt-users-admin@xxxxxxxxxxxxxxx
> [mailto:cobalt-users-admin@xxxxxxxxxxxxxxx]On Behalf Of WebMost
> Sent: Montag, 20. Dezember 1999 14:46
> To: cobalt-users@xxxxxxxxxxxxxxx
> Subject: Re: [cobalt-users] memory problems!!
>
>
> Ahoy
>
> Most likely, something in your code is making a self-propagating,
> never-ending loop.
>
> Happens all the time. Like this:
>
> $i = 0;
> until($i == 100) {
>   print "bogus\n";
> }
>
> You see? Forgot to increment $i.
>
> Kill the process, then debug.
>
> Aloha
> Davis
>
>
>
>
> -----Original Message-----
> From: Steven Glogger <Steven@xxxxxxxxxx>
> To: cobalt-users@xxxxxxxxxxxxxxx <cobalt-users@xxxxxxxxxxxxxxx>
> Date: Monday, December 20, 1999 6:49 AM
> Subject: [cobalt-users] memory problems!!
>
>
> >hi there...
> >how it's possible, that one apache process consumes up to 97M of Ram!!!!
> >
> >the webserver is a apache running with php3 and mysql....
> >and in the apache/server-status the sitename and request to this pid is
> >always changing....
> >
> >  PID USERNAME THR PRI NICE  SIZE   RES STATE   TIME    CPU COMMAND
> > 9243 root      23  33    0   19M 2928K sleep   0:29  3.19% mysqld
> > 9202 www        1  33    0 5888K 3124K sleep   0:01  1.04%
> httpd-1.3.9-php
> > 8830 www        1  33    0   22M   16M sleep   0:19  1.02%
> httpd-1.3.9-php
> > 8845 www        1  33    0   14M   11M sleep   0:11  0.54%
> httpd-1.3.9-php
> > 8831 www        1  33    0 9760K 7056K sleep   0:09  0.36%
> httpd-1.3.9-php
> > 9190 www        1  33    0 5824K 3088K sleep   0:01  0.28%
> httpd-1.3.9-php
> > 8832 www        1  23    0   97M   83M sleep   1:23  0.25%
> httpd-1.3.9-php
> ><-----!!!!
> > 8847 www        1  33    0   30M   23M sleep   0:23  0.04%
> httpd-1.3.9-php
> ><-----!!!!
> >
> >
> >whats going on here???
> >
> >-Steven
> >
> >
> >_______________________________________________
> >cobalt-users mailing list
> >cobalt-users@xxxxxxxxxxxxxxx
> >http://list.cobalt.com/mailman/listinfo/cobalt-users
> >
>
>
> _______________________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> http://list.cobalt.com/mailman/listinfo/cobalt-users
>