php forum
php mysql forum
php mysql smarty
 
Topic Options
#285616 - 06/22/05 06:08 AM SQL advice would be appreciated. :)
SKB Offline
Lurker

Registered: 02/24/02
Posts: 8
We're having a bit of a nightmare. We have three ubb.threads installations on a server. Two are fine, but the big and most trafficed board has a lot of issues.<br /><br />We get very long query times, sometimes like 10 minutes to generate a page. But mostly the hold ups are about 60 seconds. Very sporadic too. I disabled search and had a period of tranquility, no issues at all. Then bham it did it again.<br /><br />Sometimes, probably related, we get a ton of sleeping proceses, like it goes up to 600. IO wait shoots up, server load goes up and then apache often wigs out.<br /><br />I would appreciate it very much if anyone could advise on mySQL settings. I'd like to perfect them as much as possible.<br /><br />It's a 4 CPU machine. 2GB of RAM. The main board is highly trafficed, generally about 400 - 800 users using it any one time. We do run other sites on the server, so SQL can't be too greedy. But as you can see, it is important in terms of where the server load is lying.<br /><br />I realize I don't really post here, despite being a member for a long time. I'm concious of being one of those people that comes in, gets what they want then goes. But I'm hoping you guys can help me out none the less. <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" /> (If I was more compentent, I'd contribute!)<br /><br />These are the current numbers:<br /><br />[mysqld]<br />socket=/home/virtual/FILESYSTEMTEMPLATE/.mysqlsock/mysql.sock<br />datadir=/var/lib/mysql<br />skip-locking<br />set-variable = key_buffer=640M<br />set-variable = max_allowed_packet=16M<br />set-variable = table_cache=1024<br />set-variable = sort_buffer=16M<br />set-variable = read_buffer_size=2M<br />set-variable = record_buffer=6M<br />set-variable = myisam_sort_buffer_size=128M<br />set-variable = thread_cache=16<br /># Try number of CPU's*2 for thread_concurrency<br />set-variable = thread_concurrency=8<br />set-variable = max_connections=512<br />set-variable=query_cache_type=1<br />set-variable=query_cache_size=16M<br />set-variable=wait_timeout=180<br />#log-slow-queries = /var/log/slow_queries.log<br />#long_query_time=10

Top


Who's Online
0 registered (), 23 Guests and 12 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Wisdom needed
by Gizmo
Today at 10:54 AM
How to hide sub forums from summary page
by blaaskaak
Yesterday at 09:54 AM
Spell Check [beta]
by Bill B
12/01/08 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
12/01/08 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
12/01/08 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
12/01/08 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 PM
New Mods
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Spell Check [beta]
by
10/17/06 09:24 PM
Newest Members
Truth, David DelMonte, nick1, Begbie, cenk
13364 Registered Users
Top Posters
AllenAyres 25452
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks