On Mon, Feb 27, 2006 at 05:16:01PM -0500, William Lovaton wrote:
> Mmmm... can you elaborate on that please?  I kind of have the idea of
> what you mean but I don't know how to do it.
> 
> What is exactly garbage collection in the context of a PHP session? I
> guess it is when PHP scans every session file to see if there are stale
> data or something like that and you can tune the probability of this
> process being triggered in the php.ini file.

Yeah, i believe that is the GC he is talking about.  By default,
php will do GC 1% of the requests, the actual rate of GC an how
much work it needs to do is predicted by:

  session.gc_divisor
  session.gc_probability
  session.gc_maxlifetime

see: http://php.net/manual/en/ini.php

> 
> How would you measure that? is there a way to do that?

If you are trying to benchmark the script and log excessive time
for a script to execute, i would probably suggest to use the
auto_prepend and auto_append directives to include scripts that
set begin and end times and log things, vs setting the start time
in apache and waiting for php to actually finishing its shutdown
process.

Curt.
-- 
cat .signature: No such file or directory

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to