The program still has major memory leak issues. When
serving plain-o HTML files, a few Ks here and there are
consumed per request. When PHP 5 is used, a couple
megs disappear after each request.
Crap. This exposes a major flaw in how threads are handled.
PHP allocates a block of memory per thread. There's no way
through the Apache SAPI module to force it to free the
memory.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=1204066
Crap. This exposes a major flaw in how threads are handled.
PHP allocates a block of memory per thread. There's no way
through the Apache SAPI module to force it to free the
memory.
Logged In: YES
user_id=1204066
Fixed. Now the program uses a thread pool instead of
creating a new thread per request. The APP object is now
released correctly as well.