Wordpress down frequently

Keywords: WordPress - AWS - Technical issue - Other
bnsupport ID: 4cf5584b-e78e-b324-56cc-43f031cff006
Description:
Hello, I have issue with my Wordpress Website hosting on AWS.
It keeps shutting down with error 504. I restarted the server but it works for few minutes and then shut down again.
I installed Bitnami Support Tool and the code is: 4cf5584b-e78e-b324-56cc-43f031cff006
Can you please help me to check what was the issue?
Thank you!

Hello @joeluong

It seems that your machine is using swap:

-----------------------------------
Display amount of free and used memory in the system
-----------------------------------
Running: free -m
In: /opt/bitnami

Output:

              total        used        free      shared  buff/cache   available
Mem:            990         696          62          81         232          51
Swap:           634         117         517

Note that WordPress recommends at least 700M of memory (you have 990, but it may need more depending on your case)

You could try to increase your machine type if you face performance issues. This guide explains the process
https://docs.bitnami.com/aws/faq/administration/change-server-type/

Let me share with you our troubleshooting documentation:
https://docs.bitnami.com/aws/how-to/troubleshoot-wordpress-issues/
https://docs.bitnami.com/aws/faq/troubleshooting/troubleshoot-server-performance/

We also have a guide to optimize Wordpress:
https://docs.bitnami.com/aws/apps/wordpress/troubleshooting/optimize-bitnami-wordpress/

Apart from that, checking the information of the Bitnami support tool, I can see that there are a lot of requests from the same IPs, can you check that?

-----------------------------------
Check performance issues: Count number of requests for the 10 most active IP addresses in the last 100.000 requests
-----------------------------------
Running: tail -n 100000 access_log | awk '{print $1}' | sort | uniq -c | sort -nr | head -n 10 | awk '{print $1}'
In: /opt/bitnami/apache2/logs/

Output:

47381
44196
7851
100
68
57
28
12
11
11

The support tool doesn’t get the IPs information but you can obtain them by running this command

cd /opt/bitnami/apache2/logs/
tail -n 100000 access_log | awk '{print $1}' | sort | uniq -c | sort -nr | head -n 10

I hope it helps

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.