[pLog-svn] Process size

Oscar Renalias oscar at renalias.net
Wed Dec 13 13:27:16 GMT 2006


I was going to say the same... 1.6-2.0mb is not that much at all, but
those apache processes taking 245mb each confuse me a bit. Isn't it so
that apache won't kill the child process as long as it keeps receiving
connections? I am not sure how apache handles its pool of child
processes so I could be wrong.

On 12/13/06, Jon Daley <plogworld at jon.limedaley.com> wrote:
>         If you are using php5, there are a couple new functions
> get_peak_memory or something like that.  metrics uses the one for php4,
> which is show current memory usage.
>         I don't understand when you say that it is "a lot of memory".
> Metrics is reporting less than 2 meg per page.  I don't think you can get
> much lower than that.
>         I wonder if having all of your pages go through error.php makes
> any difference?  I posted some stuff to the forums about how to configure
> your .htaccess to rewrite everything to avoid the 404 errors.
>         When you say "see what LT is calling for kind of includes", what
> do you mean?  metrics show you how many files are included.
>
> (look in logging.properties.php for info on what the fields mean)
> # timestamp (14-digit)
> # memory usage
> # total execution time
> # number of included files
> # number of SQL queries executed
> # total number of cache queries
> # total number of cache hits
> # total number of cache misses
> # script being executed
> # URL being processed
>
>         I am hoping to move the admin strings to a different object, other
> than messages, to avoid them being loaded when not in the admin mode -
> that will reduce some memory usage.  Hrm. maybe better than that, simply
> have a big if($admin) around the messages in the locale file.
>
>
> On Wed, 13 Dec 2006, Ayalon wrote:
>
> > What is the best way to see what lifetype is calling for kind of includes
> > etc?
> >
> > Now I see a lot of big processes which take a lot of mem of apache:
> >
> > 49440 www         1   4    0   246M   103M accept 1   0:17  7.57% httpd
> > 49417 www         1  96    0   246M   103M select 1   0:15  2.73% httpd
> > 49426 www         1  96    0   244M   100M select 1   0:16  1.17% httpd
> >
> >
> > The metrics show this:
> >
> > 20061213132833,1750536,0.065476179122925,144,1,10,10,,"/index.php","/index.p
> > hp?op=AuthImageShow"
> > 20061213132833,1918224,0.66086292266846,179,4,175,175,,"/page","/page/15"
> > 20061213132835,1928528,1.0433170795441,181,7,101,99,2,"/error.php","/sportsw
> > ear_anno_2006/2006/08/31/sneakers_2007"
> > 20061213132836,1941616,0.45854687690735,182,7,102,100,2,"/error.php","/real-
> > life_shows/2006/09/15/arie_ribbens_alpenzusjes_en_sugar_lee_in_schnabbelsoap
> > "
> > 20061213132836,1626192,0.039638996124268,132,1,4,4,,"/error.php","/funk/2006
> > /12/12/nieuwe-video-cornelius-fit-song"
> > 20061213132837,1760208,0.06320595741272,144,2,10,9,1,"/index.php","/index.ph
> > p?op=AuthImageShow"
> > 20061213132838,1630456,0.040371894836426,132,1,4,4,,"/error.php","/idols/200
> > 6/12/01/vergeet_idols_en_x-factor_esmee_gebruikt_youtube"
> > 20061213132839,1592472,0.037331104278564,130,0,3,3,,"/home.php","/"
> > 20061213132839,1596936,0.037442922592163,130,0,3,3,,"/home.php","/"
> > 20061213132839,1761824,0.078922986984253,144,1,10,10,,"/index.php","/index.p
> > hp?op=AuthImageShow"
> > 20061213132840,1941048,0.40758085250854,182,5,93,93,,"/error.php","/celebs/2
> > 006/12/04/eddie-murphy-dist-zijn-vriendin-mel-b."
> > 20061213132840,1618392,0.041217088699341,132,1,4,4,,"/error.php","/armin_van
> > _buuren/2006/11/13/armin_only_2006_de_videobeelden"
> > 20061213132841,1764992,0.074999094009399,144,1,10,10,,"/index.php","/index.p
> > hp?op=AuthImageShow"
> >
> >
> > Which is in my opinion a lot of memory use for the script. Can I see in some
> > way what can cause this, to help out for the rest which will probably have
> > the same issues...
> >
> >
> >
> > -----Oorspronkelijk bericht-----
> > Van: plog-svn-bounces at devel.lifetype.net
> > [mailto:plog-svn-bounces at devel.lifetype.net] Namens Jon Daley
> > Verzonden: dinsdag 12 december 2006 19:35
> > Aan: plog-svn at devel.lifetype.net
> > Onderwerp: RE: [pLog-svn] Process size
> >
> >       Is that before any lifetype pages are run?
> >
> > On Tue, 12 Dec 2006, Ayalon wrote:
> >
> >> The strange thing is that the proces is starting with a size of 192M,
> >> without doing anything. Ok I run eaccelerator which can use up to
> >> 64mb, so that leaves another 135mb. Does anybody else have these kind of
> > outputs?
> >>
> >> Anything to show on the devel enviroment?
> >>
> >> -----Oorspronkelijk bericht-----
> >> Van: plog-svn-bounces at devel.lifetype.net
> >> [mailto:plog-svn-bounces at devel.lifetype.net] Namens Jon Daley
> >> Verzonden: dinsdag 12 december 2006 18:43
> >> Aan: plog-svn at devel.lifetype.net
> >> Onderwerp: Re: [pLog-svn] Process size
> >>
> >>      I run php as a cgi, so each page view results in a new process, so
> >> that couldn't happen to me.
> >>      Does php automatically clean up variables when you run as a module?
> >> I think I clean up all of the database handles.
> >>
> >> On Tue, 12 Dec 2006, Ayalon wrote:
> >>
> >>> Hi All,
> >>>
> >>> Can some people show me the outpot of there top commands at there
> >>> unix/linux servers?
> >>>
> >>> I think there's some problem with the start of the lifetype script,
> >>> but i need to be sure if it's only my server or everybody has it.
> >>>
> >>> I'm intressted in the top command and then especially a few running
> >>> httpd processes.
> >>>
> >>> Mine can grow up to 253mb..
> >>>
> >>> For example:
> >>>
> >>> 18928 www         1   4    0   192M 22736K accept 0   0:04  1.07% httpd
> >>> 18926 www         1   4    0   192M 19416K accept 1   0:05  1.03% httpd
> >>> 18372 www         1   4    0   251M 22524K accept 1   0:16  0.97% httpd
> >>>
> >>> _____________________________________________________________________
> >>> _ This email has been scanned by the MessageLabs Email Security
> >>> System.
> >>> For more information please visit http://www.messagelabs.com/email
> >>> _____________________________________________________________________
> >>> _ _______________________________________________
> >>> pLog-svn mailing list
> >>> pLog-svn at devel.lifetype.net
> >>> http://devel.lifetype.net/mailman/listinfo/plog-svn
> >>>
> >>
> >> --
> >> Jon Daley
> >> http://jon.limedaley.com/
> >>
> >> It is now proved beyond doubt that smoking is one of the leading
> >> causes of statistics.
> >> -- Fletcher Knebel
> >> _______________________________________________
> >> pLog-svn mailing list
> >> pLog-svn at devel.lifetype.net
> >> http://devel.lifetype.net/mailman/listinfo/plog-svn
> >>
> >>
> >> _______________________________________________
> >> pLog-svn mailing list
> >> pLog-svn at devel.lifetype.net
> >> http://devel.lifetype.net/mailman/listinfo/plog-svn
> >>
> >
> > --
> > Jon Daley
> > http://jon.limedaley.com/
> >
> > Just be good and kind to your children.  Not only are they the future of the
> > world, they're the ones who can sign you into the home.
> > -- Dennis Miller
> > _______________________________________________
> > pLog-svn mailing list
> > pLog-svn at devel.lifetype.net
> > http://devel.lifetype.net/mailman/listinfo/plog-svn
> >
> >
> > _______________________________________________
> > pLog-svn mailing list
> > pLog-svn at devel.lifetype.net
> > http://devel.lifetype.net/mailman/listinfo/plog-svn
> >
>
> --
> Jon Daley
> http://jon.limedaley.com/
>
> If everything is coming your way then you're in the wrong lane.
> -- Anonymous
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://devel.lifetype.net/mailman/listinfo/plog-svn
>


More information about the pLog-svn mailing list