Избегайте катастрофического отказа, когда процесс выделит слишком много памяти?

Спам ссылающегося домена - то, куда спаммер отправляет поддельные данные Ссылающегося домена, чтобы видеть, заканчивается ли это в разделе ссылающихся доменов Ваших общедоступных веб-страниц, показывающих Ваши стандартные исследования блога (например, "Главные Ссылающиеся домены"). Если поддельный ссылающийся домен действительно становится видимым, спаммер знают, что они могут использовать эту технику для размещения ссылок спама в посетителей порождения веб-сайта сайта для наблюдения ссылок на их сайты спама.

1
задан 13 April 2017 в 15:14
2 ответа

If you want your server to still be responsive, you need to do your best to avoid swapping. However, reducing the swap amount or disabling it will not solve your problem.

You need either to control your jobs memory usage or install more memory ships in the server machine.

You can try cgroups (control groups) to control your processes CPU and memory usage.

2
ответ дан 3 December 2019 в 19:00

Do you have the oom logs in /var/log/messages.

I would suggest to check the /proc/meminfo and monitor it at peak usage hours. The Committed_AS parameter shows how much memory will be needed if the kernel allows all the memory requests by all processes at that time. If that value is below free memory, then there is potential chance that the system will eventually go OOM.

As always, fit the workload that the hardware can accommodate. It is best to either increase RAM or reduce workload.

1
ответ дан 3 December 2019 в 19:00

Теги

Похожие вопросы