[pLog-svn] Process size

Ayalon ayalon at blog.nl
Wed Dec 13 15:17:16 GMT 2006


Where can I find the post of the rewrite?

Anyway my provider is telling me that it looks like lifetype has memoryleaks
in various aspects of the script, starting with caching. Is that possible?
Is it possible to disable everything related to cache lift? Just to test
some things...

-----Oorspronkelijk bericht-----
Van: plog-svn-bounces at devel.lifetype.net
[mailto:plog-svn-bounces at devel.lifetype.net] Namens Jon Daley
Verzonden: woensdag 13 december 2006 13:48
Aan: plog-svn at devel.lifetype.net
Onderwerp: RE: [pLog-svn] Process size

 	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","/i
> ndex.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","/s
> portsw 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_schnabb
> elsoap
> "
> 20061213132836,1626192,0.039638996124268,132,1,4,4,,"/error.php","/fun
> k/2006 /12/12/nieuwe-video-cornelius-fit-song"
> 20061213132837,1760208,0.06320595741272,144,2,10,9,1,"/index.php","/in
> dex.ph
> p?op=AuthImageShow"
> 20061213132838,1630456,0.040371894836426,132,1,4,4,,"/error.php","/ido
> ls/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","/i
> ndex.p
> hp?op=AuthImageShow"
> 20061213132840,1941048,0.40758085250854,182,5,93,93,,"/error.php","/ce
> lebs/2 006/12/04/eddie-murphy-dist-zijn-vriendin-mel-b."
> 20061213132840,1618392,0.041217088699341,132,1,4,4,,"/error.php","/arm
> in_van _buuren/2006/11/13/armin_only_2006_de_videobeelden"
> 20061213132841,1764992,0.074999094009399,144,1,10,10,,"/index.php","/i
> ndex.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