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
27505
August 11, 2005 11:25AM
23626
August 12, 2005 09:07AM
18932
August 12, 2005 01:06PM
18408
August 22, 2005 09:46AM
Re: Server just hanging (More Information)
16500
August 24, 2005 03:27PM
12960
August 24, 2005 04:05PM
13645
August 26, 2005 11:02AM
7426
August 26, 2005 11:05AM
6807
August 26, 2005 11:45AM
6586
August 26, 2005 05:46PM
6854
August 26, 2005 10:34PM
6459
August 25, 2005 01:08PM
5855
August 26, 2005 11:07AM
5657
August 27, 2005 09:09AM
5981
August 29, 2005 11:50AM
5904
August 29, 2005 12:04PM
5261
August 29, 2005 12:55PM
5147
August 29, 2005 05:26PM
5117
August 29, 2005 06:34PM
4748
August 29, 2005 08:40PM
4636
August 29, 2005 08:47PM
4500
August 29, 2005 09:00PM
4696
August 30, 2005 10:05AM
4577
August 30, 2005 10:18AM
5089
August 30, 2005 10:20AM
6102
August 29, 2005 08:53PM
4967
August 29, 2005 09:50PM
4805
August 29, 2005 10:01PM
5248
August 30, 2005 08:53AM
4657
August 30, 2005 11:22AM
5203
August 30, 2005 11:33AM
4868
August 30, 2005 11:59AM
24333
August 31, 2005 02:32PM
6502
August 31, 2005 02:49PM
5186
August 31, 2005 02:56PM
5040
August 31, 2005 03:06PM
8275
December 07, 2006 10:30AM
4980
August 31, 2005 03:10PM
4851
August 31, 2005 03:32PM
17695
August 31, 2005 07:15PM
5094
September 01, 2005 03:05AM
7812
September 15, 2005 04:31PM
5533
September 01, 2005 04:39AM
4436
September 08, 2005 09:53AM
4795
September 08, 2005 11:25AM
4575
September 26, 2005 11:52AM
4485
September 26, 2005 12:13PM
4418
September 27, 2005 09:55AM
4200
September 27, 2005 10:18AM
4095
September 28, 2005 10:29AM
4242
September 28, 2005 10:34AM
4415
September 28, 2005 10:52AM
4879
September 28, 2005 10:58AM
9656
September 23, 2005 01:56AM
4941
September 23, 2005 07:11AM
4916
October 05, 2005 04:58AM
5136
October 05, 2005 04:52PM
6120
October 05, 2005 11:49PM
5383
October 06, 2005 01:34AM
6696
October 06, 2005 04:57PM
4631
December 13, 2005 10:28AM
4620
December 13, 2005 10:34AM
4524
November 17, 2005 09:39AM
4888
January 08, 2007 12:12PM
4756
December 12, 2005 02:13PM
4604
December 14, 2005 11:43PM
4199
December 15, 2005 08:37AM
4270
December 15, 2005 11:18AM
4182
December 15, 2005 11:27AM
4301
December 15, 2005 11:32AM
4054
December 15, 2005 11:43AM
4013
December 15, 2005 11:43AM
4184
December 15, 2005 11:48AM
4075
December 15, 2005 11:51AM
4468
December 15, 2005 02:14PM
4121
December 15, 2005 02:18PM
3989
December 15, 2005 02:27PM
4495
December 15, 2005 02:43PM
4039
December 15, 2005 08:46AM
5024
January 26, 2006 12:38PM
4149
January 26, 2006 01:48PM
4227
January 26, 2006 01:48PM
4010
January 26, 2006 01:52PM
4154
January 27, 2006 04:46PM
4031
January 29, 2006 11:21AM
4371
January 30, 2006 09:42AM
4404
February 27, 2006 02:17PM
4090
February 27, 2006 02:23PM
4319
March 05, 2006 04:56AM
4137
March 06, 2006 08:09AM
4103
April 05, 2006 01:03PM
4285
September 27, 2006 08:43AM
4238
November 19, 2006 04:42AM
4390
December 14, 2006 05:45PM
4210
February 01, 2007 04:40AM
4877
November 11, 2007 01:24PM
5085
December 20, 2007 10:40AM
6520
January 21, 2008 10:14AM
5859
January 21, 2008 10:53AM
5321
May 19, 2008 09:41AM
5532
February 05, 2008 10:27AM
6074
March 12, 2008 08:37AM
5394
May 19, 2008 03:02AM
6133
November 14, 2008 12:31AM
7144
March 06, 2009 03:36PM