Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
Who's Online
7 registered (blaaskaak, Jake, Maze, Rick, Ruben Rocha, WebMagic, 1 invisible), 22 Guests and 16 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 05/15/08
Posts: 1
Top Posters (30 Days)
Ruben Rocha 177
Gizmo 110
Rick 109
Thelockman 80
driv 48
AllenAyres 35
Ian 33
ntdoc 27
Sirdude 23
ScriptKeeper 21
Latest Photos
My Home System
test photo gallery
Bernese Mountain Dogs
My Daimler
Dorado and shark
Page 2 of 2 < 1 2
Topic Options
Rate This Topic
#217452 - 09/30/08 09:37 PM Re: simple sql query causing 100% cpu usage for minutes [Re: bakerzdosen]
bakerzdosen Offline
stranger

Registered: 09/18/08
Posts: 14
Loc: Utah
Well, so much for that approach. It was pegged at 100% CPU for a coupla hours tonight before I restarted mysqld. (Only this time ubbt_POSTS was marked as needing repairs).

Now to go look up how to turn on logging of slow queries.
_________________________
bmwsporttouring.com

Top
#217525 - 10/03/08 01:23 AM Re: simple sql query causing 100% cpu usage for minutes [Re: bakerzdosen]
GregH Offline
newbie

Registered: 10/16/06
Posts: 31
Loc: Grapevine (Dallas), TX
I don't mean to interrupt, but we've had similar symptoms on my board for the past few months. Everything had been fine, but now the system hangs every few days (lots of Apache threads waiting). Eventually, it just fixes itself. I don't have the SQL details as bakerzdosen does. I have checked the settings described above and they're set correctly. We have a dedicated server. I don't know SQL commands well enough to try to diagnose when a problem is occurring, though.

I have a large number of posts (over 800,000). Is there some reorg command I could issue?

Top
#217656 - 10/07/08 09:50 PM Re: simple sql query causing 100% cpu usage for minutes [Re: GregH]
hatter Offline
stranger

Registered: 09/20/06
Posts: 9
My users have had similar complaints in the last few months. I checked and it seems to be mysqld which is choking. We have a relatively small forum too.

I'm not sure if this helps or not, but it seems to be worse on the main forum page. by clicking on "Forum List", here is an example of the slowness in debug info:

Quote:

Generated in 24.950 seconds in which 24.585 seconds were spent on a total of 23 queries. Zlib compression enabled.
_________________________
- Hatter
http://www.CarfaxAbbey.net

Top
#217657 - 10/07/08 10:10 PM Re: simple sql query causing 100% cpu usage for minutes [Re: hatter]
Rick Administrator Online   content

*****

Registered: 06/04/06
Posts: 7898
Loc: Aberdeen, WA
The front page will normally generate about 9-10 queries if all posts are read. So when you see things like 23 queries total, it means that you probably have full unread post tracking turned on, and the user in question has about 13-14 forums with unread posts. Each one of those queries is pretty expensive so it can add up and slow things down pretty quickly.
_________________________
UBB.threads™ Developer
My Personal Website · StogieSmokers.com

Top
#217682 - 10/08/08 03:55 PM Re: simple sql query causing 100% cpu usage for minutes [Re: Rick]
ntdoc Offline

***

Registered: 11/08/06
Posts: 3201
I've not looked into it but on another site with different software they were actually having a recursive lookup issue that really slammed the board the more users they had.

Hopefully UBB doesn't have that issue in any of it's code but also make sure any home or custom pages you've created don't have that issue.

Top
Page 2 of 2 < 1 2


Shout Box

Today's Birthdays
brushie, cass, Monte G., twebman, White Gold Wielder
Recent Topics
Font and column shifts occuring
by Bill B
Yesterday at 06:21 PM
changing colors in quoted thread box
by sbserves
Yesterday at 07:08 AM
[7.3.1] Image Not Found
by BellaOnline
11/29/08 09:48 PM
Private topic (PM) to a user that doesn't exist...
by bakerzdosen
11/29/08 10:56 AM
Forum Permissions - Can see forum
by Geoff
11/29/08 08:55 AM
Forum Stats
4261 Members
33 Forums
30528 Topics
154942 Posts

Max Online: 978 @ 06/24/07 08:19 PM