Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:51489 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 63417 invoked from network); 20 Feb 2011 22:55:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Feb 2011 22:55:02 -0000 Authentication-Results: pb1.pair.com header.from=bnagwani@juniper.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=bnagwani@juniper.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain juniper.net from 64.18.2.20 cause and error) X-PHP-List-Original-Sender: bnagwani@juniper.net X-Host-Fingerprint: 64.18.2.20 exprod7og121.obsmtp.com Linux 2.5 (sometimes 2.4) (4) Received: from [64.18.2.20] ([64.18.2.20:58406] helo=exprod7og121.obsmtp.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9C/51-55642-4CB916D4 for ; Sun, 20 Feb 2011 17:55:01 -0500 Received: from source ([66.129.224.36]) (using TLSv1) by exprod7ob121.postini.com ([64.18.6.12]) with SMTP ID DSNKTWGbwY9rTSro0IXdvGpNisFa/EJQorVq@postini.com; Sun, 20 Feb 2011 14:55:01 PST Received: from EMBX02-HQ.jnpr.net ([fe80::18fe:d666:b43e:f97e]) by P-EMHUB03-HQ.jnpr.net ([::1]) with mapi; Sun, 20 Feb 2011 14:54:26 -0800 To: "internals@lists.php.net" Date: Sun, 20 Feb 2011 14:54:52 -0800 Thread-Topic: PHP Module unload Thread-Index: AcvRUS85C2H8tYYbR3SuWLcI17W/Ug== Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-cr-puzzleid: {BF67C640-1C85-4C0C-9F19-67EE027A93D8} x-cr-hashedpuzzle: AVAB BIaW BNCr CT+S C/70 EG7p EW51 Evfs FTKN GNkt Hcdk IOAi JHtr JxCr Jzs/ J5Ay;1;aQBuAHQAZQByAG4AYQBsAHMAQABsAGkAcwB0AHMALgBwAGgAcAAuAG4AZQB0AA==;Sosha1_v1;7;{BF67C640-1C85-4C0C-9F19-67EE027A93D8};YgBuAGEAZwB3AGEAbgBpAEAAagB1AG4AaQBwAGUAcgAuAG4AZQB0AA==;Sun, 20 Feb 2011 22:54:52 GMT;UABIAFAAIABNAG8AZAB1AGwAZQAgAHUAbgBsAG8AYQBkAA== acceptlanguage: en-US Content-Type: multipart/alternative; boundary="_000_DBDEC20E6E29304D8AE5EAA493609B3557A55231CDEMBX02HQjnprn_" MIME-Version: 1.0 Subject: PHP Module unload From: bnagwani@juniper.net (Bharat Nagwani) --_000_DBDEC20E6E29304D8AE5EAA493609B3557A55231CDEMBX02HQjnprn_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello experts, I have a question on PHP module unloading. We are using PHP 5.3.2 on BSD. We are looking to use PHP as a module with APC cache due to performance reasons. I have limited APC memory to 8mb. The memory usage with PHP module is obviously persistent compared to CGI. We have a embedded device environment so we want to limit memory usage to a minimum since the web access to the device is used infreq= uently. Is there a feature in PHP either via php.ini or code change where we can unload the PHP module after a certain time be it eg no sessions/activit= y for a certain time. I searched through the lists and did not find much. Thanks --_000_DBDEC20E6E29304D8AE5EAA493609B3557A55231CDEMBX02HQjnprn_--