MySQL Forums
Forum List  »  Performance

Re: Server just hanging (Copying to tmp table)
Posted by: Daniel Nichter
Date: August 31, 2005 07:15PM

An interesting idea. Though, if open files were the problem, you'd think the status of the thread would be "Copying to tmp table on disk" instead. Perhaps MySQL is switching from a memory table to a disk table, can't get the file handle, then freezes and so the thread status doesn't get updated. For this to be the case, table_cache would have to be set to ulimit -n for the system and be at 100% usage. In my case it was I believe (I know it was set to 1028 for some weird reason, and I know the server hit 100% table cache usage). Thomas and Shawn: Is this true for your servers too?

In Thomas's last post of a mysqlreport report, his table_cache was only 1,000 though, and the problem still occurred (Open 1.00k of 1000 %Cache: 100.00); that would seem to dismiss or change the theory. Perhaps it's just a general problem with 100% table cache usage and temp tables, though I don't see how the two are related if not by open file limits and disk tmp tables.

Options: ReplyQuote

Written By
December 07, 2006 10:30AM
Re: Server just hanging (Copying to tmp table)
August 31, 2005 07:15PM
September 23, 2005 01:56AM
October 05, 2005 04:58AM
October 05, 2005 11:49PM
October 06, 2005 01:34AM
October 06, 2005 04:57PM
January 21, 2008 10:14AM
January 21, 2008 10:53AM
May 19, 2008 09:41AM
February 05, 2008 10:27AM
March 12, 2008 08:37AM
November 14, 2008 12:31AM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.