# PHP Module unload

- Thread: https://externals.io/message/51489
- Original archive: https://news-web.php.net/php.internals/51489
- Started by Bharat Nagwani on 2011-02-20T22:54:52+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #51489 — Bharat Nagwani — 2011-02-20T22:54:52+00:00

URL: https://externals.io/message/51489#51489

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
