bitnami / vms

Bitnami VMs
https://bitnami.com
Other
203 stars 43 forks source link

Lamp website running very slow #1594

Closed vasundharak closed 1 week ago

vasundharak commented 1 month ago

Platform

AWS

bndiagnostic ID know more about bndiagnostic ID

.

bndiagnostic output

✓ Database: No issues found ? Apache: Found possible issues ✓ Resources: No issues found

1) Found recent error messages in the Apache error log.

[Tue Jul 16 05:38:21.593514 2024] [proxy_fcgi:error] [pid 28242:tid 139874334111488] [client 106.192.10.84:28309]
 AH01071: Got error 'PHP message: PHP Notice:  Undefined index: txtId in /opt/bitnami/apache2/htdocs/eschoolexper
t.com/apppayment/standard/index.php on line 107
'

Please check the following guide to troubleshoot server issues:

https://docs.bitnami.com/general/apps/wordpress/troubleshooting/debug-errors-apache/

bndiagnostic was not useful. Could you please tell us why?

Not related to my issue

Describe your issue as much as you can

The website is taking a lot of time to login and load the pages. The cpu usage is sometimes 200% image

krina234pestro commented 1 month ago

Hello,

Bitnami Troubleshooting might not address your specific problem directly, but it’s a good resource for broader troubleshooting.

Best Regard

Vanilla Visa gift cards

vasundharak commented 1 month ago

Hello,

Bitnami Troubleshooting might not address your specific problem directly, but it’s a good resource for broader troubleshooting.

Best Regard

I tried but still the website is slow.

jotamartos commented 1 month ago

[Tue Jul 16 05:38:21.593514 2024] [proxy_fcgi:error] [pid 28242:tid 139874334111488] [client 106.192.10.84:28309] AH01071: Got error 'PHP message: PHP Notice: Undefined index: txtId in /opt/bitnami/apache2/htdocs/eschoolexper t.com/apppayment/standard/index.php on line 107

PHP errors and logging are probably the root cause of the performance issue. Could you please take a look at the errors you see in the Apache's log? Those errors are related to the application you deployed on top of the Bitnami LAMP solution so we can't help you with that. You will need to review the upstream documentation of the site you deployed to get more information about how to solve them.

vasundharak commented 1 month ago

I cross checked, But this is not the issue

jotamartos commented 1 month ago

You can take a look at the PHP-FPM log (/opt/bitnami/php folder) and try increasing the resources PHP-FPM uses in case it's reaching the limits (/opt/bitnami/php/etc/memory.conf file).

You can also investigate if there is any bot/attacker accessing your site by taking a look at this guide

https://docs.bitnami.com/general/infrastructure/lamp/troubleshooting/deny-connections-bots-apache/

Apart from that, you will need to continue monitoring your deployment. As I mentioned above, you deployed a custom app and you'll also need to review its code to know if it's an app-related issue.

github-actions[bot] commented 2 weeks ago

This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.

github-actions[bot] commented 1 week ago

Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.