V
V
vldud2018-03-23 10:18:55
Apache HTTP Server
vldud, 2018-03-23 10:18:55

Apache eats up all RAM, how to debug?

Good afternoon. There is a server with 8Gb of RAM. At some point, the RAM runs out and the swap area is clogged. Apparently, apache is to blame, the situation is temporarily treated by restarting it, munin shows the following picture:
5ab4a9153ed54130849391.png5ab4a91ede321566665039.png
How to treat / debug? I would like to get advice both on finding the cause of this behavior, and on the configuration parameters that are paid attention to in such cases (well, except for the obvious MaxClients).

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir, 2018-03-23
@vldud

1 see which MPM (Multi-Processing Module) you are using in Apache.
2 read the documentation for setting up the MPM you have.
3, depending on the MPM, edit the settings MaxRequestsPerChild MinSpareServers MaxSpareServers MaxRequestsPerChild and so on.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question