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
27570
August 11, 2005 11:25AM
23650
August 12, 2005 09:07AM
18949
August 12, 2005 01:06PM
18425
August 22, 2005 09:46AM
Re: Server just hanging (More Information)
16527
August 24, 2005 03:27PM
12979
August 24, 2005 04:05PM
13669
August 26, 2005 11:02AM
7446
August 26, 2005 11:05AM
6834
August 26, 2005 11:45AM
6611
August 26, 2005 05:46PM
6875
August 26, 2005 10:34PM
6485
August 25, 2005 01:08PM
5881
August 26, 2005 11:07AM
5684
August 27, 2005 09:09AM
6006
August 29, 2005 11:50AM
5924
August 29, 2005 12:04PM
5287
August 29, 2005 12:55PM
5172
August 29, 2005 05:26PM
5143
August 29, 2005 06:34PM
4779
August 29, 2005 08:40PM
4659
August 29, 2005 08:47PM
4523
August 29, 2005 09:00PM
4718
August 30, 2005 10:05AM
4601
August 30, 2005 10:18AM
5114
August 30, 2005 10:20AM
6120
August 29, 2005 08:53PM
4989
August 29, 2005 09:50PM
4827
August 29, 2005 10:01PM
5272
August 30, 2005 08:53AM
4683
August 30, 2005 11:22AM
5224
August 30, 2005 11:33AM
4890
August 30, 2005 11:59AM
24351
August 31, 2005 02:32PM
6522
August 31, 2005 02:49PM
5207
August 31, 2005 02:56PM
5061
August 31, 2005 03:06PM
8302
December 07, 2006 10:30AM
5001
August 31, 2005 03:10PM
4871
August 31, 2005 03:32PM
17712
August 31, 2005 07:15PM
5118
September 01, 2005 03:05AM
7833
September 15, 2005 04:31PM
5558
September 01, 2005 04:39AM
4459
September 08, 2005 09:53AM
4819
September 08, 2005 11:25AM
4595
September 26, 2005 11:52AM
4506
September 26, 2005 12:13PM
4436
September 27, 2005 09:55AM
4222
September 27, 2005 10:18AM
4123
September 28, 2005 10:29AM
4263
September 28, 2005 10:34AM
4438
September 28, 2005 10:52AM
4899
September 28, 2005 10:58AM
9675
September 23, 2005 01:56AM
4959
September 23, 2005 07:11AM
4936
October 05, 2005 04:58AM
5205
October 05, 2005 04:52PM
6146
October 05, 2005 11:49PM
5403
October 06, 2005 01:34AM
6720
October 06, 2005 04:57PM
4650
December 13, 2005 10:28AM
4635
December 13, 2005 10:34AM
4550
November 17, 2005 09:39AM
4904
January 08, 2007 12:12PM
4778
December 12, 2005 02:13PM
4621
December 14, 2005 11:43PM
4212
December 15, 2005 08:37AM
4286
December 15, 2005 11:18AM
4206
December 15, 2005 11:27AM
4321
December 15, 2005 11:32AM
4071
December 15, 2005 11:43AM
4033
December 15, 2005 11:43AM
4204
December 15, 2005 11:48AM
4090
December 15, 2005 11:51AM
4483
December 15, 2005 02:14PM
4136
December 15, 2005 02:18PM
4008
December 15, 2005 02:27PM
4512
December 15, 2005 02:43PM
4053
December 15, 2005 08:46AM
5044
January 26, 2006 12:38PM
4169
January 26, 2006 01:48PM
4244
January 26, 2006 01:48PM
4030
January 26, 2006 01:52PM
4173
January 27, 2006 04:46PM
4052
January 29, 2006 11:21AM
4388
January 30, 2006 09:42AM
4424
February 27, 2006 02:17PM
4104
February 27, 2006 02:23PM
4338
March 05, 2006 04:56AM
4155
March 06, 2006 08:09AM
4125
April 05, 2006 01:03PM
4303
September 27, 2006 08:43AM
4258
November 19, 2006 04:42AM
4409
December 14, 2006 05:45PM
4231
February 01, 2007 04:40AM
4895
November 11, 2007 01:24PM
5109
December 20, 2007 10:40AM
6543
January 21, 2008 10:14AM
5879
January 21, 2008 10:53AM
5350
May 19, 2008 09:41AM
5553
February 05, 2008 10:27AM
6098
March 12, 2008 08:37AM
5416
May 19, 2008 03:02AM
6154
November 14, 2008 12:31AM
7162
March 06, 2009 03:36PM