Hi @shiv.c
Thanks for using Bitnami Magento!
We are facing an issue with our Bitnami Magento instance where we have noticed that the php-fpm process has 100% CPU usage for extended periods of time. This happens very frequently and unpredictably and slows down the website to an extent where it is unusable.
I have been checking the report generated by the bnsupport-tool
and, at that specific moment, php-fpm
processes were not behaving abnormally.
-----------------------------------
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
%CPU NI S TIME COMMAND
4.1 0 S 00:39:26 /opt/bitnami/mysql/bin/mysqld.bin
1.6 0 S 00:15:48 htop
1.4 0 S 00:00:33 php-fpm:
1.3 0 S 00:12:59 php-fpm:
1.0 0 S 00:09:07 php-fpm:
0.6 0 S 00:06:13 php-fpm:
0.6 0 S 00:05:49 php-fpm:
0.6 0 S 00:06:13 php-fpm:
0.6 0 S 00:05:57 php-fpm:
0.6 0 S 00:06:00 php-fpm:
...
Taking a look at your Apache access_log
entries, I can see an IP address that is performing ~10% of request to the server:
-----------------------------------
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:
8295 <--- This here
3370
1754
1313
1113
1051
971
935
883
814
Could you please run the following command and confirm that this is a known IP address?
$ tail -n 100000 access_log | awk '{print $1}' | sort | uniq -c | sort -nr | head -n 10
We are also having performance issues on our WordPress
As this another asset, may you open a new issue for that? We will be more than happy to help you there as well!
We have run the bnsupport-tool on both sites but the tool was unable to upload the results, I have therefore uploaded them to google drive and sent the link as a reply on the welcome private message with beltran.
Thanks! You can also private message any of the members of the team.
Best regards,
Jose Antonio Carmona
Was my answer helpful? Click on 