Y
Y
yazhog2017-10-30 20:42:15
PHP
yazhog, 2017-10-30 20:42:15

How to reduce memory consumption of PHP daemons?

On a virtual server (2 cores, 4GB of RAM, CentOS 7), about 100 PHP daemons are running, each of which, as I understand it, takes about 500 MB of memory.
Daemons use several libraries, but they are not that heavy.
Is there any solution to this problem?
59f763ccc3caf566179819.png

Answer the question

In order to leave comments, you need to log in

5 answer(s)
A
Alexander Taratin, 2017-10-30
@yazhog

https://cristian-radulescu.ro/article/php-cli-incr...

D
D3lphi, 2017-10-30
@D3lphi

Is there any solution to this problem?

Don't write PHP daemons.

S
synapse_people, 2017-10-30
@synapse_people

there most likely a fork is used and the shared memory
500 * 100 is more than 4GB, and does not fall = everything is ok

P
Puma Thailand, 2017-10-31
@opium

It also says that they occupy one percent, which is 4 megabytes, where did you get 500 from?

P
Pavel Belyaev, 2017-12-22
@PavelBelyaev

I made demons in PHP, they eat quite well, you need to take care of cleaning up the excess!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question