# Memory leaks with Shared Memory

- Thread: https://externals.io/message/51338
- Original archive: https://news-web.php.net/php.internals/51338
- Started by Andras Gyomrey on 2011-01-21T14:26:06+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

---

## #51338 — Andras Gyomrey — 2011-01-21T14:26:06+00:00

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

Hi,

I've been playing around with Shared Memory, Semaphores and IPC. I've
noticed even though i can restart apache, this shared memory segments remain
in memory. This means a poor written script could eat a lot of server's
available memory without freeing it back.

This is more a question than a feature request. Isn't there a chance for php
to keep a record of this shared memory segments?

I know some principles, like, each process is independent when running under
CGI. Is there not a centralized memory segment which could tell you the
other memory segments which are being used by a script?

Thank you so much,

Andras
