Your On-Line Port'o'Call
Page 1 of 2 1 2 >
Topic Options
Rate This Topic
#367315 - 12/30/07 10:41 PM SQL Error
jjct1 Offline
Admiral

Registered: 02/01/03
Posts: 704
Loc: Seattle East Side
Here is the SQL Error I get almost everytime I try and load the site now. Refreshing my browser seems to make it connect:

 Code:
Fatal error: Maximum execution time of 60 seconds exceeded in C:\Inetpub\wwwroot\forums\libs\mysql.inc.php on line 188
_________________________
95 Malibu Sunsetter w/T3 Tower and Wedge

Top
Sponsered Ad
#367401 - 12/31/07 09:39 AM Re: SQL Error [Re: jjct1]
Admin Administrator Offline
Admiral

Registered: 12/15/02
Posts: 2613
Loc: Cyberland
So far, I am thinking that we are dealing with an underpowered server for the load being put on it. The vast majority of times, everything is fine. However, the timeout error is an indication of a temporary crunch load that the server simply could not process in time.

The database error logs do not show anything out of the ordinary.

Still, if one user is experiencing this issue far more than others, I suspect a cache/cookie issue.

What is the actual URL within the board that you are trying to load?

For instance, the main forums listing page is...

http://www.boatingabc.com/forums/ubbthreads.php/ubb/cfrm

Active topics of past 24 hours...

http://www.boatingabc.com/forums/ubbthreads.php/ubb/activetopics/range/1/type/t

I will look to see what query starts at that line in the specified file.

One thing that could be a hang up is the feature that shows how many unread topics there are when you view the main forums listing page.

That set of queries is very resource consuming. For now, I have disabled that feature to see if it has a positive impact.

So, to help track down what is happening, please post the URL to any page that you get an SQL error (or if the page is very slow to load) when attempting to access.
_________________________
Mike

BoatingABC.com

Top
#367539 - 12/31/07 05:48 PM Re: SQL Error [Re: Admin]
jjct1 Offline
Admiral

Registered: 02/01/03
Posts: 704
Loc: Seattle East Side
Here is the url I got the error above going to:

http://www.boatingabc.com/ubb/ultimatebb.php

BTW, it seems much faster now that you disabled the unread messages. Maybe it's because there are not that many people on New Years eve but the site is loading immediately where before I got a lengthy pause.
_________________________
95 Malibu Sunsetter w/T3 Tower and Wedge

Top
#367714 - 01/01/08 10:06 AM Re: SQL Error [Re: jjct1]
mambajack Offline
Admiral

Registered: 08/01/03
Posts: 930
Loc: stockbridge, ga
Yes, it's really zipping along now. I guess I haven't been reading enough threads. Lately all I read is the Misc and General Boating.

Top
#367921 - 01/02/08 09:57 AM Re: SQL Error [Re: mambajack]
KCook Offline
Admiral

Registered: 12/30/02
Posts: 9975
Loc: Phoenix
I got a similar error this morning when doing a deep search on the General Boating forum. Same search terms were Ok on the other forums. Cutting back the same search from 4 years to the 3 year depth cleared up the problem. This was searching for numerous common tokens, the 8 page limit filled up in less than 1 year.

Could it be that the General Boating forum needs re-indexing?

Could it be that vee need to split the General Boating forum into 2 or 3 different forums? Such as BoatShowroom and MyBoating?

dee wude wan

Top
#367937 - 01/02/08 11:02 AM Re: SQL Error [Re: KCook]
Admin Administrator Offline
Admiral

Registered: 12/15/02
Posts: 2613
Loc: Cyberland
This supports my suspicion that the board has outgrown the server at least for some of the more process intense features.

I have been looking at an upgrade for some time now, and feel the time to stop looking is at hand. Still, comparison operators are very demanding on system resources and will always bog down the server when doing complex searches or searching a large forum going back several years. This is why I have the limit set to 4 years. As it is, this seems to be too long a time frame to allow.

Good point about subdividing the General Boating forum. However, this would only help if those doing a search actually select only specific forums rather than all of them at once.

Another factor that will help is optimization of the code. The next release (which will be very soon now) should see a marked improvement in this area as the searching functions have been totally re-written along with general optimizing of the entire code base.

Further, I have been doing some reading up on how to better tune MySQL. The current installation is running pretty much "out of the box" other than some application and site specific settings.

For all the others who have commented on slow page loads..

Am I to take it from the general lack of comments here that you are no longer experiencing this issue?
_________________________
Mike

BoatingABC.com

Top
#367977 - 01/02/08 12:39 PM Re: SQL Error [Re: Admin]
Sebago Maine Offline
Admiral

Registered: 03/19/03
Posts: 1129
Loc: Boating on Sebago Maine
Will the board operate with anything other than mySQL. There are better products out there (but no Open Source). How are the tables linked and how many joins need to be done to establish a search.

If the search requires you to join tables for each forum, the search will be large. You can break it out by restricting the search for an individual forum (and not the (all)). I'm not sure if the software does this sequentially through the forum list or joins them then searches.

Might be something to think about. If you want help, let me know and I can see if I can assist.

Sebago
_________________________
2003 Cobalt 262 "Ruf'n It"

Sebago House


Top
#367983 - 01/02/08 12:58 PM Re: SQL Error [Re: Sebago Maine]
Jack T Offline
Admiral

Registered: 01/10/03
Posts: 2456
Loc: Southern California
Maybe ignorance on a lot of us. Other than what a pig does, what is SQL?
_________________________
Have a great day of boating
1985 Eliminator 17' Bowrider (One-of-a-Kind)
AirDock inflatable boat lift

Top
#367984 - 01/02/08 12:59 PM Re: SQL Error [Re: Jack T]
Al Offline
Nautical Alchemy
Admiral

Registered: 01/14/03
Posts: 11541
Loc: Battle Creek/Grand Haven, MI
Jack; it is pronounced "See Quill". Does that help?
_________________________
"Yesterday's Dreams"
1995 Carver 325 Aft Cabin



Posts are amateur opinion only. You assume all responsibility for any action you take as a result of reading my posts.

Top
#367995 - 01/02/08 01:51 PM Re: SQL Error [Re: Al]
Admin Administrator Offline
Admiral

Registered: 12/15/02
Posts: 2613
Loc: Cyberland


You guys really bust me up.

Jack,

SQL = Structured Query Language.

The SQL wiki.

All the contents of this message board are stored in a Database.

In this case, we are using MySQL.

To answer Sebago's "query", this is the only DB the software supports.

Where the older version stored the content in a "flat file" (bunch of text files)database, this version uses a (Relational Database Management System (RDBMS).

This is separate software that runs on the server. The forum scripts execute queries against the database and use the returned results to fill in the topics, postings and such to the calling script for display to the user.

This all works very well, but can be a source of a bottleneck if the queries take too long to execute.

Sebago, I appreciate the offer of help.

Without "hacking" the code of the scripts, there is little I can do to make things much better. I do know that the writers of the software recognize that many of the queries are not optimal. Thus the total re-write of all search functions. I've not delved into the code much at all and truth to tell, am not well qualified to critique the work. ;\)

Version 7.3 is just out in private beta. I have it and will be installing a test instance soon to see how it works. I will wait until at least 7.3b2 before turning it loose here. ;\)

I will happily call on you for help/advise if I run into difficulties.
_________________________
Mike

BoatingABC.com

Top
#368005 - 01/02/08 02:21 PM Re: SQL Error [Re: Admin]
KCook Offline
Admiral

Registered: 12/30/02
Posts: 9975
Loc: Phoenix
Actually I never did experience slow page loads. Even though I visit frequently, and am on a slow dialup connection. My ISP DOES get the "slows" from time to time, but that is just my stupid ISP, not BABC's issue.

My little experience with databases is that maintenance is a far, far, far of more critcal concern than performance. As once the *&^%$# thing breaks, it will no longer matter how blazing fast it used to be.

As for limiting searches, I NEVER use the "seach all forums" mode. I always, always target individual forums when searching on BABC. There are various strategies for limiting search loads. The year depth limit is only one. Another common one is to allow a given user only 1 search every 5 min (or some other time window). More rare, but some sites require special registration for search users.

I made the suggestion of splitting the General Boating forum only half in jest. It does seem to me that any forum whose title includes the word "General" becomes a magnet for those to lazy to give thought to where their post really should be planted. Go - to - General forum - turn - off - brain. Thus forum bloat.

still wude ...

Top
#368010 - 01/02/08 02:44 PM Re: SQL Error [Re: KCook]
Sebago Maine Offline
Admiral

Registered: 03/19/03
Posts: 1129
Loc: Boating on Sebago Maine
Believe it or not, there is a threshold that makes it better to use flat file storage and indexing based on a key. MySQL has tried to evolve to more of an enterprise database, but is limited to its indexing abilities.

The speed is based on the index of the database and the proper development of the tables of the database. A universal main index key is needed with a complex table structure to minimize computation time for access to the data for results.

Search the code for "join". The more you see, the slower it is.
_________________________
2003 Cobalt 262 "Ruf'n It"

Sebago House


Top
#368049 - 01/02/08 05:15 PM Re: SQL Error [Re: Sebago Maine]
Jack T Offline
Admiral

Registered: 01/10/03
Posts: 2456
Loc: Southern California
Like, now I understand----NOT! Thanks for trying, though. I still think, much like what a pig does, it is what the system says when it gets tired or pinched.
_________________________
Have a great day of boating
1985 Eliminator 17' Bowrider (One-of-a-Kind)
AirDock inflatable boat lift

Top
#368318 - 01/03/08 03:07 PM Re: SQL Error [Re: Jack T]
Sebago Maine Offline
Admiral

Registered: 03/19/03
Posts: 1129
Loc: Boating on Sebago Maine
Sorry Jack T. I guess I deserve the propeller head for that one
_________________________
2003 Cobalt 262 "Ruf'n It"

Sebago House


Top
#368323 - 01/03/08 03:21 PM Re: SQL Error [Re: Sebago Maine]
Sebago Maine Offline
Admiral

Registered: 03/19/03
Posts: 1129
Loc: Boating on Sebago Maine
By the way Admin, I'm sure you are receiving a virtual server (VMWare). The performance also depends on what you were allocated and what else is allocated on that server. They will oversubscribe and someone may be taking quite a bit of traffic during the shopping period. If they are good, they will go back and beat on the offender. That may also have freed up some resources.
_________________________
2003 Cobalt 262 "Ruf'n It"

Sebago House


Top
Page 1 of 2 1 2 >


Moderator:  Admin, Finger Lakes Boater, Opus 
Google Search
 
Who's Online
3 registered (Dave R, WaterMutt, 1 invisible), 5 Guests and 7 Spiders online.
Key: Admin, Global Mod, Mod
Newest Members
brianford30, Doubles, bostonchris, PrecisionMarine, SteveO305
4102 Registered Users
January
Su M Tu W Th F Sa
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
New Topics
ENOUGH!!
by Andyk2
Yesterday at 09:12 PM
After many years, finally a boat name!
by casualboater
Yesterday at 09:01 PM
Tenn - Tom waterway
by Andyk2
Yesterday at 06:58 PM
Bass boat ?
by Rocnat4
Yesterday at 01:30 PM
No sleep in our house tonight
by GoFirstClass
01/06/09 09:43 PM
Hello All. Questions) about First Boat
by Doubles
01/06/09 07:58 PM
Christmas fishin' trip
by Semper Fi 75
01/06/09 05:41 PM
Electric wheelchair
by Philr
01/06/09 05:41 PM
Cape Cod Boating
by bostonchris
01/06/09 02:32 PM
Brunswick idles one plant and cuts jobs at other sites
by Anchor Management
01/06/09 11:08 AM
Forum Stats
4103 Members
26 Forums
29912 Topics
448651 Posts

Max Online: 162 @ 04/30/07 11:57 AM