Go Back   vb.org Archive > Community Discussions > Forum and Server Management
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 10-15-2008, 01:53 PM
tomotron tomotron is offline
 
Join Date: Nov 2005
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default thread with 100,000+ replies very slow

I have a thread on my forum that currently has 110,884 replies. When trying to open a page in that thread or even going to the last page which might only have a few posts, it's VERY slow compared to the rest of the site.

I've read a few docs that claim the length of a thread shouldn't effect the load time, but I can tell you there is a very clear difference.

Is there anything I can do to speed things up, aside from closing the thread? It's sort of a long running tradition on the forum and I'd hate to see it go.

Any suggestions? Thanks!
Reply With Quote
  #2  
Old 10-15-2008, 02:05 PM
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Location: Michigan
Posts: 3,733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would first suggest checking mysql during the query process of that thread, you might be able to optimize mysql via my.ini, could be curable with a few variable changes and restarting mysql.

You can also look into spliting the thread, check vbulletin.com on splitting thread topics, plenty of ideas from the others that have had the same issue.
Reply With Quote
  #3  
Old 10-15-2008, 04:00 PM
nexialys
Guest
 
Posts: n/a
Default

100 000+ replies to a single thread ?!

don't you think it would be better to split the thread and close the first part so people just answer the follow up ?!

next time, just close and re-open a new thread to follow up the discussion after some K... or you just have one thread on your forum ?!
Reply With Quote
  #4  
Old 10-15-2008, 04:16 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

We have a thread with a bit over half that many replies and so far I have decided not to split it. It takes about 1.2 seconds to load compared to .1 seconds on other pages, so there is definitely a difference for load times of big threads. I've heard some people just like to split them (and close them) at some point. I think there is a mod to automatically do this, but if I recall there are problems with it. If it's just a single thread, it should be no problem for you to just deal with it on your own.
Reply With Quote
  #5  
Old 10-15-2008, 04:23 PM
tomotron tomotron is offline
 
Join Date: Nov 2005
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yup, 100k replies in one thread. We have quite a few threads with replies in the thousands, and have never had a problem until recently. Most everything I've read says thread size should not have a significant effect on server performance or load times.

It's a decent sized forum,
Threads: 25,905, Posts: 1,279,387, Members: 55,056

but I visit other larger forums with longer threads that never seem to have similar problems.

snakes1100, thanks for the reply. Our mysql configuration is pretty well optimized, or so I think at least. I'm going to post in the server optimization forum over at vbulletin.com and see if I missed something though.

--------------- Added [DATE]1224091682[/DATE] at [TIME]1224091682[/TIME] ---------------

Quote:
Originally Posted by Lynne View Post
We have a thread with a bit over half that many replies and so far I have decided not to split it. It takes about 1.2 seconds to load compared to .1 seconds on other pages, so there is definitely a difference for load times of big threads. I've heard some people just like to split them (and close them) at some point. I think there is a mod to automatically do this, but if I recall there are problems with it. If it's just a single thread, it should be no problem for you to just deal with it on your own.
I did end up closing it and started a new monthly version of the thread. It's an "off-topic" thread that's been running for probably over 5 years now, so It's a tradition that I wanted to keep alive and a monthly off-topic thread should keep my users happy.

Like I said though, most everything I'v read said thread length shouldn't effect load times (even though I too noticed a clear difference), and I visit other forums that are more active and have longer threads. I was hoping to find a workaround or tips on optimizing my server/database to handle these types of situations.
Reply With Quote
  #6  
Old 10-15-2008, 04:34 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tomotron View Post
Like I said though, most everything I'v read said thread length shouldn't effect load times (even though I too noticed a clear difference), and I visit other forums that are more active and have longer threads. I was hoping to find a workaround or tips on optimizing my server/database to handle these types of situations.
But do you know what those other sites are using for their server setup? That will make a difference in how quick the load times are. You didn't say what your server set up is, but ours is a two server setup. It would make a difference too on how the servers are configured - RAID0, RAID1, RAID10?
Reply With Quote
  #7  
Old 10-15-2008, 04:40 PM
tomotron tomotron is offline
 
Join Date: Nov 2005
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yeah that's why I'm going to post up over at the server optimization forum at vbulletin.com...

we're currently running on a load balanced cluster with 3 servers,

Database Server
Dell PE1850 Dual Xeon (2 x 3.2 Ghz)
2GB Ram
2 x 146 GB SCSI (RAID 1)

2 Front End Nodes
Dell PE1425 Dual Xeon (2 x 2.8 Ghz)
1GB Ram
80 GB SATA-II
Reply With Quote
  #8  
Old 10-15-2008, 08:07 PM
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Location: Michigan
Posts: 3,733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

With 1.2 million post, 2gb of ram is fine, but the 100k reply post, that will be the drain on the remaining ram in the system, i would go thru the DB server and disable any programs running that arent needed, i would check the ram usage at the point of load when that thread is opened to view it on the last page as well as using mytop to view the process live.

You might want to try and play with these 3 a little, but with 2gb, your pressing your luck.
join_buffer_size
read_buffer_size
sort_buffer_size
Reply With Quote
  #9  
Old 10-15-2008, 11:18 PM
tomotron tomotron is offline
 
Join Date: Nov 2005
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks snakes, hopefully the solution is something as simple as adding ram to my DB server. i've posted up in the server optimization forum at vbulletin.com, but there might not be much i can do besides beefing up hardware to deal with huge threads.
Reply With Quote
  #10  
Old 10-17-2008, 11:08 PM
azn_romeo_4u azn_romeo_4u is offline
 
Join Date: Feb 2006
Posts: 227
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You're seriously on a cluster with a forum with 1.2mill posts? How much you paying? Cost you are blowing your money big time.

I got a forum with a 50k thread, with some other threads in the 10k running pretty speedily. I have about 1.7mill post though. It's on a shared server running with some other heavy hitters. Some sites doing like 50gb's a day off of hundreds of requests per sec and my load is under 1.

Are you running apache?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:05 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05330 seconds
  • Memory Usage 2,255KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (9)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete