Home » Performance » MySQL » Strange MySQL behavior
Strange MySQL behavior [message #2067] Tue, 16 October 2007 03:42 Go to previous message
AlexN  is currently offline AlexN
Messages: 20
Registered: October 2007
Location: Moscow,Russia
Junior Member
Some days ago I encountered with a strange problem. MySQL and Apache resides both on the same server. In attempt to optimize MySQL someone increased the key buffer too much. Also the number of temp tables has been set too large.

At first it worked fine, but when the server load increased, Apache used some memory, while MySQL started to create temp tables on disk instead of memory. Queries took more time to complete, and new connections continued to arrive. In less than 20 minutes the whole server nearly stopped. There were about 20 running processes, all in the state "Copying to temp table".

The question is: how to avoid such situation ? In, for example, MSSQL this scenario is hardly possible.

Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:IS NOT NULL condition - MySQL doesn't use index
Next Topic:Query tuning - Performance Issue
Goto Forum:

  


Current Time: Thu Jul 9 20:23:30 EDT 2009

Total time taken to generate the page: 0.00966 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 2.7.7.
Copyright ©2001-2007 FUD Forum Bulletin Board Software

MySQL is a trademark of Sun Microsystems.
InnoDB is a trademark of Oracle Corp.

Percona Performance Forums are a service of Percona, Inc.
Not affiliated with Sun Microsystems or Oracle Corp.