How to optimize server performance - Rocketeers app

  [ Rocketeers ](/)   

[Login](https://rocketeersapp.com/login) 

 On this page

 Knowledge
---------

How to optimize server performance
==================================

### [\#Performance](https://rocketeersapp.com/knowledge/performance)

Server performance is determinded by a lot of moving parts inside your server. Lets dig in on every aspect that can make a big difference.

 Published by [Mark van Eijk](https://rocketeersapp.com/author/mark-van-eijk) on August 16, 2022 
Updated on August 17, 2022 · 1 minute read

1. [Disable unnecessary and unused PHP versions (FPM pools)](#content-disable-unnecessary-and-unused-php-versions-fpm-pools)
2. [Make sure enough diskspace is available](#content-make-sure-enough-diskspace-is-available)
3. [Add Swap Space to your server](#content-add-swap-space-to-your-server)

**This article will be continuously updated with new content.**

[\#](#content-disable-unnecessary-and-unused-php-versions-fpm-pools "Permalink")Disable unnecessary and unused PHP versions (FPM pools)
---------------------------------------------------------------------------------------------------------------------------------------

When running PHP applications or websites it's a common mistake to keep unused PHP versions running on your server. Mostly this happens when you upgrade the default PHP server version or add a new PHP version to run your application on. In the background these processes do not much harm, but they always will be occupying precious server memory.

[Disable unnecessary and unused PHP versions (FPM pools)](/disable-unused-php-fpm-pools)

[\#](#content-make-sure-enough-diskspace-is-available "Permalink")Make sure enough diskspace is available
---------------------------------------------------------------------------------------------------------

When a server does not have enough (a few GB's) of diskspace available, it cannot run within optimal conditions. Because of this, as a treshold make sure there is more than 20% available of the total diskspace capacity. To make sure we have enough diskspace available, there are some commands that can help you with this.

[Reclaim diskspace on Ubuntu server](/reclaim-diskspace-on-ubuntu)

[\#](#content-add-swap-space-to-your-server "Permalink")Add Swap Space to your server
-------------------------------------------------------------------------------------

To increase performance you need to make sure your server has enough memory to make sure it can execute every task. While swap space is slower than usual RAM memory, it is recommended to add at least some (1-2GB) swap space to keep the server running optimal in every situation.

[Learn how to add Swap Space to Ubuntu servers](/add-swap-space-on-ubuntu)

### Subscribe to our newsletter

Do you want to receive regular updates with fresh and exclusive content to learn more about web development, hosting, security and performance? Subscribe now!

  Fill in your email address to receive updates  Subscribe 

#### More in [\#Performance](https://rocketeersapp.com/knowledge/performance)

- [How to optimize website performance](https://rocketeersapp.com/knowledge/optimize-website-performance)
- [How to measure TTFB (Time To First Byte)](https://rocketeersapp.com/knowledge/ttfb)
- [How to enable and configure OPcache for faster PHP](https://rocketeersapp.com/knowledge/enable-opcache-php)
- [A complete guide to caching in Laravel](https://rocketeersapp.com/knowledge/laravel-cache)
- [How database indexing works (with MySQL examples)](https://rocketeersapp.com/knowledge/database-indexing)
- [Brotli vs Gzip: which compression should you use?](https://rocketeersapp.com/knowledge/brotli-vs-gzip)

 [View all 13 articles →](https://rocketeersapp.com/knowledge/performance)
