FAQ
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 infrequently.

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/activity
for a certain time.

I searched through the lists and did not find much.

Thanks

Search Discussions

  • James Butler at Feb 20, 2011 at 11:10 pm
    Are you using PHP as a module inside a web server such as apache? If so then module unloading is generally the problem of the web server rather than PHP. Is (fast) cgi not an option?
  • Bharat Nagwani at Feb 21, 2011 at 12:41 am
    James,
    We are using Embed Appweb server 3.2 release. There is no support for unloading.
    CGI is used currently and page response is quite slow due to which we want to use MODULE/APC.

    Thanks

    -----Original Message-----
    From: James Butler
    Sent: Sunday, February 20, 2011 3:09 PM
    To: Bharat Nagwani
    Cc: internals@lists.php.net
    Subject: Re: [PHP-DEV] PHP Module unload

    Are you using PHP as a module inside a web server such as apache? If so then module unloading is generally the problem of the web server rather than PHP. Is (fast) cgi not an option?
  • Reindl Harald at Feb 21, 2011 at 8:06 am

    Am 21.02.2011 01:41, schrieb Bharat Nagwani:
    James,
    We are using Embed Appweb server 3.2 release.
    There is no support for unloading
    php can not unload, this must the server runnibng the php-module

    CGI is used currently and page response is quite slow due to
    which we want to use MODULE/APC
    fastcgi is not the same as cgi because the isolated
    php-process is running and reused after a request

    so it is possible to use fcgi?
    Thanks

    -----Original Message-----
    From: James Butler
    Sent: Sunday, February 20, 2011 3:09 PM
    To: Bharat Nagwani
    Cc: internals@lists.php.net
    Subject: Re: [PHP-DEV] PHP Module unload

    Are you using PHP as a module inside a web server such as apache? If so then module unloading is generally the problem of the web server rather than PHP. Is (fast) cgi not an option?
    --

    Mit besten Grüßen, Reindl Harald
    the lounge interactive design GmbH
    A-1060 Vienna, Hofmühlgasse 17
    CTO / software-development / cms-solutions
    p: +43 (1) 595 3999 33, m: +43 (676) 40 221 40
    icq: 154546673, http://www.thelounge.net/
  • Bharat Nagwani at Feb 22, 2011 at 3:28 am
    FastCGI could be used. We are already on path of using PHP module with APC.
    So unless there are significant benefits, we would like to stick to
    using Module.

    Thanks
    -----Original Message-----
    From: Reindl Harald
    Sent: Monday, February 21, 2011 12:07 AM
    To: Bharat Nagwani
    Cc: James Butler; internals@lists.php.net
    Subject: Re: [PHP-DEV] PHP Module unload



    Am 21.02.2011 01:41, schrieb Bharat Nagwani:
    James,
    We are using Embed Appweb server 3.2 release.
    There is no support for unloading
    php can not unload, this must the server runnibng the php-module

    CGI is used currently and page response is quite slow due to which we
    want to use MODULE/APC
    fastcgi is not the same as cgi because the isolated php-process is running and reused after a request

    so it is possible to use fcgi?
    Thanks

    -----Original Message-----
    From: James Butler
    Sent: Sunday, February 20, 2011 3:09 PM
    To: Bharat Nagwani
    Cc: internals@lists.php.net
    Subject: Re: [PHP-DEV] PHP Module unload

    Are you using PHP as a module inside a web server such as apache? If so then module unloading is generally the problem of the web server rather than PHP. Is (fast) cgi not an option?
    --

    Mit besten Grüßen, Reindl Harald
    the lounge interactive design GmbH
    A-1060 Vienna, Hofmühlgasse 17
    CTO / software-development / cms-solutions
    p: +43 (1) 595 3999 33, m: +43 (676) 40 221 40
    icq: 154546673, http://www.thelounge.net/

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupphp-internals @
categoriesphp
postedFeb 20, '11 at 10:55p
activeFeb 22, '11 at 3:28a
posts5
users3
websitephp.net

People

Translate

site design / logo © 2022 Grokbase