Re: PHP Performance/Scalability

From: Date: Tue, 26 Oct 2021 11:45:27 +0000
Subject: Re: PHP Performance/Scalability
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-327784@lists.php.net to get a copy of this message
Hi. On 26.10.21 11:53, Deepak Goel wrote:
Hello I have a very simple PHP application which I develop on Apache-Web-Server. However the application does not scale beyond 1500 concurrent users (150 requests/sec), even though there is plenty of hardware available (CPU is getting utilized 15%, Memory is getting utilized 15%).. On a similar note, when I develop the same application in Java, it scales to more than 6000 concurrent users (600 requests/sec) on the same hardware. Any pointers on how to address this scalability issue?
The question is how "simple" is the PHP Code? Maybe you can tune the Code or use another Server in front of PHP FPM like haproxy, Caddy, nginx? Maybe you can try to run https://github.com/spiral/roadrunner to execute the PHP Code. Jm2c Regards Alex
Thanks! Deepak "The greatness of a nation can be judged by the way its animals are treated - Mahatma Gandhi" +91 73500 12833 deicool@gmail.com <mailto:deicool@gmail.com> Facebook: https://www.facebook.com/deicool <https://www.facebook.com/deicool> LinkedIn: www.linkedin.com/in/deicool <http://www.linkedin.com/in/deicool> "Plant a Tree, Go Green" Make In India : http://www.makeinindia.com/home <http://www.makeinindia..com/home>


« previous php.general (#327784) next »