Welcome! Log In Create A New Profile

Advanced

Re: Nginx - PHP FPM Server load is very high

Jonathan Matthews
March 06, 2014 06:42PM
On 6 March 2014 19:18, agriz <nginx-forum@nginx.us> wrote:
> The server is struggling to handle the traffic.
> I have 8GB ram. Quad core server.
[snip]
> Right now, the load is about 50

I very much doubt your problem is a simple one which can be solved by
tweaking your nginx config. I say this because you have (50/4 == 12.5)
times as much work to do on this server as you have CPU cores to do it
on. It looks very much like you need ... more hardware!

You may be able to offload some static file serving from PHP to
nginx/etc via X-Accel-Redirect; you might cache some content using
Nginx's (or some other) HTTP caching. But you'll need to really
understand your application in order to do them correctly, and no-one
here can tell you /exactly/ how to implement them for your situation.

If you want to fix this quickly, buy/lease/provision more hardware/VMs
now. If you want to fix it cheaply, you'll need to spend time
investigating what the PHP is doing that's taking the time, hence how
you can help it do it more efficiently (X-Accel-Redirect) or not at
all (caching).

Cheers,
Jonathan

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Nginx - PHP FPM Server load is very high

agriz March 06, 2014 02:18PM

Re: Nginx - PHP FPM Server load is very high

Jonathan Matthews March 06, 2014 06:42PM

Re: Nginx - PHP FPM Server load is very high

artem March 07, 2014 02:58AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 151
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready