Re: PHP Performance/Scalability

[email protected] (shiplu)
Newsgroups php.general
Message-ID <CADO5mDAg7jSzbCcyBu+sgH7kd-5+EH8-9_E7OAmiWCfDH9a_EQ@mail.gmail.com>
Could you share the PHP code? if interested, you can also share the Java
code.
Unless we see the code we can not tell if it's simple or complex.

―

Shiplu.Mokadd.im
Senior Unix Hacker

*Innovation distinguishes between follower and leader*
—  Steve Jobs


*An expert is a person who has made all the mistakes that can be made in a
very narrow field.*—  Niels Bohr


On Tue, Oct 26, 2021 at 4:45 PM Deepak Goel <[email protected]> wrote:

> Hi
>
> The code is fairly simple. It contains a few images and a simple SQL query
> (The same code in Java gives superb performance). We have an Apache Web
> Server in front of php as of now. And I will try out this (
> https://github.com/spiral/roadrunner).
>
> Thanks.
>
> Deepak
> "The greatness of a nation can be judged by the way its animals are
> treated - Mahatma Gandhi"
>
> +91 73500 12833
> [email protected]
>
> Facebook: https://www.facebook.com/deicool
> LinkedIn: www.linkedin.com/in/deicool
>
> "Plant a Tree, Go Green"
>
> Make In India : http://www.makeinindia.com/home
>
>
> On Tue, Oct 26, 2021 at 5:15 PM Alex <[email protected]> wrote:
>
>> 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
>> > [email protected] <mailto:[email protected]>
>> >
>> > 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>
>>
>>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.