End Point Corporation
Services   |   Our Clients   |   Interchange   |   Ruby on Rails   |   PostgreSQL   |   Hosting   |   About Us   |   Contact
Tech News
End Point Home > Tech News
Tech News

Trouble with MySQL 4.1 under heavy load
by Jon Jensen
June 16, 2006

Two of our customers running high-traffic websites backed by MySQL (one using PHP, the other using Perl and Interchange) recently ran into serious problems with their MySQL server getting extremely slow or ceasing to respond altogether. In both cases the problem happened under heavy load, with MySQL 4.1 running on Red Hat Enterprise Linux 4 (i386) with the MySQL RPMs built by Red Hat, installed from Red Hat Network. In both cases, we were unable to find any log output or traffic patterns that indicated the cause of the problem.

When this happened on the first server, we tried numerous MySQL configuration changes, and wrote scripts to monitor the MySQL daemon and restart it when it failed, to give us time to investigate the problem fully. But eventually, out of expediency we simply upgraded to MySQL 5.0 with RPMs provided by the creators of MySQL. Doing so immediately fixed the problem. About a month later when another client encountered the same problem, we went straight for the upgrade path and it fixed things there too.

We haven't had trouble like this with MySQL before, from any source. I filed a bug report in Red Hat's bug tracker and Tom Lane quickly pointed me to another similar bug.

Apparently the latest RHN update of MySQL 4.1.20 came just a little too late for our first encounter with this problem, and MySQL 5.0.21 that we upgraded to had the fix in it. It sounds like using the latest MySQL for RHEL 4 from RHN now should work. If you're seeing similar problems, we hope our experience will be of use to you.

At least we can report that the upgrades to MySQL 5.0 were trouble-free. Using nonstandard MySQL client libraries requires you to build new php-mysql, perl-DBD-MySQL, and other dependent RPMs to match, but that's not too hard and is worth the effort if you want to use features from the newer version.

Recent Tech News Features
Recent Tech News Features
DBD::Pg 2.0.0 released
Better Git it in Your Soul
Bucardo: Replication for PostgreSQL
RailsConf 2007 Conference Report
Get Out of Technical Debt Now!
Red Hat Enterprise Linux 4 Security Report
Evangelizing Test-Driven Development
USPS changes the Web Tools Rate Calculator API
New edition of The Book of JavaScript reviewed
Interchange 5.4.2 released
Greg Sabino Mullane's PostgreSQL tips and how-to articles
Hardware Monitoring with Nagios on OpenBSD
YAPC::NA 2006 Conference Report
Practices of an Agile Developer Reviewed
Trouble with MySQL 4.1 under heavy load
Interchange 5.4.1 released
PostgreSQL Supports Two-Phase Commit
DBD::Pg 1.48 Released
Interchange 5.4 Released
PostgreSQL 8.1 Shows Database Progress
Red Hat Enterprise Linux 3 Update 3 Released
© 2008 End Point Corporation. 920 Broadway Suite 701, New York, NY 10010 USA | Tel +1 212-929-6923 or 1-888-351-3239 | Fax +1 212-929-6927