Search results: mysql

Tuning MySQL: my.cnf, avoid this common pitfall!

Caution: Don’t overwrite my.cnf all at once. Backup data and config, make one or two changes per restart, test extensively. It took me some time to decide the title for this article. MariaDB has been fast replacing MySQL as a growing number of Linux distributions now default to MariaDB over MySQL. MariaDB is an enhanced drop-in replacement […]

MySQL Query Cache for Performance, Avoid This When Tuning

Update: MySQL query cache is deprecated as of MySQL 5.7.20, and is removed in MySQL 8.0. – mysql.com One of the most misconfigured MySQL performance features, is MySQL query_cache_size. This post references a web server with 32 gigabytes of RAM where the existing config had MySQL’s query cache size set incorrectly to 4 gigabytes. The thought behind it seemed […]

MySQL Performance: Stop hoarding. Drop unused MySQL databases

Last year, I was assisting a new client in addressing MySQL performance issues. There were several areas where MySQL performance issues were addressed. One issue overlooked for several years prior to our communications, was that of keeping around unused databases. Over 15GB of unused MySQL data – a mix of MyISAM and Innodb tables – […]

MySQL Performance Tuning: Tips, Scripts and Tools

With MySQL, common configuration mistakes can cause serious performance problems. In fact, if you mis-configure just one of the many config parameters, it can cripple performance! (see examples) Of course, the performance of MySQL is often tied greatly to the efficiency of your MySQL queries. It’s important to ensure that your performance issues are not […]

LEMP Raspberry Pi 2 Web Server – Arch Linux, Nginx, MariaDB (MySQL) & PHP

Download the Latest LEMP Raspberry Pi 2 Web Server Image To Do: – Update my.cnf for RPi2 (1G of memory) and enable InnoDB by default. – Fix broken PHP modules. (gd, imap and mcrypt) Change log 09-16-2015 – Fixed sshd root access and enabled autostart of sshd on boot. 09-12-2015 – Tested image on 3 different Raspberry […]

Download LEMP for Raspberry Pi: Nginx + MariaDB (MySQL) + PHP

Download latest image: https://sourceforge.net/projects/lemp-raspberry-pi/files/latest/download Change log 07-16-2014 – After today’s changes RAM usage on first boot is down to <100mb. 07-16-2014 – Set most logs to save to memory instead of SD card. (up to 10M or 1 day max) 07-16-2014 – Reduced system log level from “info” to “warning”. Reduce SD contention. 07-16-2014 – Uninstalled ntpd daemon. Replaced […]

Free Nginx (LEMP) AMI – CentOS, Nginx, MySQL & PHP-FPM

NOTE: I’ve moved all of my web sites from AWS. Also, this Free Nginx AMI is no longer supported and has been merged into Nginx’s official AMI. For most, there are better hosting options available in terms of performance & cost. Ask me about StackLinux SSD hosting. This Amazon EC2 AMI includes the latest Amazon Linux (Centos), […]

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 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 […]