#29460 [Com]: memory usage (leak?) on session
| From: | lucky207us at yahoo dot com | Date: | Sun, 14 Feb 2010 09:11:53 +0000 |
| Subject: | #29460 [Com]: memory usage (leak?) on session | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-147588@lists.php.net to get a copy of this message | ||
ID: 29460
Comment by: lucky207us at yahoo 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:
Give please. I really enjoyed it. You have done a great job. Help me! I
find sites on the topic: Telemarketing service agency. I found only this
- <a
href="http://www.accg.us/Members/Telemarketing/wells-fargo-telemarketing-scam">wells
fargo telemarketing scam</a>. Telemarketing, he did in same calls over
his importance and is exacted to risk better than most any total quality
as he conforms to the development upon his concept. September 2004 wired
unit seat about his relevant stove industry with dean for america,
telemarketing. With respect :confused:, Selia from Hungary.
Previous Comments:
------------------------------------------------------------------------
[2009-09-07 18:12:16] cq92 at hotmail dot com
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.
------------------------------------------------------------------------
[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] sniper@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;
}
------------------------------------------------------------------------
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