MySQL Database Performance: Avoid this common mistake

One frequent topic of support request emails I receive is MySQL database performance. Clients complain about MySQL using too much server memory, too many MySQL slow queries, the famous Mysql server has gone away error and many other MySQL performance-related issues. As such, I wanted to share the solution to a common MySQL configuration mistake. […]

How to Kill Inactive SSH Sessions

So, you’ve been disconnected from your server a couple of times, resulting in inactive ssh sessions. You know this because when you use the “w” command, you see something like the following… 22:47:28 up 315 days, 21:09, 2 users, load average: 9.04, 8.17, 7.30 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT root pts/0 ipxxx-xxx-xxx-xxx 23:54 26:40 […]

PHP Monitoring Instrumentation for Laravel Web Artisans

Over the last decade, Laravel has evolved to become an elegant open-source web application framework that’s approachable for beginners and experts alike. There are multiple solutions available to instrument your application on your local dev box, staging, and production, and there are just as many options to monitor these instrumentations. While the Open Telemetry PHP […]

How to diagnose OOM errors on Linux systems

Out-of-memory (OOM) errors take place when the Linux kernel can’t provide enough memory to run all of its user-space processes, causing at least one process to exit without warning. Without a comprehensive monitoring solution, OOM errors can be tricky to diagnose. In this post, you will learn how to diagnose OOM errors in Linux kernels […]

Linux benchmark scripts and tools

This list of Linux benchmark scripts and tools should prove helpful for quick performance checks of CPU, storage, memory, and network on Linux servers and VPS. Check each script before running from the command line. Most of these scripts will benchmark the CPU, memory, storage, and network. In most cases, the CPU Model, frequency, number […]

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

Sept 27th, 2021: Added link to a great list of command-line benckmark scripts. June 17th, 2019: Added instructions for network speed test using speedtest-cli script. Nov 2nd, 2016: Included quick dd commands to check cached vs. uncached read performance. This article will highlight using the ‘dd’ Unix command for a quick benchmark of your Linux […]

atop – For Linux server performance analysis

We’re all familiar with top, a real-time system monitor. Some prefer htop and previously, I mentioned iotop for use with storage read/write monitoring. Let’s looks at another popular tool for Linux server performance analysis: atop.   Advantages of atop Atop is an ASCII full-screen performance monitor which can log and report the activity of all server processes. […]

htop: Quick Guide & Customization

htop is an interactive system monitor, but also a process-viewer, process-manager, strace tool and more. Sysadmins may opt to use htop when Unix top does not provide enough information about system processes. htop uses a cursor-controlled interface for sending signals to processes. One example where this comes in handy is: you don’t have to type […]

Linux Commands frequently used by Linux Sysadmins – Part 5

This is the final part of the five-part series entitled: Linux Commands frequently used by Linux Sysadmins. So far, we’ve covered over 50  commands regularly used by Linux sysadmins and power users. Refer to part 1, part 2, part 3, and part 4. This article will look into another set of commands and command-line tools […]

Linux Commands frequently used by Linux Sysadmins – Part 4

We are now up to part 4 of this five-part series entitled: Linux Commands frequently used by Linux Sysadmins. By the end of this series, we will cover at least 50 commands. Thus far, we touched on around 60 commands often used by Linux Sysadmins and power users. Refer also to part 1, part 2, […]