Re: Server just hanging (More Information)
Hey Thomas -- sorry I've been busy at work or I would have given you some suggestions.
First off your variables are not really tweaked correctly. They're a bit off. Some tweaking will help.
I'm going to assume you're primarily using MyIASM tables and not innodb ones (phpBB uses MyIASM). The formula for your memory buffers is:
global buffers + (thread_buffers * max_connections).
Global buffers are key_buffer and Query_cache_size among others. Thread buffers are read, sort, join buffers. Your max connections are WAY too high. Our site is extremely busy but using mysqlreport (it's a perl script you can grab on the mysql site somewhere). It's told me the most connections at any one time has been 139. I set my max_connections to 300. I may lower this. I set my wait_timeout to 15 (I leave it the default high number on my development box, just lower it on my production box).
I'm not familar with the Mac X kernel, but you need to tweak your kernel settting for the following:
1. System limit on files & procs need to be raised if they are not unlimited as default (they are not on linux)
2. MySQL user limit on files & procs need to be raised (not as high as the system as the system needs some resources.).
I only know how to do this on solaris and linux. I've found Oracle installation docs to be the easiest and best laid out for doing this. Search for those.
Then once you've tweaked your kernel settings you can more safely raise some of your MySQL settings.
Table cache does NOT have an M and 50 isn't really very many. Remember that MySQL will open more than one file per table. It's the number of tables you want cached. My ulimit for mysql is not under my control. With the default Linux setup I can only have 1240 tables cached. I constantly keep all 1240 tables cached at all times. I am working on getting this setup so I can up this number. For my database based on the table cache formula ((2* AVG(# of tables in join)) * max_connections I should set this to 2400. My database screams when I set it this high and then crashes and burns because ulimits have been incorrectly setup for my user MySQL.
I also have 4 GB RAM and I have my key_buffer_size set up to be 396M. I'd like to put it up to 412 but I'm waiting for the ulimit to be raised. My query_buffer_cache_size is set to 164MB. I've working on tweaking my query_cache_limit size up w/o crashing my Server. I think your query_cache_limit is too high. That is a setting for EACH query. You might want to set it down to 16M to start??
phpBB is a poorly database designed bit of software. I've tried to talk Jay Pipes into tackling it but he just laughs at me! :) So we all have to suffer with it for the time being unless Felix or one of the other MySQL gurus will tackle it. I would start checking out the indexes that phpBB sets up. Besure that duplicate indexes are NOT being setup (i.e. a Primary key does not need an additional index set up on it, nor does a unique key. Duplicate indexes makes writes slow.
Can you post your show variables and your show status??
Hope this helps and isn't too late....
erin
Subject
Views
Written By
Posted
27533
August 11, 2005 11:25AM
23637
August 12, 2005 09:07AM
18938
August 12, 2005 01:06PM
18413
August 22, 2005 09:46AM
Re: Server just hanging (More Information)
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
5910
August 29, 2005 12:04PM
5272
August 29, 2005 12:55PM
5160
August 29, 2005 05:26PM
5132
August 29, 2005 06:34PM
4761
August 29, 2005 08:40PM
4646
August 29, 2005 08:47PM
4509
August 29, 2005 09:00PM
4705
August 30, 2005 10:05AM
4586
August 30, 2005 10:18AM
5099
August 30, 2005 10:20AM
6110
August 29, 2005 08:53PM
4975
August 29, 2005 09:50PM
4813
August 29, 2005 10:01PM
5257
August 30, 2005 08:53AM
4665
August 30, 2005 11:22AM
5212
August 30, 2005 11:33AM
4879
August 30, 2005 11:59AM
24341
August 31, 2005 02:32PM
6510
August 31, 2005 02:49PM
5193
August 31, 2005 02:56PM
5048
August 31, 2005 03:06PM
8285
December 07, 2006 10:30AM
4989
August 31, 2005 03:10PM
4860
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
4426
September 27, 2005 09:55AM
4208
September 27, 2005 10:18AM
4108
September 28, 2005 10:29AM
4251
September 28, 2005 10:34AM
4425
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
5174
October 05, 2005 04:52PM
6134
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
4896
January 08, 2007 12:12PM
4765
December 12, 2005 02:13PM
4609
December 14, 2005 11:43PM
4203
December 15, 2005 08:37AM
4277
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
4156
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
4293
September 27, 2006 08:43AM
4248
November 19, 2006 04:42AM
4400
December 14, 2006 05:45PM
4221
February 01, 2007 04:40AM
4885
November 11, 2007 01:24PM
5098
December 20, 2007 10:40AM
6531
January 21, 2008 10:14AM
5870
January 21, 2008 10:53AM
5332
May 19, 2008 09:41AM
5542
February 05, 2008 10:27AM
6087
March 12, 2008 08:37AM
5404
May 19, 2008 03:02AM
6143
November 14, 2008 12:31AM
7151
March 06, 2009 03:36PM