ID: 29460 Comment by: cq92 at hotmail dot com Reported By: kylewong at southa dot com Status: No Feedback Bug Type: Session related Operating System: linux kernel 2.6.1 PHP Version: 4.3.8 New Comment:
Probably the easiest way to fix this problem is to create a batch file to empty the sessions folder (*.*) regularily and run it using task scheduler (windows servers). That way it will automatically dump cache folders or session folders at regular intervals, say 4-8 hours daily. Previous Comments: ------------------------------------------------------------------------ [2005-02-11 01:00:26] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2005-02-03 04:56:58] sni...@php.net Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip ------------------------------------------------------------------------ [2004-07-31 08:34:59] kylewong at southa dot com 30 minutes after delete all session data files while apache running. 5500 sessions online, 22M disk space taken by session files. average session file size around 1.5kb. http://www2.southa.com/~kylewong/top-8.gif ------------------------------------------------------------------------ [2004-07-31 08:14:22] kylewong at southa dot com httpd grow back to 10-12MB http://www2.southa.com/~kylewong/top-6.gif 2 minutes later after delete all session data while apache running: http://www2.southa.com/~kylewong/top-7.gif session.php: class GallerySession {} if (session_id()) { $useStdClass = 1; } /* Start a new session, or resume our current one */ @session_start(); $sessionVar = "fsess"; session_register($sessionVar); if (isset($$sessionVar)) { $gallery->session =& $$sessionVar; } else { /* Register the session variable */ session_register($sessionVar); /* Create a new session container */ if ($useStdClass) { $$sessionVar = new stdClass(); } else { $$sessionVar = new GallerySession(); } $gallery->session =& $$sessionVar; } ------------------------------------------------------------------------ [2004-07-31 06:53:02] kylewong at southa dot com more informations: apache fresh start without any session data: http://www2.southa.com/~kylewong/top-1.gif about 30 minutes later, httpd size grow around 1.5M http://www2.southa.com/~kylewong/top-2.gif 1 hour later from beginning, httpd size reach 10M, total session data size around 16M, average session file size around 2kb, around 4k sessions online. http://www2.southa.com/~kylewong/top-3.gif stop and restart apache without delete session data, most httpd size reach 10M immediately after apache start. http://www2.southa.com/~kylewong/top-4.gif stop, delete all session data, and restart apache. http://www2.southa.com/~kylewong/top-5.gif ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/29460 -- Edit this bug report at http://bugs.php.net/?id=29460&edit=1