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


Subject
Views
Written By
Posted
8261
December 07, 2006 10:30AM
Re: Server just hanging (Copying to tmp table)
17678
August 31, 2005 07:15PM
9637
September 23, 2005 01:56AM
4900
October 05, 2005 04:58AM
6101
October 05, 2005 11:49PM
5373
October 06, 2005 01:34AM
6678
October 06, 2005 04:57PM
6503
January 21, 2008 10:14AM
5844
January 21, 2008 10:53AM
5307
May 19, 2008 09:41AM
5517
February 05, 2008 10:27AM
6064
March 12, 2008 08:37AM
6117
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.