#19335 [Opn->Fbk]: Garbage collection performance issue. gc_probability should be float not int
| From: | sniper@php.net | Date: | Tue, 10 Sep 2002 15:39:55 +0000 |
| Subject: | #19335 [Opn->Fbk]: Garbage collection performance issue. gc_probability should be float not int | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-18946@lists.php.net to get a copy of this message | ||
ID: 19335
Updated by: sniper@php.net
Reported By: tomek@allegro.pl
-Status: Open
+Status: Feedback
Bug Type: Session related
Operating System: FreeBSD 4.5
PHP Version: 4.2.2
New Comment:
Have you thought of using some other session.save_handler than files?
For example shared memory? (--with-mm)
Previous Comments:
------------------------------------------------------------------------
[2002-09-10 09:58:44] tomek@allegro.pl
To clarify a bit:
The server dies because of slow operations on directories with large
amounts of files. If garbage collection is started by every 100th Hit
(which means often in highly trafficked websites), load jumps to
100s...
------------------------------------------------------------------------
[2002-09-10 09:47:54] tomek@allegro.pl
We're running a rather large PHP site (97 million pageviews in August).
We try to minimize the number of open sessions by using session_start
only if required. However we still have ~25,000 open sessions peak.
With gc_probability set to 1, our server dies.
Currently I solved it by setting gc_probability to 0 and running find
-amin +10 -delete from cron, however it would be nice if gc_probability
could have a float value (say 0.1 or 0.01).
Regards,
Tomek
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=19335&edit=1