I’ve been working with our server manager to address recent performance issues, some of which he believes are related to the SimplePress plugin. Some of his questions/concerns follow below. I would greatly appreciate any feedback that I can convey so we can quickly address load spikes that are continuing to cripple our site… thank you in advance for your time and thoughts!
FYI: We are on our own dedicated Linux box with 8 Xeon processors and 8GB RAM, and SQL queries are constantly consuming resources.
SP-Specific Slow Queries
First, we’re seeing a lot of slow queries like the following in our logs:
mysql> show processlist;
+——-+—————-+———–+———————+—————-+——+———————-+—————-+
| Id | User | Host | db | Command | Time | State | Info |
+——-+—————-+———–+———————+—————-+——+———————-+—————-+
| 35996 | tripawds_xxxx | localhost | tripawds_xxxx | Query | 4 | checking permissions | SHOW TABLES LIKE ‘wp_1_sfoptions’ |
| 36001 | tripawds_xxxx | localhost | tripawds_xxxx | Query | 3 | checking permissions | SHOW TABLES LIKE ‘wp_1_sfoptions’ |
| 36003 | tripawds_xxxx | localhost | tripawds_xxxx | Query | 3 | checking permissions | SHOW TABLES LIKE ‘wp_1_sfoptions’ |
| 36018 | tripawds_xxxx | localhost | tripawds_xxxx | Query | 2 | checking permissions | SHOW TABLES LIKE ‘wp_1_sfoptions’ |
I’m trying to determine if these are legitimate queries or rogue db scans, and our server manager suggests they may be “poorly written queries”.
Database Engine Optimization
We are currently running MySQL v. 5.1 and are considering upgrading to 5.5. The default db engine for for 5.5 is InnoDB and we are considering converting our database from MyISAM.
What ramifications are there, if any, on SimplePress by either upgrading to MySQL and/or converting db engine to InnoDB? Or, are there any recommended tweaks to the current MyISAM db?
MySQL and Apache Config Tweaks?
Our server manager has been “tweaking” the MySQL and Apache configurations with a tedious trial and error approach to try and address load spikes caused by queries and http requests. Any known recommendations for MySQL and/or Apache optimization are greatly appreciated.