Website getting timed out error and very slow

0

My wordpress website hosted in lightsail, but website very frequently website getting timed out error and its also very slow after some time getting back.

asked 2 years ago346 views
3 Answers
0

Hi,

Most probably your issue is related to how much resources your VM has.

It's recommended to run WordPress to have, at least:

  • 1vCPU
  • 512MB of RAM

But the catch is that this is only for WordPress, so you will need to add the MySQL requirements so I wouldn't deploy WordPress in less than 1GB of RAM if I'm managing all components.

answered 2 years ago
0

Hello! Please do the following to troubleshoot any issues:

Check Server Resources: Ensure sufficient resources and consider upgrading if needed. To do this:

  1. Log in to your lightSail account.
  2. On your instances tab, select your lightSail instance.
  3. Here you can check the CPU utilization and memory utilization graphs to see if any servers are being pushed to the limit during peak times.
  4. If they are, you can upgrade to an instance in a higher tier.

Use Caching: Implement caching to reduce server load and speed up the website. Please refer to the following documentation for information regarding caching on wordpress:

https://wordpress.org/documentation/article/optimization-caching/

Utilizing CDN: Are you currently using Amazon Lightsail content delivery network (CDN) distribution to cache your website or content? Refer to the following documentation to create a distribution to work with wordpress: https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-editing-wp-config-for-distribution

If you are using a load balancer, refer to the following documentation on to fix load balancer issues: https://lightsail.aws.amazon.com/ls/docs/en_us/articles/troubleshooting-lightsail-load-balancer-issues

https://docs.aws.amazon.com/whitepapers/latest/best-practices-wordpress/cloudfront-distribution-creation.html

Optimize Images: Compress and optimize images to enhance performance. Refer to the following documentation for instructions on how to optimize:

https://wordpress.com/support/media/image-optimization/

Review Plugins: Update and optimize plugins, remove unnecessary ones causing issues. Please refer to the following documentation to do this:

https://wordpress.com/go/tutorials/how-to-uninstall-a-wordpress-com-plugin/

Check Error Logs: Identify and resolve underlying issues causing timeouts. Refer to the following documentation for information:

https://wordpress.com/go/tutorials/set-up-wordpress-error-logs/

Check DNS Settings: Ensure correct DNS configuration for your Lightsail instance. Refer to the following documentation how to to configure DNS settings:

https://lightsail.aws.amazon.com/ls/docs/en_us/articles/understanding-dns-in-amazon-lightsail

Please refer to the following documentation to learn more about Lightsail and read about frequently occurring questions:

https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-frequently-asked-questions-faq

profile picture
TJ_K
answered 9 months ago
AWS
SUPPORT ENGINEER
reviewed 9 months ago
0

Lightsail is very unreliable, I'm running two identical lightweight servers on LightSail and EC2, every few months the LightSail server will suddenly slow to a crawl that my website times out. I check the CPU utilization and it's under 1%, the disk usage is extremely low, credits are at a 100%. There's something wrong with the LightSail infrastructure, either some other VM from another user is taking up all the resources and starting the other VM's sharing the hardware or their setup is buggy. The only solution I've found to this is to stop and restart the instance and then it becomes a 100% responsive instantly. My guess is after a stop/start it spins it up on a different underlying hardware. I've never had an issue with the EC2 instance but the Lightsail instance (all of them) like clockwork will slow to a crawl and eventually fail (yup, the alarms go off because it stop responding to Amazon's own monitoring system) and I have to stop/start them again to fix it (or if I leave it for a 12+ hours or a few days, it'll eventually come back online but that's not a solution). Something is VERY VERY broken about Lightsail and Amazon refuses to acknowledge or fix it. I've been reporting this for about 3 years now.

RBoy
answered 7 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions