I'm running a Debian 11 Server with an Apache 2.4.56 server that only serves to redirect URLs to a memos docker container and the element frontend of my matrix instancee.
Unfortunately, the server becomes unresponsive for 20-30 minutes several times per day. This is not load-related, both CPU and RAM never exceeded 25% usage. (It also serves less than a dozen users, and they do not use it frequently.)
When this happens, I can still ssh into the system and restart apache, after which everything is fine for a while again. This is why I heavily suspect that apache is at fault.
My questions are:
- How do I investigate this?
- What logs could I be having a look at, and what would I be looking for?
- Are there any tests I should run when this happens the next time?
UPDATE: Unfortunately I did not determine the exact cause of this. However, I did switch to nginx and have not had any trouble since. It is possible that apache was simply too much for my server.