Hello @reflexmania,
First, I would recommend you to check this guide:
https://docs.bitnami.com/aws/faq/troubleshooting/troubleshoot-server-performance/
I can see this:
-----------------------------------
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:
27944
12751
6828
2779
2420
1891
1369
1287
1118
965
Maybe some of those IPs are suspicious for you. Check this guide if you would like to block some of them:
https://docs.bitnami.com/aws/faq/configuration/block-suspicious-ip/
It seems php-fpm is consuming all the cpu:
-----------------------------------
Check CPU usage for current processes
-----------------------------------
Running: ps -e -o pcpu,nice,state,cputime,args --sort -pcpu | awk '{print $1,$2,$3,$4,$5}'
In: /opt/bitnami
Output:
%CPU NI S TIME COMMAND
45.8 0 S 00:01:20 /opt/bitnami/bnsupport-tool
35.9 0 R 00:01:46 php-fpm:
34.2 0 R 00:01:28 php-fpm:
31.6 0 R 00:01:22 php-fpm:
30.4 0 R 00:01:00 php-fpm:
30.1 0 R 00:00:58 php-fpm:
This previous answer also may help.
https://community.bitnami.com/t/apache-php-fpm-one-process-takes-upto-140-mb-ram-memory/70495/4?u=davidg
Regards