V
V
Vladimir2015-01-10 01:17:09
PHP
Vladimir, 2015-01-10 01:17:09

VPS 512mb centos 6.5 nginx php-fpm why does it eat up all the RAM in quiet mode?

Hello! There is a drop on DO that has Centos 6.5 nginx php-fpm mysql installed on it. So, I set everything up, put one site on Drupal 7, then I tried to load the server, and noticed that after the test load on the site, the RAM is not freed, it stays at a maximum of 468mb, I restart php-fpm the memory is reset to 100mb. And moreover, I noticed that after each request to the site, the memory is filled, but after that it does not decrease when the request has already been made. Tell me what could be the problem?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Alexander Aksentiev, 2015-01-10
@Sanasol

linux style of eating operatives. Stupidly everything goes into the cache and hangs. When you need to run something, the memory is cleared.

O
Optimus, 2015-01-10
Pyan @marrk2

This is always the case, the RAM everywhere is almost all busy to the maximum

V
Vlad Zhivotnev, 2015-01-10
@inkvizitor68sl

Linux is always looking to use free RAM for something useful. Applications, caches, dirty pages.
In your specific case, you can tweak the php-fpm pool settings:
pm = dynamic
pm.max_children = 5 # maximum number of workers in general
pm.start_servers = 3 # number of workers at fpm start
pm.min_spare_servers = 2 # minimum number of inactive workers
pm.max_spare_servers = 4 # maximum number of workers
pm.max_requests = 200 # after how many requests to reload each worker
You can put a smaller spare if you don't get a sudden load - then the memory will be freed.

O
Oleg Voitenko, 2015-02-18
@OliverV

show the contents of the top command during the "gobbled up" ope. There are no 'Vanga's granddaughters' here.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question