OK guys, this is where it gets fun…
I’ve worked with our server manager to silence all “gone away” errors. We’ve adjusted MySQL settings, defragmented all tables and confirmed good health of the database. I gave it ample time to confirm there are no longer any communication problems with the db and there are no longer any errors.
I then activated SimplePress while we monitored the MySQL process list and we immediately watched loads spiral out of control with constant SHOW TABLES LIKE ‘wp_1_sferrorlog’ queries:
| 5384 | root | localhost | | Query | 0 | | show processlist |
| 5521 | tripawds_wpmu1 | localhost | tripawds_wpmudb0709 | Query | 1 | checking permissions | SHOW TABLES LIKE 'wp_1_sferrorlog' |
| 5539 | tripawds_wpmu1 | localhost | tripawds_wpmudb0709 | Query | 1 | checking permissions | SHOW TABLES LIKE 'wp_1_sferrorlog' |
| 5554 | tripawds_wpmu1 | localhost | tripawds_wpmudb0709 | Query | 1 | checking permissions | SHOW TABLES LIKE 'wp_1_sferrorlog' |
| 5558 | tripawds_wpmu1 | localhost | tripawds_wpmudb0709 | Query | 1 | checking permissions | SHOW TABLES LIKE 'wp_1_sferrorlog' |
| 5561 | tripawds_wpmu1 | localhost | tripawds_wpmudb0709 | Query | 1 | checking permissions | SHOW TABLES LIKE 'wp_1_sferrorlog' |
| 5565 | tripawds_wpmu1 | localhost | tripawds_wpmudb0709 | Query | 1 | checking permissions | SHOW TABLES LIKE 'wp_1_sferrorlog' |
| 5573 | tripawds_wpmu1 | localhost | tripawds_wpmudb0709 | Query | 1 | checking permissions | SHOW TABLES LIKE 'wp_1_sferrorlog' |
| 5578 | tripawds_wpmu1 | localhost | tripawds_wpmudb0709 | Query | 1 | checking permissions | SHOW TABLES LIKE 'wp_1_sferrorlog' |
| 5580 | tripawds_wpmu1 | localhost | tripawds_wpmudb0709 | Query | 1 | checking permissions | SHOW TABLES LIKE 'wp_1_sferrorlog' |
| 5582 | tripawds_wpmu1 | localhost | tripawds_wpmudb0709 | Query | 1 | checking permissions | SHOW TABLES LIKE 'wp_1_sferrorlog' |
| 5586 | tripawds_wpmu1 | localhost | tripawds_wpmudb0709 | Query | 1 | checking permissions | SHOW TABLES LIKE 'wp_1_sferrorlog' |
| 5588 | tripawds_wpmu1 | localhost | tripawds_wpmudb0709 | Query | 1 | checking permissions | SHOW TABLES LIKE 'wp_1_sferrorlog' |
| 5589 | tripawds_wpmu1 | localhost | tripawds_wpmudb0709 | Query | 1 | checking permissions | SHOW TABLES LIKE 'wp_1_sferrorlog' |
| 5590 | tripawds_wpmu1 | localhost | tripawds_wpmudb0709 | Query | 1 | checking permissions | SHOW TABLES LIKE 'wp_1_sferrorlog' |
| 5591 | tripawds_wpmu1 | localhost | tripawds_wpmudb0709 | Query | 1 | checking permissions | SHOW TABLES LIKE 'wp_1_sferrorlog' |
| 5592 | tripawds_wpmu1 | localhost | tripawds_wpmudb0709 | Query | 1 | checking permissions | SHOW TABLES LIKE 'wp_1_sferrorlog' |
This is just a small sample of constant entries like this that I was able to capture. The server load spiked to 25+ within a minute. Immediately upon plugin deactivation, the load quickly dropped and stabilized.
I’ve confirmed that all permissions are correct with the db and db user. I also ran another repair and mysqlcheck on the wp_1_sferrorlog table and all appears OK.
Could you please review the table structure and index in the attached screenshot below and advise of anything out of order? If necessary, please provide steps on how I might rebuild this table and its index if that may help.
If you recalll, when we had serious performance issues last summer Andy recommended this hack to comment out a SHOW TABLES LIKE query on the sfoptions table. I wonder if something similar may be going on or you might be able to suggest a similar fix.
One DBA I consulted suggested that SHOW TABLES LIKE may be poor practice, especially when dealing with a db that has thousands of tables like ours. Admittedly this is way over my head, so I’m desperately hoping you may be able to offer further assistance here. Is there any way to just disable the SF error log function to see if the forums will load without spinning the server out of control? Any other suggestions?
Thanks again for any direction. Our forums have now been offline for days and Tripawds members are getting restless.