Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 07-17-2008, 08:32 PM
pjkcards pjkcards is offline
 
Join Date: Jul 2007
Posts: 299
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Size of showthread.php and forumdisplay, etc.

Hello,
Late last month, I decided to move my forum from domain.com to domain.com/forum, and install vBa CMPS on the homepage. I also removed my second navbar and added some drop-down menu's to the first navbar instead (do drop-downs increase page size a lot?).

The next day, my bandwidth for this particular site jumped up from around 500-700MB per day to over 1.6GB. I assumed it was the CMPS I installed. The other day I setup a redirect so that all traffic to the site would be directed to the forum, basically turning off the CMPS. The bandwidth basically did not change, telling me it wasn't the CMPS.

I contacted my host, and they are next to no help with this. I checked the logs and didn't see anything out of ordinary.

I checked Awstats and I think I have found the problem, but do not know why it exists and/or how to correct it, and I am asking for your help.
I checked and I saw this in the stats:
php Dynamic PHP Script file 343248 16.3 % 13.44 GB 71.8 %
That seems to be accounting for most of the bandwidth (71.8% of the site). So I know it is a php file most likely sucking up the bandwidth. So I went on to see what files were using the most.
For forum/showthread.php, average size is 70.72KB, forum/forumdisplay.php is 72.51KB, while index.php is 52.91KB. The month before, these file sizes were around 15-20KB at most, with index.php only at 15KB. What can cause the forum/forumdisplay, index and forum/showthread to increase so much? In the stats it has these two interesting stats:
/forum/forumdisplay.php 10081 72.31 KB (Avg Size)
/forumdisplay.php 64478 19.74 KB (Avg Size)

Forumdisplay and showthread were increased the most, but pretty much all files increased, such as:
newreply.php 12.05KB (Avg Size)
forum/newreply.php 27.65KB (Avg Size)

These are the stats from last month, comparing the size of the same file, one in the domain.com directory, and then the file after I moved it.

That means putting it into the forum sub-directory caused the increase, or something similar I did when I moved the forum to /forum. The only things I did was move the forum and change the navbars. Any ideas on correcting this problem? The only major thing I did was move the forum to a sub-directory, and install CMPS (which I think I have ruled out as the problem).

Thanks in advance, I greatly appreciate the assistance.
Reply With Quote
  #2  
Old 07-18-2008, 07:17 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Note that images are in the count. Also, check the GZIP setting and if mod_deflate is enabled.
Reply With Quote
  #3  
Old 07-18-2008, 10:19 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does the usage drop again after a few days? It could be that all cached content (pages, images, etc..) can not be used from client-side cache anymore as they have moved. If this is the case, then usage should drop again once the cache of your members is filled again.
Reply With Quote
  #4  
Old 07-22-2008, 11:22 PM
pjkcards pjkcards is offline
 
Join Date: Jul 2007
Posts: 299
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello,
The problem was a GZIP compression setting. It was set to off because the sever I was on already had mod_gzip enabled, then it was apparently disabled. It is fixed now. Thanks
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 05:56 AM.


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.04044 seconds
  • Memory Usage 2,193KB
  • Queries Executed 13 (?)
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
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (4)postbit
  • (4)postbit_onlinestatus
  • (4)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_postinfo_query
  • fetch_postinfo
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete