nginx + fpm conf help needed

Hey,

I already created few topics about nginx and fpm seems like not many people use it or just they dont want to answer my thread. Anyways, I have a question about nginx + fpm on linode 512 box.

The issue is I decided to switch to nginx from apache and use fpm. Sites load fast etc. but now having memory issues.

There is no active connections on server, load is around 0.30. And I am checking my monit to see memory usage :

93.2% [405728 kB] with swap : 40.7% [213524 kB]

So isnt it a bit weird to server use that much when there is no active connections ?

When I check top with memory based list, it shows 10 pids for php5-fpm (because of pool workers i guess) and those pids use around %13 memory for each (%13 x 9 pids in total). Is that much memory usage normal when there is no active connections ?

My fpm status is like this :

pool: www
process manager: dynamic
accepted conn: 1447
listen queue len: 0
max listen queue len: 128
idle processes: 10
active processes: 0
total processes: 10
max children reached: 0
And monit shows for php5 fpm process : Total memory usage (incl. children) 74.8% [325556kB]

Sometimes memory usage incl. children goes like %120 or even higher. But this happens also while the server is idle.


So is this %90 of memory usage in total is normal or something wrong with it?

 

 

 

 

Top