Earlier quoted context omitted.
You don't seem to understand the basics of how Java web containers work. The thread stack size is irrelevant in most cases. You're going to be using a thread pooled server anyway to handle requests. Conceptually this is no different than using a forked model. You just use a pool of threads instead of processes. Are you telling me that you run a process pool of thousands of PHP instances on a single machine? I hope no…
>Your notion that forked = better is outdated. You're beating a strawman here. Nowhere did I make the claim that it was better. I even said multithreading is more performant. The only claim I make is that immutable and shared nothing model of PHP servers makes horizontal scalling more straightforward. >You're going to be using a thread pooled server anyway to handle requests That doesn't take away the fact that n par…
What's your point? In PHP's model, n requests will take n processes. There's no event loop in PHP.
The forked model has nothing to do with making scaling horizontally more straightforward. In either scenario, you'll end up running a different process on another machine once you exhaust your resources.