# Nginx + php 5.3.5 fpm result is high server load

**URL:** <https://www.ruby-forum.com/t/nginx-php-5-3-5-fpm-result-is-high-server-load/203770>\
**Category:** NGINX\
**Created:** [February 26, 2011, 10:53pm UTC](https://www.ruby-forum.com/t/nginx-php-5-3-5-fpm-result-is-high-server-load/203770 "2011-02-26T22:53:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [February 26, 2011, 10:53pm UTC](https://www.ruby-forum.com/t/nginx-php-5-3-5-fpm-result-is-high-server-load/203770/1 "2011-02-26T22:53:23Z")

</div>

Hi Guys,  
we try to migrate our apache 2.2 mod\_fcgid with php-cgi configuration  
to nginx + php-fpm from ports on our freebsd 8.2 stable system.We hosted  
round 200-300 sites.

The result is high load of the server, lots of system calls and  
mysql-server 5.1.55 has doubling his threads.

Any suggestion ?

Posted at Nginx Forum:

> **[nginx + php 5.3.5 fpm result is high server load](https://forum.nginx.org/read.php?2,178667,178667#msg-178667)**
>
> Hi Guys, we try to migrate our apache 2.2 mod\_fcgid with php-cgi configuration to nginx + php-fpm from ports on our freebsd 8.2 stable system.We hosted round 200-300 sites. The result is high load of the server, lots of system calls and mysql-server...

---

<div class="post-metadata">

**Author:** ![izrodix](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/3d9bf3/32.png) [@izrodix](https://www.ruby-forum.com/u/izrodix)\
**Post date:** [February 27, 2011, 1:49pm UTC](https://www.ruby-forum.com/t/nginx-php-5-3-5-fpm-result-is-high-server-load/203770/2 "2011-02-27T13:49:18Z")

</div>

On Sat, 2011-02-26 at 16:52 -0500, izrodix wrote:

> Hi Guys,  
> we try to migrate our apache 2.2 mod\_fcgid with php-cgi configuration  
> to nginx + php-fpm from ports on our freebsd 8.2 stable system.We hosted  
> round 200-300 sites.
> 
> The result is high load of the server, lots of system calls and  
> mysql-server 5.1.55 has doubling his threads.
> 
> Any suggestion ?

What’s the filesystem format underneath? We’ve seen some issues recently  
with NFS performance if the PHP include path is in the wrong order which  
drove the load up to over 200 on a 24-core server with 16G RAM.

We also saw some issues with the maximum memory limits set  
in /etc/sysctl.conf which created “false” load in a similar range on the  
same box.

HTH,

M.

---

<div class="post-metadata">

**Author:** ![izrodix](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/3d9bf3/32.png) [@izrodix](https://www.ruby-forum.com/u/izrodix)\
**Post date:** [March 2, 2011, 10:50pm UTC](https://www.ruby-forum.com/t/nginx-php-5-3-5-fpm-result-is-high-server-load/203770/3 "2011-03-02T22:50:55Z")

</div>

We are using standart UFS file system but IO is not the problem.  
This is strange the CPU user == system. With apache22 with mod\_fcgid we  
have round 20-25% idle and the system load is very low.

last pid: 25961; load averages: 48.43, 34.30, 36.86

```
                                 up 5+00:02:08 23:45:08

```

184 processes: 69 running, 114 sleeping, 1 lock  
CPU: 52.5% user, 0.0% nice, 47.5% system, 0.0% interrupt, 0.0% idle  
Mem: 1786M Active, 4256M Inact, 1256M Wired, 213M Cache, 828M Buf, 407M  
Free  
Swap: 4096M Total, 92K Used, 4096M Free

Posted at Nginx Forum:

> **[Re: nginx + php 5.3.5 fpm result is high server load](https://forum.nginx.org/read.php?2,178667,179798#msg-179798)**
>
> Hi Guys, we try to migrate our apache 2.2 mod\_fcgid with php-cgi configuration to nginx + php-fpm from ports on our freebsd 8.2 stable system.We hosted round 200-300 sites. The result is high load of the server, lots of system calls and mysql-server...

---

<div class="post-metadata">

**Author:** ![izrodix](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/3d9bf3/32.png) [@izrodix](https://www.ruby-forum.com/u/izrodix)\
**Post date:** [March 7, 2011, 10:50pm UTC](https://www.ruby-forum.com/t/nginx-php-5-3-5-fpm-result-is-high-server-load/203770/4 "2011-03-07T22:50:07Z")

</div>

Hi list

We have a setup with central NFS server (using 64 NFS daemons at the  
moment) and 10 servers that mounts data via NFS4. The NFS server is  
using XFS, Linux version 2.6.32-5-amd64 (Debian 2.6.32-30). It’s a VM  
with gigabit interface and it delivers around 50-80 MBit in peak time.  
It’s a quad core machine with 8 Gig of memory.

> From time to time the load literally explodes on the NFS server and eventually  
> also on the webservers since they can’t access the content on the NFS server.

I found this post via Google and you mentioned that you had a similar  
problem with PHP include path - care to enlighten what the problem was  
and how you solved it?

Also - if possible - could I have a look at your sysctl.conf file ?

Kind regards,  
Lasse L.
