How to optimize server performance - Rocketeers

  [ Rocketeers ](/)   

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

 On this page

 Knowledge
---------

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

### [\#Performance](https://rocketee.rs/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://rocketee.rs/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. Watch what's consuming resources with [top processes by CPU](/top-processes-cpu) and [by memory](/top-processes-memory); Rocketeers can [monitor your sites and servers](/features/monitor-your-sites-and-servers) for you.

[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://rocketee.rs/performance)

- [How to optimize website performance](https://rocketee.rs/optimize-website-performance)
- [How to measure TTFB (Time To First Byte)](https://rocketee.rs/measure-ttfb)
- [A complete guide to caching in Laravel](https://rocketee.rs/laravel-cache)
- [How to improve Laravel performance](https://rocketee.rs/laravel-performance)
- [How to find and optimize slow MySQL queries](https://rocketee.rs/mysql-query-optimization)
- [How database indexing works (with MySQL examples)](https://rocketee.rs/database-indexing)

 [View all 13 articles →](https://rocketee.rs/performance)
