B
B
Bodrosh2020-05-25 14:51:49
linux
Bodrosh, 2020-05-25 14:51:49

How to understand why all the RAM on the VDS is clogged?

I have several sites on the VDS and there is a problem with full clogging of RAM and swap (approximately distributed like this):
1730MB php
983MB apache2 763MB
mysqld
62MB core

memory. Actually, it’s not clear whether the scripts are not optimized by php, or whether unnecessary processes may not end?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
ky0, 2020-05-25
@ky0

Limit the maximum amount of memory and the number of PHP processes, limit the memory available to the database. Change Apache to nginx, does it take a whole gigabyte?

R
Roman Mirilaczvili, 2020-05-25
@2ord

You need to start using tools to monitor and profile the application for memory consumption and performance. For each YAP they are different. Plus there are Linux profiling tools. However, I would advise you to switch to them only after a thorough analysis of the application by means of the language.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question