|
Joined: Jul 2001
Posts: 442
Enthusiast
|
Enthusiast
Joined: Jul 2001
Posts: 442 |
Just installed 6.4, the forums seem fast at times then slow to a crawl then fast, then moderate and back again, I have noticed this more on the main index page than other pages. Could it have something to do with the "how many are viewing a forum" output on that page? Could it be the planets are not lined up correctly?
|
|
|
|
Joined: Feb 2002
Posts: 1,759
Addict
|
Addict
Joined: Feb 2002
Posts: 1,759 |
|
|
|
|
Joined: Jul 2001
Posts: 442
Enthusiast
|
Enthusiast
Joined: Jul 2001
Posts: 442 |
Yep, first thing I did and the index's were there. I am just getting a lot of complaints about the speed, I might have to hire someone to take a look at my server and threads (6.4) to see if we can do anything, with a Linux dedicated server and 2 gigs of RAM it should not be doing this. Hopefully Rick is looking for things on the threads side as well and can come up with something, maybe it's something easy.
|
|
|
|
Joined: Feb 2002
Posts: 1,759
Addict
|
Addict
Joined: Feb 2002
Posts: 1,759 |
Are you running any hacks or just a "stock" 6.4? I had a customer or two on my servers that would bring them to their knees due to some hacks on the main index, such as who's online, and variants of that. The hack just wasn't applied quite right and was slowing the server WAY down. But if you don't have any hacks.. then not sure what else might be the issue Also, I'd recommend optimizing your database in the threads admin though, I did this right after my 6.4 upgrade and it was lightining fast.
|
|
|
|
Joined: Jul 2001
Posts: 442
Enthusiast
|
Enthusiast
Joined: Jul 2001
Posts: 442 |
I did optimize right before the upgrade, will try it again now that I am 6.4 you never know. I have 5 hacks they are: No threads rating Show different heads/footers by group Restrict PM by group restrict search from non-registered color/title by group
|
|
|
|
Joined: May 1999
Posts: 3,039
Guru
|
Guru
Joined: May 1999
Posts: 3,039 |
For diagnosing speed issues your best friend is the &debug=1 variable. Basically add that to the end of any of the pages that seem slow. This will give you a list of all the queries executed for that page and how long it took to execute each query. This can help find bottlenecks. Normally all queries should take well under a second. If you see a query that always seems to take longer than a second, normally that's the bottleneck.
So, if you can do this on a few of your scripts that seem slow and report what queries are slow we might be able to diagnose a bit.
UBB.threads Developer
|
|
|
|
Joined: May 2003
Posts: 1,068
Junior Member
|
Junior Member
Joined: May 2003
Posts: 1,068 |
That is a very cool tip indeed, thanks for that info Scream.
|
|
|
|
Joined: Jul 2001
Posts: 442
Enthusiast
|
Enthusiast
Joined: Jul 2001
Posts: 442 |
[] Scream said:For diagnosing speed issues your best friend is the &debug=1 variable. Basically add that to the end of any of the pages that seem slow. This will give you a list of all the queries executed for that page and how long it took to execute each query. This can help find bottlenecks. Normally all queries should take well under a second. If you see a query that always seems to take longer than a second, normally that's the bottleneck. So, if you can do this on a few of your scripts that seem slow and report what queries are slow we might be able to diagnose a bit. [/] I must be doing something wrong, when I put &debug=1 at the bottom of ubbthreads.php it didn't output anything, I need schooling.
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
Put it in the URL ubbtthreads.php?debug=1
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
Hmm.... doesn't work on your site. Just produces a fairly blank page with a 1 in the footer.
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
Nevermind - + I think only admins will see it.
|
|
|
|
Joined: Jul 2001
Posts: 442
Enthusiast
|
Enthusiast
Joined: Jul 2001
Posts: 442 |
|
|
|
|
Joined: Jul 2001
Posts: 442
Enthusiast
|
Enthusiast
Joined: Jul 2001
Posts: 442 |
It does work, two of the forums were:
Query took a total of 0.131 seconds. Query took a total of 0.179 seconds.
allothers wre around 5 seconds on average.
|
|
|
|
Joined: Feb 2002
Posts: 1,759
Addict
|
Addict
Joined: Feb 2002
Posts: 1,759 |
wow, 5 seconds? I tested my main index with about 100 users on the site, and all were less than 0.1 seconds And I only have a single P4 2.6 with a gig of ram
|
|
|
|
Joined: Jul 2001
Posts: 442
Enthusiast
|
Enthusiast
Joined: Jul 2001
Posts: 442 |
Well, I just opened up a post and watched my watch, 47 seconds later it open up, is this normal or do I have a problem?
|
|
|
|
Joined: Jul 2001
Posts: 442
Enthusiast
|
Enthusiast
Joined: Jul 2001
Posts: 442 |
Actually after looking I think 0.178 is under two seconds not 17 seconds, but posts have been reported to take over a min to open then seconds later they open right up then back to being slow again.
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
There's probably a problem. Rick had a post at Community (ubbcentral now) which said some different indexes in the post table were the culprit.
The details arent't posted, as it was solved through a ticket.
I would post here the exact queries that were taking a long time... and then see what Rick might have to offer.
|
|
|
|
Joined: Jul 2001
Posts: 442
Enthusiast
|
Enthusiast
Joined: Jul 2001
Posts: 442 |
Welp, when I look at the main index with &debug=1 nothing is reported over 0.178 seconds yet it takes over 4 minutes to load a post some times so I dunno.
|
|
|
|
Joined: May 1999
Posts: 3,039
Guru
|
Guru
Joined: May 1999
Posts: 3,039 |
You can also add that debug=1 to the showflat/showthreaded pages as well so you can see all the queries that are going on there. If that is what is the slowest then that is the page you'll want to look at the closest.
UBB.threads Developer
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 87
Joined: December 2001
|
|
Forums63
Topics37,573
Posts293,925
Members13,849
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|