How to speedup my droplet?

How to speed up my droplet? I subscribe to 4 cores and 8 GB ram version but my droplet is too slow.

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.

Hi @yasminqamar,

I’m just posting the typical issues/resolutions to such cases. They are almost every time connected with two things - Website Optimization and Server/Droplet Optimization.

Let’s start with Server Optimization.

When looking at Server/Droplet Optimization, there are a few necessary services/packages that are universal.

  • The first one would be Server-side caching. Server cache is an umbrella term covering a number of different types of caching. This includes Content Delivery Network (CDN) caching, object caching, and opcode caching. Depending on what you want to achieve you might need one or the other. Usually, though, you can have all 3 types of caching as it shouldn’t interfere with your Website/App. I won’t go into more details about what each caching does as this post will become 3 pages long. There are multiple documents providing services/packages for each of the server-type caching.

  • Next would be using PHP-FPM (if your Website is using PHP of course). PHP-FPM is an efficient method on how to minimize the memory consumption and rise the performance for the Websites with heavy traffic. It is significantly faster than traditional CGI-based methods in multi-user PHP environments.

  • Another solution would be Database Caching. A database cache supplements your primary database by removing unnecessary pressure on it, typically in the form of frequently accessed read data. The cache itself can live in a number of areas including your database, application or as a standalone layer. Usually, for this kind of caching is being used Redis.

  • Apache NPM modules. If you are using Apache, you are using one of three NPM modules. Most certainly if you haven’t configured anything on it and have used the default configuration, you are using NPM_Prefrok which is the most outdated one and thus the slower. I’ll recommend using one of the other two - NPM_Worker and NPM_Event depending on your situation. Again, I would urge you to read more about these 3 and what is applied in which case.

  • Apache Workers. Basically, the Apache workers are equivalent to a room full of seats. These seats are the projection to your website. When someone opens your website, it’s like one person going to this room and sitting on one of the chairs. When the limit is reached, in order for a person to load your website, another one needs to close it. So basically, I’ll suggest increasing that value as well.

Those were the basic optimizations on a server level, let’s start with your Website/App

If you are using a CMS like WordPress, Magento, Joomla, Opencart or anything of the same matter, there will be plugins/addons. These addons can be very powerful if used correctly. The most helpful plugins are:

  • Caching Plugins
  • Image Optimization Plugins
  • Plugins that reduce redirections/requests
  • Plugins that reduce the size of JS and CSS files.
  • More often than not, there are a lot of JS and CSS files that are not being used, removing those should work as well

If you are not using a CMS, you’ll need to try and do what these plugins are doing manually.

Usually, Websites/Apps are slow because of a couple of reasons which range from too many requests or big images to a bunch of unnecessarily big JS or CSS files. Optimizing these whether you are using a Plugin or doing it manually is enough.

I hope this was helpful.

Regards, KFSys

Hello @yasminqamar ,

As a bit of caution, we don’t have access to your Droplet’s internal configuration and are unable to intervene on your behalf. With that in mind, we’re more than happy to provide guidance based on any information that you share with us. For us to best understand the issue that you’re observing, could you share the tool that you’re using to measure network speeds (i.e. speedtest-cli, iperf, etc.). Depending on the tool you may see wildly different results or even results that are not representative of your experience.

Otherwise, the best method for interpreting the slow speeds between your location and your Droplet is with a tool called iperf, using your Droplet as a “server” and your local device as a “client”. Once run, a blob of data will be transferred between the two locations and the average speed observed will be displayed by the program. More on how to run iperf and some considerations for its usage can be found here:

Once recorded, you can then compare this with the expected speeds of the data center that you’re reaching out to by selecting the data center that your Droplet is located in at the following URL and running the speed test:

Should the numbers be quite close, it’s likely that there’s an issue along the route that traffic is taking whether that be a throttled partner or over-saturated link from network flooding. If the Droplet is noticeably lower than the data center, please do share that information with us for further review.

Hope this helps!

Cheers, Sri Charan

Traffic doesn’t understand? I am using droplet for browsing and streaming. Both of them are very slow.