Re: Server just hanging (Copying to tmp table)
I've been having what appears to be the exact same problem, this morning. It's a relatively moderate traffic DB server. I have 1000 MySQL connections setup on my DB server and the process list was showing 1 query copying to tmp table (for 16834 seconds) and 999 that were locked.
I'm thinking it might be a platform/OS issue because I'm running the same OS and a similar hardware setup. I'm running a dual 2.3Ghz G5 (Xserve) with 5GB of RAM, hardware RAID-5 and Mac OS X Server 10.3.8 with MySQL 4.1.14
This was the status when I reset the server:
Uptime: 209289 Threads: 1000 Questions: 18954914 Slow queries: 6919 Opens: 89696 Flush tables: 1 Open tables: 1912 Queries per second avg: 90.568
The thing that seems odd to be is the Open tables. Seems strange to have 1,912 tables open, when there are only 136 tables actual tables on the server.
Even now it hasn't been up that long since I restarted it, and I'm showing 280 open tables:
Uptime: 6044 Threads: 26 Questions: 1358719 Slow queries: 3 Opens: 330 Flush tables: 1 Open tables: 280 Queries per second avg: 224.805
This has been a problem since it started as a MySQL db server in February, but it's getting worse as it serves more queries (it's to the point that I need to restart MySQL every few days).
Subject
Views
Written By
Posted
27531
August 11, 2005 11:25AM
23637
August 12, 2005 09:07AM
18938
August 12, 2005 01:06PM
18413
August 22, 2005 09:46AM
16512
August 24, 2005 03:27PM
12969
August 24, 2005 04:05PM
13652
August 26, 2005 11:02AM
7434
August 26, 2005 11:05AM
6818
August 26, 2005 11:45AM
6597
August 26, 2005 05:46PM
6860
August 26, 2005 10:34PM
6473
August 25, 2005 01:08PM
5863
August 26, 2005 11:07AM
5668
August 27, 2005 09:09AM
5994
August 29, 2005 11:50AM
5909
August 29, 2005 12:04PM
5271
August 29, 2005 12:55PM
5160
August 29, 2005 05:26PM
5131
August 29, 2005 06:34PM
4761
August 29, 2005 08:40PM
4645
August 29, 2005 08:47PM
4509
August 29, 2005 09:00PM
4705
August 30, 2005 10:05AM
4586
August 30, 2005 10:18AM
5098
August 30, 2005 10:20AM
6109
August 29, 2005 08:53PM
4972
August 29, 2005 09:50PM
4812
August 29, 2005 10:01PM
5256
August 30, 2005 08:53AM
4665
August 30, 2005 11:22AM
5212
August 30, 2005 11:33AM
4879
August 30, 2005 11:59AM
Re: Server just hanging (Copying to tmp table)
24340
August 31, 2005 02:32PM
6510
August 31, 2005 02:49PM
5192
August 31, 2005 02:56PM
5048
August 31, 2005 03:06PM
8285
December 07, 2006 10:30AM
4989
August 31, 2005 03:10PM
4859
August 31, 2005 03:32PM
17702
August 31, 2005 07:15PM
5105
September 01, 2005 03:05AM
7822
September 15, 2005 04:31PM
5544
September 01, 2005 04:39AM
4448
September 08, 2005 09:53AM
4805
September 08, 2005 11:25AM
4584
September 26, 2005 11:52AM
4496
September 26, 2005 12:13PM
4425
September 27, 2005 09:55AM
4208
September 27, 2005 10:18AM
4108
September 28, 2005 10:29AM
4251
September 28, 2005 10:34AM
4424
September 28, 2005 10:52AM
4886
September 28, 2005 10:58AM
9663
September 23, 2005 01:56AM
4951
September 23, 2005 07:11AM
4926
October 05, 2005 04:58AM
5170
October 05, 2005 04:52PM
6133
October 05, 2005 11:49PM
5390
October 06, 2005 01:34AM
6704
October 06, 2005 04:57PM
4639
December 13, 2005 10:28AM
4627
December 13, 2005 10:34AM
4534
November 17, 2005 09:39AM
4895
January 08, 2007 12:12PM
4764
December 12, 2005 02:13PM
4608
December 14, 2005 11:43PM
4203
December 15, 2005 08:37AM
4276
December 15, 2005 11:18AM
4188
December 15, 2005 11:27AM
4311
December 15, 2005 11:32AM
4059
December 15, 2005 11:43AM
4023
December 15, 2005 11:43AM
4188
December 15, 2005 11:48AM
4078
December 15, 2005 11:51AM
4475
December 15, 2005 02:14PM
4124
December 15, 2005 02:18PM
3995
December 15, 2005 02:27PM
4499
December 15, 2005 02:43PM
4044
December 15, 2005 08:46AM
5029
January 26, 2006 12:38PM
4155
January 26, 2006 01:48PM
4234
January 26, 2006 01:48PM
4017
January 26, 2006 01:52PM
4160
January 27, 2006 04:46PM
4040
January 29, 2006 11:21AM
4378
January 30, 2006 09:42AM
4416
February 27, 2006 02:17PM
4093
February 27, 2006 02:23PM
4329
March 05, 2006 04:56AM
4145
March 06, 2006 08:09AM
4114
April 05, 2006 01:03PM
4292
September 27, 2006 08:43AM
4247
November 19, 2006 04:42AM
4400
December 14, 2006 05:45PM
4220
February 01, 2007 04:40AM
4884
November 11, 2007 01:24PM
5097
December 20, 2007 10:40AM
6531
January 21, 2008 10:14AM
5869
January 21, 2008 10:53AM
5332
May 19, 2008 09:41AM
5542
February 05, 2008 10:27AM
6086
March 12, 2008 08:37AM
5404
May 19, 2008 03:02AM
6143
November 14, 2008 12:31AM
7151
March 06, 2009 03:36PM