vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Microstats - load times, server loads, queries, uncached templates (https://vborg.vbsupport.ru/showthread.php?t=82900)

teedizz 01-10-2007 11:31 PM

Does anyone no why when i try to import this as a product is says " No file uploaded and no local file found. " ...then when i try to install it as a plug-in it says the ame thing....Im running 3.6.4

mrahul 01-11-2007 05:12 AM

Quote:

Originally Posted by Icy (Post 1155324)
Then it should work. I don't know. Try reinstalling the hack.
@ mrahul. Yep works fine for me.

oki, just tried & it worked. yipppee!! thanks

fly 02-05-2007 03:24 PM

The only place that it doesnt work is the logon redirection screen. All the stats there are waaaay wrong on my forum. Anyone got a fix for that?

bluechris 02-20-2007 11:47 AM

Hi guys .. i get this in 3.6.4 when i enable the mod

The specified CGI application misbehaved by not returning a complete set of HTTP headers.

And i d know wheres the prob.

thincom2000 02-21-2007 05:16 AM

In my experience that has been a problem with my host and no fault of my own.

bluechris 02-21-2007 12:52 PM

Its a rented server by me.. so i control it fully... if you can be more specific i will appreciate it.

Thx
Chris

eclectica 03-04-2007 03:47 PM

When I upgraded vBulletin to 3.6.5 it stopped showing server loads to me.

curriertech 03-04-2007 03:50 PM

Quote:

Originally Posted by eclectica (Post 1195544)
When I upgraded vBulletin to 3.6.5 it stopped showing server loads to me.

It's working fine on both of my 3.6.5 sites so I don't think it's a version issue. Try reinstalling the plugin?

eclectica 03-04-2007 09:59 PM

I tried reinstalling. Maybe it's the webhoster or server settings then. Thanks.

Smoothie 03-04-2007 10:04 PM

works fine for me w/ 3.6.5

lighter 04-28-2007 08:52 AM

Is there a way to hide the whole stats from the public but show the stats + server loads to a few selected usergoups only?

Slyfox1 05-23-2007 09:58 AM

Awesome!!

Simple, flexible and works with 3.7.1

Just one thing. I don't want to see the cache information. I've changed the group ID to 200 atm, is there a way I can remove this information out of the plugin? I did try and it all failed :(

I only really wanna see the time to generate the page and the number of queries?

Thanks

mcyates 07-14-2007 07:51 AM

Page generated in 0.188 seconds (100.00% PHP - 0% MySQL) with 21 queries

Why does it always show 100.00% PHP - 0% MySQL?

Doe I have to edit something on my server to show the % for mysql and php?

Thanks in advance.

frostyIntrepid 09-19-2007 02:06 PM

Quote:

Originally Posted by flypaper (Post 1175271)
The only place that it doesnt work is the logon redirection screen. All the stats there are waaaay wrong on my forum. Anyone got a fix for that?

Mine is showing wrong stats as well. Something like 5323 seconds for 12 queries?

Smiry Kin's 09-19-2007 02:50 PM

it is designed for 3.5.4.. soo if your using a different version. readings might be incorrect!

frostyIntrepid 09-21-2007 09:41 AM

Quote:

Originally Posted by Smiry Kin's (Post 1342476)
it is designed for 3.5.4.. soo if your using a different version. readings might be incorrect!

hmm, any idea how I can get edit it for it to work correctly for 3.6.8?

Smiry Kin's 09-21-2007 01:58 PM

No idea, sorry. But someone said before that you can take the query info out off the ACP, and place it on the main footer, it also doesnt add to any querys

Traxdata 12-18-2007 04:09 PM

works on 3.70. beta2

MissKalunji 03-20-2008 11:45 PM

working on 3.7.0 Beta Rc 1

cavyspirit 04-18-2008 02:11 AM

My forum is really slow to load pages at certain times of the day.

I got:
Page generated in 18.34197 seconds with 14 queries [Server Loads: 5.68 2.76 : 1.35]
Then, once in and doing a refresh, I got:
Page generated in 1.84214 seconds with 14 queries [Server Loads: 1.18 2.15 : 1.34]

I'm running a virtual private server and according to my host, utilization all the way around is very low. Upgrading to a dedicated server supposedly isn't going to buy me anything.

I like the hacks that I have, but it seems something(s) gotta go. I just took one rss javascript feed out of the left-hand column, but it looks like more's gotta go. Bummer.

I'm not sure what the server load numbers really mean.

I'm currently on 3.6.4 waiting for 3.7 gold to upgrade.

I thought the stats would show more queries based on my hacks, so now I'm not sure how to tune.

www.guineapigcages.com/forum/index.php

MissKalunji 04-18-2008 02:25 AM

what hack do you have?

cavyspirit 04-18-2008 02:58 AM

36:

Add PhotoPost Pro to each forum
Archive Adsense
BBcode templates manager
Cafe Press Add On
Catagory Icons
Enhanced Captcha Image Verification
FlashChat Integration
Global Announcement
GTSearch: Googleâ„¢ Custom Search Engine
Guest Tracking
IpInfo
Latest X Threads on Forum Home
Left Column
Members who are using flashchat
Members who have Visited
Microstats
Mini Navbar
Miserable Users
Moderation Auto-PM
Multiple Login Detector
NoSpam!
Per-Thread Moderation
Post Thank You Hack
Real ip detection
Separate Sticky and Normal Threads
Show Birthday Icon in Postbit
SR Classifieds Premium 1.0.5
Sticky-Blue
Total Thanks - Forum Home Stats
vB Ad Management
vB Ad Management English language
vbgooglemap by StonyArc
vBSEO
vBSEO :: Sitemap Generator
Viper's YouTube & Google Video
Welcome Headers

fly 04-18-2008 12:38 PM

Quote:

Originally Posted by cavyspirit (Post 1493443)
My forum is really slow to load pages at certain times of the day.

I got:
Page generated in 18.34197 seconds with 14 queries [Server Loads: 5.68 2.76 : 1.35]
Then, once in and doing a refresh, I got:
Page generated in 1.84214 seconds with 14 queries [Server Loads: 1.18 2.15 : 1.34]

I'm running a virtual private server and according to my host, utilization all the way around is very low. Upgrading to a dedicated server supposedly isn't going to buy me anything.

I like the hacks that I have, but it seems something(s) gotta go. I just took one rss javascript feed out of the left-hand column, but it looks like more's gotta go. Bummer.

I'm not sure what the server load numbers really mean.

I'm currently on 3.6.4 waiting for 3.7 gold to upgrade.

I thought the stats would show more queries based on my hacks, so now I'm not sure how to tune.

www.guineapigcages.com/forum/index.php

Those loads are high. Try disabling like 5 hacks at a time and see if you can narrow it down to a certain hack. Or turn off all plugins by editing config.php and see if load times stay the same. If so, you either have too many users for the server or vB isn't the problem...

MissKalunji 04-18-2008 01:56 PM

Quote:

Originally Posted by cavyspirit (Post 1493458)
36:

Add PhotoPost Pro to each forum
Archive Adsense
BBcode templates manager
Cafe Press Add On
Catagory Icons
Enhanced Captcha Image Verification
FlashChat Integration
Global Announcement
GTSearch: Google™ Custom Search Engine
Guest Tracking
IpInfo
Latest X Threads on Forum Home
Left Column
Members who are using flashchat
Members who have Visited
Microstats
Mini Navbar
Miserable Users
Moderation Auto-PM
Multiple Login Detector
NoSpam!
Per-Thread Moderation
Post Thank You Hack
Real ip detection
Separate Sticky and Normal Threads
Show Birthday Icon in Postbit
SR Classifieds Premium 1.0.5
Sticky-Blue
Total Thanks - Forum Home Stats
vB Ad Management
vB Ad Management English language
vbgooglemap by StonyArc
vBSEO
vBSEO :: Sitemap Generator
Viper's YouTube & Google Video
Welcome Headers

yeah try what the othe rperson said and you can also post a server optimization on vb.com it helps a lot are you on dedicated? or shared?

It took me : Page generated in 115.71136 seconds

Keep in mind that some like :latest x thread are server intensive some aren't build for active forums as well....

The number of queries isn't all but also how heavy a query is


i also notice that your forum itself isn't slow ONLY the main page....so it could be that your problem?

Traxdata 04-30-2008 04:20 PM

working on 3.7 Gold! Great! :)

MissKalunji 04-30-2008 04:37 PM

*co-sign*

mrahul 05-15-2008 09:42 AM

work for 3.7.x and any releases planned ?

Kinneas 05-19-2008 01:47 PM

Quote:

Originally Posted by mrahul (Post 1520286)
work for 3.7.x and any releases planned ?

I'd say no, considering the Author of this one hasn't posted since 2006. The good news is this one still works fine on 3.7.

mrahul 05-26-2008 06:48 AM

that's great, where ever the author is 3cheers for his excellent coding to be working on 2 later releases too :up:

Artes_Marciales 06-06-2008 02:52 PM

Thanks Work fine 3.7.1 : )

odeezie 06-26-2008 05:14 PM

Working in 3.7.2, Thanks! :)

ALil'Hope 06-29-2008 02:24 AM

Installed and working on 3.7.2.

David_R 08-05-2008 02:17 PM

How do we enable this option to work for multiple usergroups ?
We want Administrators, super-moderators and moderator usergroups to be able to check server load.s

thanks

Jaxel 08-19-2008 12:05 AM

How would I go about moving the location of the text that gets printed out?

I would like to put it with the copyright text... Otherwise it screws with my design:

http://www.8wayrun.com/forums.php

Orakk 09-11-2008 11:39 AM

Quote:

Originally Posted by Moparx (Post 788702)
make sure you have the following in config.php:
PHP Code:

$config['Microstats']['replacementvariable'] = '<!-- display microstats here -->'

then add <!-- display microstats here --> at the very bottom of the footer template

Worked on 373PL1 :up:

Neutral Singh 11-09-2008 05:28 AM

It is possible to see which query is taking how much time to execute? So that we can debug or optimize those queries. i am facing issued when clicking on the Forums to go to forumdisplay.php. Its taking like 25 secs on load 43 queries on a forumdisplay.php page. How can view those queries and how much they are taking. This is most urgent please.

aciurczak 11-09-2008 03:31 PM

I don't think this hack can be used to time individual queries, it only marks the time difference between the page request and when it is complete.

43 queries on a forumdisplay.php page seems like quite a bit of them. I just loaded the forumdisplay.php page on two forums I admin. The more customized one ran 26 queries on a forumdisplay, one that is a little closer to stock ran 21 queries. To figure out what is taking so long on yours, I'd disable all plug-ins, then re-enable them 1 by 1 until you see the page load time increase dramatically.

RvG2 11-28-2008 05:24 PM

works with 3.8.0 beta 4 as well

zefyx 12-25-2008 02:42 PM

Quote:

Originally Posted by David_R (Post 1591913)
How do we enable this option to work for multiple usergroups ?
We want Administrators, super-moderators and moderator usergroups to be able to check server load.s


thanks

Go to Plugin & Products System -> Product Manager -> Microstats.

Remove the current code, replace with..

$pageendtime = microtime();
$starttime = explode(' ', $pagestarttime);
$endtime = explode(' ', $pageendtime);
$totaltime = vb_number_format($endtime[0] - $starttime[0] + $endtime[1] - $starttime[1], 5);
$debughtml = '<center><span class="smallfont">Page generated in <b>' . $totaltime . '</b> seconds with <b>' . $vbulletin->db->querycount . '</b> queries';
$usergroupid = $vbulletin->userinfo['usergroupid'];

if ($usergroupid == 5 || $usergroupid == 6 || $usergroupid == 7) {

if ($loadavg = @file_get_contents("/proc/loadavg")) {

$regs = explode(" ",$loadavg);
$serverload = ' [Server Loads: <b>' . $regs[0] .'</b> ' . $regs[1] . ' : ' . $regs[2] . ']';

}elseif ($stats=@exec('uptime')) {

preg_match('/averages?: ([0-9\.]+),[\s]+([0-9\.]+),[\s]+([0-9\.]+)/',$stats,$regs);
$serverload = ' [Server Loads: <b>' . $regs[1] .'</b> ' . $regs[2] . ' : ' . $regs[3] . ']';

}elseif ($loadavg = @`sysctl vm.loadavg|cut -d" " -f3-5`) {

$regs = explode(" ",$loadavg);
$serverload = ' [Server Loads: <b>' . $regs[0] .'</b> ' . $regs[1] . ' : ' . $regs[2] . ']';

}

$debughtml .= iif($_TEMPLATEQUERIES, ' (<b>' . sizeof($_TEMPLATEQUERIES) . '</b> queries for uncached templates)', '') . "$serverload";

ksort($tempusagecache);

foreach ($tempusagecache AS $tempname => $times) {
if ($_TEMPLATEQUERIES["$tempname"]){
$debughtml .= '<center><span class="smallfont">Uncached templates: <font color="red"><b>' . $tempname . '</b></font> (' . $times . ')</span></center>';
}
}

}

$debughtml .= "</span></center>";

if (!$vbulletin->config['Microstats']['replacementvariable']) {

$vbulletin->config['Microstats']['replacementvariable'] = '</body>';

}

if (($vbulletin->config['Microstats']['adminonly'] and $vbulletin->userinfo['usergroupid'] == 5 || $usergroupid == 6 || $usergroupid == 7) or !$vbulletin->config['Microstats']['adminonly']){

$output = str_replace($vbulletin->config['Microstats']['replacementvariable'], $debughtml . $vbulletin->config['Microstats']['replacementvariable'], $output);

}


Where you see the usergroupid = 5, 6 & 7, replace those numbers with whatever your usergroup id's are that you want to see the microstats.

Hope this helps :)

Dimoks 03-05-2009 04:26 PM

I need this plugin :

generated this page in 0.21 seconds (79.54% PHP - 20.46% MySQL) with 11 queries.

from forum http://forums.offtopic.com/

p.s. good forum... Posts: 112,870,447 :)


All times are GMT. The time now is 10:34 PM.

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.01839 seconds
  • Memory Usage 1,831KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete