vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Microstats (only for admin) - load times, server loads, queries, uncached templates! (https://vborg.vbsupport.ru/showthread.php?t=59700)

jancarlo 06-04-2004 12:03 PM

@ neocorteqz, hour all ok! :D

thanks and CIAO
jancarlo

neocorteqz 06-04-2004 03:43 PM

Quote:

Originally Posted by jancarlo
@ neocorteqz, hour all ok! :D

thanks and CIAO
jancarlo

Glad i could help. :)

jancarlo 06-13-2004 11:46 AM

And if you wanted others usergroups? How I must make? Type also
usergroups 12?

if ($bbuserinfo[usergroupid]==6) {

thanks
jancarlo

neocorteqz 06-13-2004 03:55 PM

Quote:

Originally Posted by jancarlo
And if you wanted others usergroups? How I must make? Type also
usergroups 12?

if ($bbuserinfo[usergroupid]==6) {

thanks
jancarlo

Code:

$bbuserinfo[usergroupid] == 6 and $bbuserinfo[usergroupid] == 12

jancarlo 06-13-2004 07:19 PM

Quote:

Originally Posted by neocorteqz
Code:

$bbuserinfo[usergroupid] == 6 and $bbuserinfo[usergroupid] == 12

it does not go well :ermm:

it is looked at alone with group 6

jancarlo

Fenriz 06-17-2004 07:59 AM

Could anyone tell, how I can add results of this hack right after $vboptions[copyrighttext] in footer template?

Vega 06-17-2004 11:10 AM

Can't see the server load neither.

Server OS/PHP Linux; PHP v4.3.0; apache Safe Mode

Any suggestions?

thanks in advance

barnest2 06-17-2004 07:49 PM

Quote:

Originally Posted by Vega
Can't see the server load neither.

Same thing with me. Someone mentioned that the previous version of the hack didn't need adding /proc into your ini files...can someone please post the original hack again?

Erwin 06-17-2004 08:01 PM

Quote:

Originally Posted by barnest2
Same thing with me. Someone mentioned that the previous version of the hack didn't need adding /proc into your ini files...can someone please post the original hack again?

I added the old version to the first post. :) You can now choose between Version 1.0 and Version 1.1.

barnest2 06-17-2004 08:40 PM

Quote:

Originally Posted by Erwin
I added the old version to the first post. :) You can now choose between Version 1.0 and Version 1.1.


MUCH appreciated! That did the trick. Version 1.1 didn't show my server loads but version 1.0 does. :up:

atomic fireball 06-27-2004 04:37 PM

Thanks, Erwin.

Worked like a charm!

ShiningArcanine 07-07-2004 08:53 PM

Erwin, why not just replace $vartext with $output and then place the hack in phpinclude_end? It eliminates the need to hack functions.php and is executed right below where you recommend placing the hack.

Erwin 07-07-2004 11:40 PM

Quote:

Originally Posted by ShiningArcanine
Erwin, why not just replace $vartext with $output and then place the hack in phpinclude_end? It eliminates the need to hack functions.php and is executed right below where you recommend placing the hack.

Because putting it in phpinclude_end may not give you an accurate count of queries perhaps? And it may not work? I haven't thought about it, and haven't tried it - maybe you can try and compare the 2 and see if there is a difference.

ShiningArcanine 07-08-2004 01:22 PM

I tried it; there is no difference in query count and it works like a charm.

Erwin 07-08-2004 10:38 PM

There you go. :) Never thought it would work as well - the vB3 debug stats are all in functions.php, hence the reason why this hack went to the same spot too.

SaN-DeeP 07-10-2004 02:49 AM

hi erwin thnx for the nice hack :)

Version 1.1 works fine for me
Page generated in 0.21845 seconds with 10 queries [Server Loads: 0.24 0.23 : 0.18]

just a small question: as you specified in ur instructions.

Quote:

Information shown:
1) Page loading times
2) Number of Queries
3) Server Loads
4) Any Uncached Templates
were are these uncached templates seen ?

Regards,

Jolten 07-10-2004 04:25 AM

If their are uncached templates the number of them will be shown at the end of the line.. e.g. "2 queries for uncached templates"

Erwin 07-14-2004 12:30 PM

UPDATE:
-----------

Version 1.2 (servers with proc - more efficient) or Version 1.02 (servers without proc - still works)

-> now the names of all uncached templates show up - helpful to find and cached any uncached templates to save queries. :)

PET 07-14-2004 05:43 PM

On my forum i have 1.2. Now i hear of a 1.02. WTF ? What do i need to modify to have the new version, also, what new things this new version has ?

the Sandman 07-21-2004 05:20 PM

All of a sudden, I'm getting erroneous, very large load times listed:
Quote:

Page generated in 18,859 seconds with 11 queries [Server Loads: 0.69 1.66 : 2.03]

Ocean 07-21-2004 05:46 PM

Quote:

Originally Posted by the Sandman

All of a sudden, I'm getting erronious, very large load times listed:

I'm seeing those as well, but so far, I have only seen them on the Login Redirect screen.

Erwin 07-21-2004 10:48 PM

Quote:

Originally Posted by the Sandman
All of a sudden, I'm getting erroneous, very large load times listed:

Odd - which version are you using? The proc one (1.2) or the older non-proc one (1.02)? I'm using version 1.2 since my server has proc, and it's working normally.

the Sandman 07-21-2004 11:15 PM

I'm also using version 1.2. As far as I know, it was working normally, and then I suddenly noticed these crazy values. I did go ahead and re-upload the file to my server, but that made no difference. :ermm:

Kathy did just have Apache recompiled on the server - could it be related to that?

Erwin 07-21-2004 11:23 PM

Quote:

Originally Posted by the Sandman
I'm also using version 1.2. As far as I know, it was working normally, and then I suddenly noticed these crazy values. I did go ahead and re-upload the file to my server, but that made no difference. :ermm:

Kathy did just have Apache recompiled on the server - could it be related to that?

No, because my Apache was recently recompiled too.

the Sandman 07-21-2004 11:31 PM

I swapped in version 1.02 in place of 1.2, but the high page generation values remained. I swapped 1.2 back in. I guess it's a problem in the server...

Ocean 07-22-2004 02:02 PM

Quote:

Originally Posted by the Sandman

I swapped in version 1.02 in place of 1.2, but the high page generation values remained. I swapped 1.2 back in. I guess it's a problem in the server...

That doesn't explain why I get it on the Login Redirect pages. And they've been that way from the start.

Does anyone else have that?

the Sandman 07-22-2004 05:17 PM

Something else weird I noticed. I copied these server load averages from the AdminCP:
Quote:

Server Load Averages 283 244 203 | 41 Users Online (12 members and 29 guests)
At the same time the Microstats read:
Quote:

Page generated in 20,799 seconds with 11 queries [Server Loads: 3.35 : 2.51 : 2.04]
There's quite a discrepancy in the server loads averages reported and it appears (I hope) that the correct values are from Microstats and the AdminCP values are way off, most likely by a factor of 100...

AN-net 07-22-2004 05:43 PM

anyone else notice the seconds are being reported like that>_> it is susposed to be a demical and most of us hope it is a decimal.

the Sandman 07-22-2004 06:03 PM

I still think it's a server issue. I uninstalled Erwin's Microstats and installed Teck's Microstats. I'm still getting the ridiculously high page generation times from Microstats and the screwy server load averages in the AdminCP...

HakkieDEV 07-25-2004 02:15 PM

Awesome hack mate, using it with pleasure!

/me clicks install

jancarlo 07-25-2004 04:20 PM

@ Erwin

Seen the new version, why you do not make also a txt? With Mac I do
not succeed to copy from windows PHP Code.

thanks
jancarlo

Modin 07-26-2004 04:28 AM

this is a great hack mate, nice work :up:

deathemperor 07-26-2004 08:12 AM

time to take care of the loading average of my board
/me clicks install

Michael Morris 07-26-2004 08:49 AM

Doesn't work on RC4

integra99 07-26-2004 04:31 PM

1.2 works fine on 3.0.1

Littlebit 07-26-2004 04:47 PM

Hi Erwin,
I'd like to use your hack and was wondering if it works fine with 3.0.3?

Erwin 07-27-2004 01:30 AM

Quote:

Originally Posted by Littlebit
Hi Erwin,
I'd like to use your hack and was wondering if it works fine with 3.0.3?

Yes.

AnhTuanCool 07-27-2004 03:59 AM

Wait, I've just installed it, absolutely perfect, but the code is placed at the very bottom of the page, I don't want it over there, is there someway to bring it up or place it somewhere else? :|

Erwin 07-27-2004 03:22 PM

Quote:

Originally Posted by AnhTuanCOol
Wait, I've just installed it, absolutely perfect, but the code is placed at the very bottom of the page, I don't want it over there, is there someway to bring it up or place it somewhere else? :|

It has to be at the bottom because it has to read everything that gets parsed out first to get the correct time and number of queries. You could use a float tag to float it elsewhere I suppose.

AnhTuanCool 07-27-2004 03:32 PM

Oh, I see. ;)

Could you detail how to use a float tag to me? Thx ^__^


All times are GMT. The time now is 04:22 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.02355 seconds
  • Memory Usage 1,818KB
  • 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
  • (2)bbcode_code_printable
  • (17)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