19 points · by bergie · 15y ago · 11 comments
The blurb on the git project has "The main idea is, that your app, if built for this protocol, will be able to preload resources, preconnect to databases and response to requests really fast.", which seems like it's taking a persistent approach to running PHP apps. How does this deal with the memory leaks etc?
Can anybody knowledgeable weigh in on this with a little detail about what it is, how stable it is, who's using it, how it stacks up to using PHP-FPM in a spawner pool w/ nginx etc... ?
Indeed, memory leaks are a potential issue with persistent PHP. Garbage collection in 5.3 helps a bit, but in general AiP exposes such issues more readily than regular mod_php setups. This doesn't mean memory leaks in your code wouldn't be an issue anyway, it just means you'll notice them a lot more quickly.
AiP workers die when PHP's memory_limit is exceeeded, and AiP will then restart them.
13958 bergie 20 0 125m 10m 2136 S 1 0.6 0:00.28 php
13959 bergie 20 0 125m 10m 2136 S 1 0.6 0:00.31 phpSee klein (https://github.com/chriso/klein.php) for a real PHP express port..