5 ms·
PHP successfully recovers from memory leaks, runaway processes, and any kind of deadlock. App Engine does too. And so does mod_wsgi. It can be done.
by ianb 17y ago
PHP successfully recovers from memory leaks, runaway processes, and any kind of deadlock. App Engine does too. And so does mod_wsgi. It can be done.
- FooBarWidget 17y agoRecovers? Last time I checked it just kills itself if memory usage goes too high, not sure whether that can be really called recovering.
- jrockway 17y agoYeah, by spawning a new process for every request. Fork is fast, but not forking is faster.
- ianb 17y agoAll of these keep a pool of worker processes, they don't fork each request. With a non-trivial application the speed difference is negligible, though the memory difference is not. PHP also has language-level isolation from request to request, but extensions are still long lived and require the process to be killed in some cases when they misbehave.