vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   vbMicroStats: page load time, queries, GZIP and PHP version (https://vborg.vbsupport.ru/showthread.php?t=35811)

neocorteqz 04-21-2003 07:11 AM

Quote:

Today at 01:38 AM Sanjiyan said this in Post #800
Using the 2.3.0 version, and installed on 2.3.0 fine, apart from I get this:

Page generated in 1,050,903,363.6694 seconds (100.00% PHP - 0.00% MySQL) with 24 queries.
[Debug Mode OFF] [PHP v4.3.1] [GZIP enabled - level 2]

How do I change the Page generated in x.xxxxxxxx down to 1.234 seconds

And

It seems I have 100% PHP Load and 0% MySQL ??

Its running on a Windows XP Box atm.


change this value

// time format (how many digits you want to show)
$digits=8;

to anything you want, it's located in admin/functions
about 8 lines from

// ###################### Start dooutput #######################


as for the 100% PHP, rehack db_mysql.php, i believe thats the file..


I also have noticed you have your gzip level at 2, i was lead to believe then anything over a 1, wouldn't be any better. and would create more load. anyone else know if this is true??
https://vborg.vbsupport.ru/showthrea...ression+levels

ap0c 04-21-2003 10:08 AM

Quote:

Yesterday at 10:49 PM TECK said this in Post #798
76 queries??? This is huge, I hope you own the server because if it's a busy site, it will crash it.
I had to do some work:), the 76 queries came from the portal home page. It's down to Page generated in 0.16658294 seconds (83.29% PHP - 16.71% MySQL) with 55 queries, 44 queries for normal members.

the forum home page itself is now at 25 queries which seems about as good as I can get it.

Sanjiyan 04-21-2003 03:03 PM

Quote:

Today at 08:11 AM User_001 said this in Post #801
change this value

// time format (how many digits you want to show)
$digits=8;

to anything you want, it's located in admin/functions
about 8 lines from

// ###################### Start dooutput #######################


as for the 100% PHP, rehack db_mysql.php, i believe thats the file..


I also have noticed you have your gzip level at 2, i was lead to believe then anything over a 1, wouldn't be any better. and would create more load. anyone else know if this is true??
https://vborg.vbsupport.ru/showthrea...ression+levels


I did this for the $digit:

PHP Code:

  // time format
  
$digits=4;
  
$totaltime $endtime[0] - $starttime[0] + $endtime[1] - $starttime[1];
  
$trimmedtime number_format$totaltime $digits );
  
$percentphp number_format( ( ( ( $totaltime $querytime ) / $totaltime ) * 100 ) , ) . '% PHP';
  
$percentsql number_format( ( ( $querytime $totaltime ) * 100 ) , ) . '% MySQL'

And its still doing like 12 digitis long, and rehack the db_ file? I followed the install file right, I triple checked, after reading the thread, but its still doing it, I used the 2.3.0 verison of the hack, as I have a 2.3.0 board, or should I apply the older version?

neocorteqz 04-21-2003 04:42 PM

Quote:

Today at 11:03 AM Sanjiyan said this in Post #803
I did this for the $digit:

PHP Code:

  // time format
  
$digits=4;
  
$totaltime $endtime[0] - $starttime[0] + $endtime[1] - $starttime[1];
  
$trimmedtime number_format$totaltime $digits );
  
$percentphp number_format( ( ( ( $totaltime $querytime ) / $totaltime ) * 100 ) , ) . '% PHP';
  
$percentsql number_format( ( ( $querytime $totaltime ) * 100 ) , ) . '% MySQL'

And its still doing like 12 digitis long, and rehack the db_ file? I followed the install file right, I triple checked, after reading the thread, but its still doing it, I used the 2.3.0 verison of the hack, as I have a 2.3.0 board, or should I apply the older version?

The original instructions Work Great for me. No problems

and

Page generated in 0.1956 seconds (76.11% PHP - 23.89% MySQL) with 30 queries.

don't know why your didn't work... :confused:

Sanjiyan 04-21-2003 05:35 PM

could it be that I am running it under Apache 2 and Windows XP Pro?

TECK 04-22-2003 06:59 PM

Quote:

Yesterday at 06:38 AM Sanjiyan said this in Post #800
Using the 2.3.0 version, and installed on 2.3.0 fine, apart from I get this:

Page generated in 1,050,903,363.6694 seconds (100.00% PHP - 0.00% MySQL) with 24 queries.
[Debug Mode OFF] [PHP v4.3.1] [GZIP enabled - level 2]

How do I change the Page generated in x.xxxxxxxx down to 1.234 seconds

And

It seems I have 100% PHP Load and 0% MySQL ??

Its running on a Windows XP Box atm.

You did not hacked properly the db_mysql.php file.

Sanjiyan 04-23-2003 02:46 PM

TECH,

I've just reapllied the hack and it still displays 100% for PHP and 0% for MySQL.

I have attached the db_mysql.php file below, if I could borrow some of your time, in looking through the file, just to be sure I would be greatful.

Thanks

Red Blaze 04-23-2003 05:30 PM

Ok, I got this error.

Parse error: parse error, unexpected $ in /home/thesonic/public_html/vbtesting/admin/functions.php on line 1101

I went to line 1101 and couldn't find that "$".

EDIT: Nevermind, it got fixed on its own. :S

solent 04-24-2003 01:38 PM

help please

i have installed this hack and i get no errors at all. the problem is that i dont know the exact place to place this stats. and in some of the variables i get no value (see atach file).

can anyone point to me in which templates i need to edit to show the microstats at the bottom of every page as in vb.org?

also is the result shown in the attachment correct or i am doing something wrong with it?

I am using the template based version on vb2.3.0.


Thanks.

greate hack by the way. i love it. :D :D

Red Blaze 04-24-2003 04:54 PM

You have to place the variable into your footer. Preferably towards the bottom. Read the instructions, it tells you what variable to put.


All times are GMT. The time now is 05:01 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.02074 seconds
  • Memory Usage 1,765KB
  • 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_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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