By using AWS re:Post, you agree to the Terms of Use

WordPress Running Slow For Logged-In Customers


Hey! I recently installed WordPress on Amazon EC2 using the following guide

Now, the issue I'm facing is that the WordPress website runs terribly slow when a customer logs in. It takes 5-6 seconds for him to be redirected to the dashboard.

Surprisingly, the website runs fast for WordPress administrators.

The same version of the website is also hosted on cloudways Vultr server and there the website runs blazing fast for Logged-in users....

I tried to tweak the php-fpm configurations, changed apache MPM from "Prefork" to 'worker" on AWS EC2 but no luck.

Can anyone please help me figure out how can I speed up Apache to run WordPress faster on AWS EC2 as it is running on Cloudways server?


2 Answers

Hello there,

I see that you are experiencing issues with the website load time.

Since this might be caused due to multiple reasons, it is important to narrow down the issue.

First things to check would be the authentication process for your customers. You can review the overall time taken by the authentication process on both Cloudways and EC2.

Then, you can try reviewing the network configuration of both the servers.

It is also important to review the application versions being installed in both servers. Confirm you are using same version of the application on both servers.

Is there any specific AMI you using on EC2 and the instance type also plays a major role. You can try using the AWS Graviton instances for better performance:

If you find that there are issues with the EC2 instance you are using, please feel free to reach out to the support team via Support console and we will investigate the same in detail.

Hope this helps.

Take care and have a great day ahead!

profile picture
answered 4 days ago
  • Thank you so much Harshavardhan for such a detailed answer. I'm using C7.large instance. Upon checking the authentication process, I noticed that my authentication code somehow performs authentication twice on EC2 and just once on Cloudways. Now, that is really strange but that's what I found through the network console. That is exactly why, the loading time of the website is 2X on AWS when the user is logged in.

    Now I'm really confused as to what to do. I really don't understand why same code is showing different behavior on both servers.

    Please take a look at the screenshots. That's a wetransfer link.

    This is what I see in the network console when is user is redirected to the dashboard after authentication. You can see that it shows that jquery runs twice for the website hosted on AWS. Though the code is 100% same as on cloudways.

    I tried talking to AWS support but they always say we can't help. Sorry to say but I'm pretty disappointed with them. I'm on "AWS Developer Support" plan but I think that it's just a waste of money.

    Please let me know if you could help.



Hey there!

Trying to debug website performance issues can be fairly difficult due to the number of possible bottlenecks and/or problems that can arise. Have you done any performance profiling comparison between the Vultr server and EC2? Usually this can give you a decent place to start your troubleshooting.

A good tutorial for performance profiling can be found here:

profile picture
answered 5 days 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