Your Web Host Doesn’t Want You To Read This: Benchmark Your VPS

June 17th 2019: Added instructions for network speed test using speedtest-cli script. Oct 31st 2017: Also see this list of command line scripts. Nov 2nd 2016: Included quick dd commands to check cached vs uncached disk read performance. This article will highlight using the ‘dd’ Unix command for a quick benchmark of your Linux server or VPS. […]

“MySQL server has gone away” error – Solution(s)

MySQL server has gone away error means that MySQL server (mysqld) timed out and closed the connection. By default, MySQL will close connections after eight hours (28800 seconds) if nothing happens. However, in some cases your web host, DBA or app developer may have decreased this timeout setting, discussed below. MySQL server has gone away, can be […]

Replacing getty with ngetty on Debian

This article was originally posted back in October 2013. As such, I’ve updated it, since the current Debian release, Debian 9, no longer uses init, but instead uses systemd. Systemd is a system and service manager for Linux. It is the default init system for Debian since Debian 8 (Jessie).  ngetty or mingetty may be useful for […]

20 Top Server Monitoring & Application Performance Monitoring Solutions

UPDATE: 50 Top Server Monitoring & Application Performance Monitoring (APM) Solutions Last Update – Fixed broken links. (including defunct, mergers, acquisitions, or changed links) Back in September I wrote about an article than touched on the subject of server performance monitoring.  Then just last month a LinkedIn connection asked: “I am using New Relic to monitor my cloud servers […]

PHP Performance: Additional CPU cores or Faster CPU cores

  Some time ago I received an email from a client experiencing slow performance issues with a LEMP (Linux, Nginx, MySQL and PHP web server). During a full audit, I found that the server’s load average was pretty low (see above screenshot). However, the website was indeed very slow. There were some misconfigurations, but one […]

PHP-FPM tuning: Using ‘pm static’ for max performance

Lets take a very quick look at how best to setup PHP-FPM for high throughput, low latency and a more stable use of CPU and memory. By default, most setups have PHP-FPM’s PM (process manager) string set to dynamic and there’s also the common advice to use ondemand if you suffer from available memory issues. However, lets compare the two management […]

Linux Performance: Why You Should Almost Always Add Swap Space

We know that using swap space instead of RAM (memory) can severely slow down the performance of Linux. So then, one might ask, since I have more than enough memory available, wouldn’t it better to remove swap space completely? The short answer is, No. There are performance benefits when swap is enabled, even when you have more […]

Linux benchmark scripts and tools

This list of Linux benchmark scripts and tools should prove useful for quick performance check of CPU, storage, memory and network on Linux servers and VPS. Recently, I used a Linux benchmark script which was no longer maintained by the. As a result, I compiled this quick list of scripts and tools for Linux benchmarking. […]

Linux server performance: Is disk I/O slowing your application?

If your Linux server is bogged down, your first step is often to use the TOP command in terminal to check load averages and wisely so. However, there are times when TOP shows very high load averages even with low cpu ‘us’ (user) and high cpu ‘id’ (idle) percentages. This is the case in the video below, load averages […]