V
V
VANY2016-07-16 01:59:06
Swap
VANY, 2016-07-16 01:59:06

Memory on VPS. How to understand who eats and how to limit consumption?

Hello.
There is a VPS server on CentOS 6.7, VestaCP, 3 sites on Wordpress (one of them is a multisite, but everything is cached there).
And so the problem - sooner or later the server dials the swap to the maximum and goes offline (the hoster cuts it off).
What to do?
0dd94c74a5b44cbf80a034bd7877753a.png

Answer the question

In order to leave comments, you need to log in

3 answer(s)
L
Lindon_cano, 2016-07-16
@vanyproduction

1. Refuse Apache, you don't need it, use nginx+php-fpm
2. Refuse malicious software called VestaCP
3. See spamd from SpamAssassin there? Why is he there at all? Here you also pass it.
4. Disable swap altogether.
5. Set up OOM-killer

P
Puma Thailand, 2016-07-16
@opium

cut apache workers
cut mysql memory consumption
turn off swap if there is enough memory

S
Sergey, 2016-07-21
@sokolovsv

Recently, I encountered this myself on West.
this article helped https://habrahabr.ru/post/242011/ , so far only regarding Prefork.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question