Question

Web app performance

I recently upgraded my droplet from 2 processors and 4gb memory to 4 processors and 8gb memory and now I notice that my application is running slower than before. What could be the cause of this decrease in performance?


Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

KFSys
Site Moderator
Site Moderator badge
July 5, 2024

Heya,

It’s not just about updating your Droplet, you’ll need to optimize both the Droplet and the App.

As Bobby has mentioned, it would be a good idea to check the other question as there it has been explained more in depth what you can further do to make your app smoother and faster.

Bobby Iliev
Site Moderator
Site Moderator badge
July 4, 2024

Hi there,

I recently had a similar discussion about a Laravel app here:

https://www.digitalocean.com/community/questions/why-is-my-new-scaled-droplet-16gb-ram-8-vcpus-is-4-times-slower-than-the-old-one

In general, scaling up your Droplet should generally result in better performance. However in some cases, right after a restart of your server, all of the cache would have been cleared, which could result in a temporary poor performance while all the cache rebuilds.

Can you share here a bit more insights on the following:

  • How exactly are you measuring the performance?
  • What is your exact resource utilization? Sometimes the bottleneck could be the application itself rather than the size of the server.
  • What is your exact tech stack? In most cases, it could be just a matter of tweaking a specific service, like MySQL for example.
  • Is your new Droplet in the same region as the old one?
  • Is your new Droplet is on a shared CPU plan compared to a dedicated CPU plan of your old droplet?

The more information that you could share the better.

But in general, I would recommend checking your resource utilization and see what processes are utilizing the most resources:

https://www.digitalocean.com/community/questions/how-to-find-the-processes-that-are-consuming-the-most-server-resources

That way you could pin point if the problem is caused by a specific process or service.

Also, if you are using MySQL follow the steps here on how to tweak it for better performance:

https://www.digitalocean.com/community/questions/how-to-tweak-mysql-mariadb-configuration-for-increased-performance-and-stability

- Bobby

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Featured on Community

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more