Why not drop the memory consumption on the server after all the scripts?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
7 views
Good afternoon.

Don't understand why the memory consumption does not fall after the completion of the script.
Traffic to the site no, HTOP info 5c52cb52b09b6384717996.png

Uploaded 4 thousand goods consumption is growing 5c52c7bba82e9310895279.png
Then falls, and the next unloading - out of memory error.

A brief description
CPU: 2 RAM: 2 GB SSD: 30 GB
Ubuntu 16.04
Vesta
by | 7 views

3 Answers

0 like 0 dislike
Memory consumption should not fall. PHP (and any other high-level YAP) will not give the operating system the memory that was used at least once, because it still may be needed for similar queries and it makes no sense to drive back and forth.

To solve the problem in your case I see 3 options:
  1. to reduce MaxRequestsPerChild, the processes are often restarted
  2. to limit the number of simultaneous requests ( MaxClients ) so that memory enough
  3. to make the processing of goods in a background task, launched from cli
by
0 like 0 dislike
Because the memory potreblyaet you have doctors and muscle and not the PHP scripts, they are generally in the top no
by
0 like 0 dislike
While saving add RAM up to 4GB
by

Related questions

0 like 0 dislike
3 answers
0 like 0 dislike
3 answers
0 like 0 dislike
3 answers
0 like 0 dislike
2 answers
0 like 0 dislike
7 answers
asked Mar 21, 2019 by AstonMartin
110,608 questions
257,186 answers
0 comments
28,117 users