![]() |
But it shouldn't be going into negative numbers should it? And I also notice when they get really high, the page takes forever to load.
|
Quote:
i seen that too i think its vbulletin itself.... cause mine is doing the same thing every so many pages loads too it never really reads the same... |
Quote:
Once we have that specific value, we deduct from it the script start time, in order to obtain the the PHP execution time. Let's don't count the DB connection time, first. In init.php, find this line: Code:
$db->mstimer_stop(); Code:
$db->mstimer_stop(false); One more time, vBMicroStats reads ONLY what is happening behind the script, it does not affect in anyway the vBulletin functionment. Make me a favor. Disable vBMicroStats (code, etc.), enable the debug mode and look at the explained pages, while refreshing the page several times, the same way you do now with vBMicroStats enabled. Post the results here. On my forums, they are almost identical in both cases. However, we need to find out why we get SQL spikes once in a while. With SQL is simple, you cannot have SOMETIMES certain results. Is either NEVER or ALL THE TIME. |
Great mod!
But, how come the server avarages aren't showing up? I have it setup correctly in the adminCP. Also, on vb3.0.x it always did show. (to clearify, all other functions seem to be working allright) |
You used my vBMicroStats for VB 3.0? It should show, it's the same code.
Let me know... maybe you changed the server software since then? I will post a fix once I have more info from you. |
Quote:
using 3.5.4 - didnt use any previous hacks |
In vBMicroStats Global Hook, find:
Code:
if ($vbulletin->options['vb_mstats_server'] AND $stats = @exec('uptime 2>&1') AND trim($stats) != '' AND preg_match("#: ([\d.,]+),?\s+([\d.,]+),?\s+([\d.,]+)$#", $stats, $regs)) Code:
if ($vbulletin->options['vb_mstats_server']) |
not for me
here is what my output is with ALL options set to yes Page generated in 0.44428802 seconds (91.86% PHP - 8.14% MySQL) with 7 queries 3,737.15KB Used | DEBUG Mode OFF | GZIP ON (level 1) | NO Uncached Templates |
Raptor, if I understand correctly, you see the server loads into your Admin CP, but not into every page?
It just doesn't make sense. It was working perfectly for everyone, all of the sudden we have 2 members letting me know the server loads are not showing. The original version should work perfectly, no code mod needed. It's working perfectly on my server. Anyone else have the server loads showing with the latest version? |
Possibly not ticked in the admincp to show?
|
Tulsa, do you have the latest version installed and the server loads are displaying correctly?
|
Yes, I started with this latest version and it works great. Now I don't get the memory stats with php4 but I do with php5. So everything appears to be functioning properly on my site.
I think this hack is great. Couldn't tell you how many things I've gone in and tweaked to make everything more efficient because of this little jewel. |
Quote:
|
Quote:
|
Im getting this
Page generated in 0.06948209 seconds (70.36% PHP - 29.64% MySQL) with 12 queries 2,421.72KB Used | DEBUG Mode OFF | GZIP ON (level 1) | NO Uncached Templates goin to enable php5 and se if there are any diference. |
No change, there do i find the setting to enable vb debug mode?
|
Quote:
You don't see the memory stats in PHP4 because it was not compiled with enable-memory-limit option. |
I downloaded the zip file and in it were two things:
1 product-plugin_vbmicrostats and 2 vbmicrostats (an html file, instructions) class_core.php (folder /includes) was NOT in the zip init.php (folder /includes) was NOT in the zip Am I missing something or is the zip??? |
Look into your forum /includes folder. ;)
|
Duh, Thanks. I will leave that post just so others who are having brain farts won't have to post...
|
I installed it and here is what it says at the bottom of the page for two different page loads...
Page generated in 1.477 seconds (23.55% PHP - 76.45% MySQL) with 9 queries Page generated in 2.044 seconds (-3.44% PHP - 103.44% MySQL) with 11 queries Page generated in 4.277 seconds (-19.53% PHP - 119.53% MySQL) with 12 queries What do these numbers mean? |
Quote:
https://vborg.vbsupport.ru/showpost....&postcount=123 |
Wow, Just did it and that helped the speed of the page loads immediately!
|
I think I spoke too fast. It was really fast at first and now it's slow again. This just stinks! Any other suggestions?
|
sorry iam a newbie but what is the reak benefit of this hack
|
Quote:
|
Quote:
how can we fix it? I have bad piece of code Page generated in 2.74304891 seconds (62.81% PHP - 37.19% MySQL) with 22 queries :down: :down: :down: :down: :down: |
Quote:
It might be related to the time it takes to count the connection execution, that's the reason I asked you to disable it for now. I'm waiting on Scott to give more feedback on vBulletin's behaviour. http://www.vbulletin.com/forum/bugs3...iew&bugid=2481 |
Quote:
|
Hi its ive installed it without any errors or anything but for me nothing is showing, ive enabled it also :(
|
hi,
i installed the hack on my test forum, and it works but i have errors at the top on the page : Quote:
thanks for your help |
hi, i've installed vBMircostats, excellent work TECK.
I'm getting a high number regarding queries. i see everyone is getting 5-15 but i'm getting 30+ most of the times, especially when i browse my forum's threads. Page generated in 1,14650702 seconds (46,75% PHP - 53,25% MySQL) with 32 queries does anyone know how to fix this? thank you in advance |
Quote:
|
Quote:
|
Quote:
Code:
$total_time = vb_number_format($end_time[0] Code:
$total_time = number_format($end_time[0] |
Quote:
Code:
$output = str_replace('{microstats}', $microstats_output, $output); Since I don't have PhotoPost, the best way is to ask other PhotoPost coders how the output is processed. All you have to do is add there the replacement line listed above, adapted to their code... |
yes it works ! thanks a lot !
|
Excellent, alors... clique sur le piton pour montrer aux gens que tu utilise ce mod. :)
|
Quote:
|
vbulletin options > bbmicrostats > Enable the vBMicroStats plugin > yes
Now I do believe we have a typo in the vbulletin options title. ;) |
All times are GMT. The time now is 12:09 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|