MySQL Forums
Forum List  »  Performance

Re: Server just hanging (Copying to tmp table)
Posted by: Dmitriy Kropivnitskiy
Date: January 26, 2006 12:38PM

I just want to report that I am having exactly the same problem (tables stuck in the "Copying to tmp table" position. I am running MySQL 5.0.18 on Debian linux (testing branch). I have read this thread, and I see you haven't found a solution yet (if you did PLEASE!!! tell me). The queries I have are SELECTs with UNION. I didn't yet try to flush tables and I do have a hard limit of 1024 open files set (trying to find where is it getting set to change it). On of the things that seem to be prolonging the life of my server so far is the fact that I brought my settings from

read_rnd_buffer = 16M
sort_buffer = 8M
join_buffer = 8M
read_buffer = 2M
table_cache = 5000

to

read_rnd_buffer = 2M
sort_buffer = 4M
join_buffer = 2M
read_buffer = 2M
table_cache = 512

Now the server has been up (under close to peak loads) for 3 hours and still holding. If it gives out I will try increasing open files ulimit (as well as use lsof to find out if this actually is causing the problem).

Options: ReplyQuote


Subject
Views
Written By
Posted
8259
December 07, 2006 10:30AM
9633
September 23, 2005 01:56AM
4896
October 05, 2005 04:58AM
6095
October 05, 2005 11:49PM
5373
October 06, 2005 01:34AM
6677
October 06, 2005 04:57PM
Re: Server just hanging (Copying to tmp table)
5007
January 26, 2006 12:38PM
6500
January 21, 2008 10:14AM
5843
January 21, 2008 10:53AM
5305
May 19, 2008 09:41AM
5516
February 05, 2008 10:27AM
6061
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.