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

Reply
 
Thread Tools Display Modes
  #1  
Old 12-20-2012, 06:56 PM
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Trace Slowness

Is there a particular way to trace what plug-in(s) or scripts might be causing a slow down on my site? The server I have is superb and dedicated to me. I've optimized MySQL / Apache / PHP and not sure why the site loads pretty slow.

http://www.talkjesus.com/forum.php

Not sure how accurate this is:
http://tools.pingdom.com/fpt/#!/HcfgLSsYT/talkjesus.com

I've disabled 2 plugins, disabled Remote YUI (it was set to Yahoo) and cleared system cache, optimized database. Still loads slow. I'm using Chrome as well on a 20MBps cable connection.
Reply With Quote
  #2  
Old 12-20-2012, 07:09 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm not an expert on this subject, but a couple things you can easily do: use Firefox and install the Firebug addon, then go to your page, open Firebug and go to the Net tab, then reload your page. This gives you a graph of everything the browser requests and how long it took.

Also, you can put the site in debug mode by editing your includes/config.php and finding the $config['Misc']['debug'] line, and changing it to true. or if you can't find it, insert this line (anywhere after the first line):

Code:
$config['Misc']['debug'] = true;

then when you load a page, at the bottom you'll see a line like:


Code:
    Page Generation 0.17364 seconds    Memory Usage 8,303KB    Queries Executed 27 (?)

and if you click on the (?) you'll go to a page that lists all database queries and how long they took. If you find one that took a very long time, you can probably figure out if it belongs to a plugin.

You should set debug back to "false" when you're done. Or if you want, there are ways to set it up so it's only in debug mode for you: www.vbulletin.org/forum/showthread.php?t=265999 , then you can leave it like that for as long as you want.
Reply With Quote
  #3  
Old 12-20-2012, 07:48 PM
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks. This is the result.


Quote:
Page Generation 1.71972 seconds Memory Usage 13,133KB Queries Executed 33 (?)


Template Usage (42):
(2)8WR_media_WIDGET
(1)Display_Registered
(1)Display_Visitors
(1)FORUMHOME
(1)MARCO1_HEAD_HS_JS
(1)ad_board_after_forums
(1)ad_board_below_whats_going_on
(1)ad_footer_end
(1)ad_footer_start
(1)ad_global_above_footer
(1)ad_global_below_navbar
(1)ad_global_header1
(1)ad_global_header2
(1)ad_navbar_below
(1)adiinviter_menu (RED)
(4)block_html
(1)block_newposts
(1)block_sgdiscussions
(1)block_threads
(1)facebook_footer
(1)facebook_header
(1)facebook_opengraph
(1)fchat_navbar_link (RED)
(1)fchat_wgo_status (RED)
(1)footer
(7)forumhome_forumbit_level1_nopost
(27)forumhome_forumbit_level2_post
(34)forumhome_lastpostby
(6)forumhome_subforums
(1)gobutton
(1)header
(1)headinclude
(1)headinclude_bottom
(34)memberaction_dropdown
(34)memberaction_dropdown_modtools
(1)navbar
(1)navbar_link
(1)navbar_notifications_menubit
(1)navbar_tabs
(3)option
(1)spacer_close
(1)spacer_open
Reply With Quote
  #4  
Old 12-20-2012, 07:52 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That shows the template usage. You have to click on the (?) link (after "33") to get to the page with the queries.
Reply With Quote
  #5  
Old 12-20-2012, 07:57 PM
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
Posts: 3,134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Handy tool: http://webpagetest.org

This is Patrick Meenan of Google's tester. Many different, real world browsers, many different locations available.
Reply With Quote
  #6  
Old 12-20-2012, 08:19 PM
final kaoss final kaoss is offline
 
Join Date: Apr 2006
Posts: 1,314
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can already see why you have such a slow page loading times.

http://gtmetrix.com/reports/talkjesus.com/Tg0nUp5j

From this report here are some of the top issues that you can work on.

Code:
Optimizing the following images could reduce their size by 74.7KiB (56% reduction)

347.1KiB of JavaScript is parsed during initial page load. Defer parsing JavaScript to reduce blocking of page rendering.

Optimize the order of styles and scripts

Compressing the following resources with gzip could reduce their transfer size by 509.5KiB (77% reduction).

The host talkjesus.com should enable Keep-Alive. It serves the following resources.
Quote:
Originally Posted by Chadi View Post
Is there a particular way to trace what plug-in(s) or scripts might be causing a slow down on my site? The server I have is superb and dedicated to me. I've optimized MySQL / Apache / PHP and not sure why the site loads pretty slow.

http://www.talkjesus.com/forum.php

Not sure how accurate this is:
http://tools.pingdom.com/fpt/#!/HcfgLSsYT/talkjesus.com

I've disabled 2 plugins, disabled Remote YUI (it was set to Yahoo) and cleared system cache, optimized database. Still loads slow. I'm using Chrome as well on a 20MBps cable connection.
Reply With Quote
  #7  
Old 12-20-2012, 08:53 PM
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the tools.

How do I rectify this when I disabled Yahoo Remote YUI?

http://yui.yahooapis.com/2.6.0/build...ntainer-min.js (66.1KiB)
http://yui.yahooapis.com/2.6.0/build/menu/menu-min.js (51.6KiB)
Reply With Quote
  #8  
Old 12-20-2012, 08:58 PM
final kaoss final kaoss is offline
 
Join Date: Apr 2006
Posts: 1,314
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm not exactly sure of what you're asking with that last post but for the rest of the issues my guide can help you out, look in my sig.
Reply With Quote
  #9  
Old 12-20-2012, 10:07 PM
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks. Took me forever to do this but did it.

Unfortunately I'm still at a D rating.

http://gtmetrix.com/reports/talkjesus.com/eADCrAX4

Still getting the sprites F rating? I installed / did that step too.

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

Also, when I enable Mod Rewrite Friendly URLs, my links no longer work at all. Clicking any link simply refreshes the home page.
Reply With Quote
  #10  
Old 01-15-2013, 03:01 AM
final kaoss final kaoss is offline
 
Join Date: Apr 2006
Posts: 1,314
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ah I just had a look at your site and it seems your running vbseo. Simply remove the friendly url rewrite in the htaccess and replace that part with vbseo's friendly rewrite rules.

Here is what I recommend you try, since it seems you're using vb 420 & vbseo.

If you have different friendly url rewrite rules than those listed below, then simply keep an editor open with them intact or save them to a document & replace the rules within #Friendly Rewrite Rules Start & #Friendly Rewrite Rules End

PHP Code:
# Author: Final Kaoss 
# Version 2.8
# Special Thanks Goes to W3Total Cache for much of the htaccess rules
# Downloaded from: https://vborg.vbsupport.ru/showthread.php?t=288429
RewriteEngine on

#Friendly Rewrite Rules Start

# Comment the following line (add '#' at the beginning)
# to disable mod_rewrite functions.
# Please note: you still need to disable the hack in
# the vBSEO control panel to stop url rewrites.
RewriteEngine On

# Some servers require the Rewritebase directive to be
# enabled (remove '#' at the beginning to activate)
# Please note: when enabled, you must include the path
# to your root vB folder (i.e. RewriteBase /forums/)
#RewriteBase /

#RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com
#RewriteRule (.*) http://www.yourdomain.com/forums/$1 [L,R=301]

RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$[L]

RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap|api\.php)
RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond 
%{REQUEST_FILENAME} !-d
RewriteCond 
%{REQUEST_FILENAME} !/(admincp|modcp|clientscript|cpstyles|images)/
RewriteRule ^(.+)$ vbseo.php [L,QSA]


#Friendly Rewrite Rules End

#Deny attempts to view the Htaccess file.
<Files .htaccess>
Order allow,deny
Deny from all
</Files>
# BEGIN Browser Caching/Headers
<IfModule mod_mime.c>
        
AddType text/css .css
        AddType text
/richtext .rtf .rtx
        AddType image
/svg+xml .svg .svgz
        AddType text
/plain .txt
        AddType text
/xsd .xsd
        AddType text
/xsl .xsl
        AddType video
/asf .asf .asx .wax .wmv .wmx
        AddType video
/avi .avi
        AddType image
/bmp .bmp
        AddType application
/java .class
        
AddType video/divx .divx
        AddType application
/msword .doc .docx
        AddType application
/x-msdownload .exe
        AddType image
/gif .gif
        AddType application
/x-gzip .gz .gzip
        AddType image
/x-icon .ico
        AddType image
/jpeg .jpg .jpeg .jpe
        AddType application
/vnd.ms-access .mdb
        AddType audio
/midi .mid .midi
        AddType video
/quicktime .mov .qt
        AddType audio
/mpeg .mp3 .m4a
        AddType video
/mp4 .mp4 .m4v
        AddType video
/mpeg .mpeg .mpg .mpe
        AddType application
/vnd.ms-project .mpp
        AddType application
/vnd.oasis.opendocument.database .odb
        AddType application
/vnd.oasis.opendocument.chart .odc
        AddType application
/vnd.oasis.opendocument.formula .odf
        AddType application
/vnd.oasis.opendocument.graphics .odg
        AddType application
/vnd.oasis.opendocument.presentation .odp
        AddType application
/vnd.oasis.opendocument.spreadsheet .ods
        AddType application
/vnd.oasis.opendocument.text .odt
        AddType audio
/ogg .ogg
        AddType application
/pdf .pdf
        AddType image
/png .png
        AddType application
/vnd.ms-powerpoint .pot .pps .ppt .pptx
        AddType audio
/x-realaudio .ra .ram
        AddType application
/x-shockwave-flash .swf
        AddType application
/x-tar .tar
        AddType image
/tiff .tif .tiff
        AddType audio
/wav .wav
        AddType audio
/wma .wma
        AddType application
/vnd.ms-write .wri
        AddType application
/vnd.ms-excel .xla .xls .xlsx .xlt .xlw
        AddType application
/zip .zip
</IfModule>
<
IfModule mod_expires.c>
        
ExpiresActive On
        ExpiresByType text
/css A2628000
        ExpiresByType text
/richtext A3600
        ExpiresByType image
/svg+xml A3600
        ExpiresByType text
/plain A3600
        ExpiresByType text
/xsd A3600
        ExpiresByType text
/xsl A3600
        ExpiresByType video
/asf A2628000
        ExpiresByType video
/avi A2628000
        ExpiresByType image
/bmp A2628000
        ExpiresByType application
/java A2628000
        ExpiresByType video
/divx A2628000
        ExpiresByType application
/msword A2628000
        ExpiresByType application
/x-msdownload A2628000
        ExpiresByType image
/gif A2628000
        ExpiresByType application
/x-gzip A2628000
        ExpiresByType image
/x-icon A2628000
        ExpiresByType image
/jpeg A2628000
        ExpiresByType application
/vnd.ms-access A2628000
        ExpiresByType audio
/midi A2628000
        ExpiresByType video
/quicktime A2628000
        ExpiresByType audio
/mpeg A2628000
        ExpiresByType video
/mp4 A2628000
        ExpiresByType video
/mpeg A2628000
        ExpiresByType application
/vnd.ms-project A2628000
        ExpiresByType application
/vnd.oasis.opendocument.database A2628000
        ExpiresByType application
/vnd.oasis.opendocument.chart A2628000
        ExpiresByType application
/vnd.oasis.opendocument.formula A2628000
        ExpiresByType application
/vnd.oasis.opendocument.graphics A2628000
        ExpiresByType application
/vnd.oasis.opendocument.presentation A2628000
        ExpiresByType application
/vnd.oasis.opendocument.spreadsheet A2628000
        ExpiresByType application
/vnd.oasis.opendocument.text A2628000
        ExpiresByType audio
/ogg A2628000
        ExpiresByType application
/pdf A2628000
        ExpiresByType image
/png A2628000
        ExpiresByType application
/vnd.ms-powerpoint A2628000
        ExpiresByType audio
/x-realaudio A2628000
        ExpiresByType application
/x-shockwave-flash A2628000
        ExpiresByType application
/x-tar A2628000
        ExpiresByType image
/tiff A2628000
        ExpiresByType audio
/wav A2628000
        ExpiresByType audio
/wma A2628000
        ExpiresByType application
/vnd.ms-write A2628000
        ExpiresByType application
/vnd.ms-excel A2628000
        ExpiresByType application
/zip A2628000
</IfModule>
<
IfModule mod_deflate.c>
        <
IfModule mod_setenvif.c>
                
BrowserMatch ^Mozilla/4 gzip-only-text/html
                BrowserMatch 
^Mozilla/4\.0[678no-gzip
                BrowserMatch 
\bMSIE !no-gzip !gzip-only-text/html
                BrowserMatch 
\bMSI[E] !no-gzip !gzip-only-text/html
        
</IfModule>
        <
IfModule mod_headers.c>
                
Header append Vary User-Agent env=!dont-vary
        
</IfModule>
        <
IfModule mod_filter.c>
                
AddOutputFilterByType DEFLATE text/css application/x-javascript text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon
        
</IfModule>
</
IfModule>
<
FilesMatch "\.(css|CSS|)$">
        <
IfModule mod_headers.c>
                
Header set Pragma "public"
                
Header append Cache-Control "public, must-revalidate, proxy-revalidate"
        
</IfModule>
        
FileETag MTime Size
        
<IfModule mod_headers.c>
                 
Header set X-Powered-By "Step by Step guide to speed up your VB5"
        
</IfModule>
</
FilesMatch>
<
FilesMatch "\.(rtf|rtx|svg|svgz|txt|xsd|xsl|RTF|RTX|SVG|SVGZ|TXT|XSD|XSL|)$">
        <
IfModule mod_headers.c>
                
Header set Pragma "public"
                
Header append Cache-Control "public, must-revalidate, proxy-revalidate"
        
</IfModule>
        
FileETag MTime Size
        
<IfModule mod_headers.c>
                 
Header set X-Powered-By "Step by Step guide to speed up your VB5"
        
</IfModule>
</
FilesMatch>
<
FilesMatch "\.(asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx|exe|gif|gz|gzip|ico|jpg|jpeg|jpe|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|mpp|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|png|pot|pps|ppt|pptx|ra|ram|swf|tar|tif|tiff|wav|wma|wri|xla|xls|xlsx|xlt|xlw|zip|ASF|ASX|WAX|WMV|WMX|AVI|BMP|CLASS|DIVX|DOC|DOCX|EXE|GIF|GZ|GZIP|ICO|JPG|JPEG|JPE|MDB|MID|MIDI|MOV|QT|MP3|M4A|MP4|M4V|MPEG|MPG|MPE|MPP|ODB|ODC|ODF|ODG|ODP|ODS|ODT|OGG|PDF|PNG|POT|PPS|PPT|PPTX|RA|RAM|SWF|TAR|TIF|TIFF|WAV|WMA|WRI|XLA|XLS|XLSX|XLT|XLW|ZIP)$">
        <
IfModule mod_headers.c>
                
Header set Pragma "public"
                
Header append Cache-Control "public, must-revalidate, proxy-revalidate"
        
</IfModule>
        
FileETag MTime Size
        
<IfModule mod_headers.c>
                 
Header set X-Powered-By "Step by Step guide to speed up your VB5"
        
</IfModule>
</
FilesMatch>
# End Browser Caching/Headers 
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 01:35 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04243 seconds
  • Memory Usage 2,360KB
  • 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
  • (3)bbcode_code
  • (1)bbcode_php
  • (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
  • (1)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
  • (10)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