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)
-   -   vBMicrostats (https://vborg.vbsupport.ru/showthread.php?t=116027)

Boofo 05-19-2006 10:41 PM

On 1.04 this is waht I'm seeing for the memory:

2,834.64KB Used

Is that right? ;)

DementedMindz 05-19-2006 10:42 PM

LOL i hope not you sure your seeing it right and its not the old age creepin up?

Boofo 05-19-2006 10:45 PM

well, since we only have 1 GB of memory on the server, it might be off a few points, I think. I might be old but I can still do math. ;)

DementedMindz 05-19-2006 10:49 PM

hmmm yeah i have a gig on mine and im only using 0.20KB Used and my forum is pretty active

Boofo 05-20-2006 05:26 AM

We must be running something different somewhere on our servers then. Hopefully, Teck will get it figured out. ;)

Zia 05-20-2006 06:47 AM

Its Nice.....we are currently using Microstats, that shows Server Load too.

Could it show the Server Load too ?

umm one more thing...any way to show Gzip stats Too ??

/me klicks install

Boofo 05-20-2006 06:54 AM

Quote:

Originally Posted by Zia
Its Nice.....we are currently using Microstats, that shows Server Load too.

Could it show the Server Load too ?

umm one more thing...any way to show Gzip stats Too ??

[high]* Zia klicks install[/high]

This already does that. You just have to turn them on in the options for them to show. ;)

Zia 05-20-2006 10:14 AM

Thankx Boofo :)

TECK 05-20-2006 03:31 PM

Quote:

Originally Posted by Boofo
We must be running something different somewhere on our servers then. Hopefully, Teck will get it figured out. ;)

Yes there is. The normal results are like the ones you have on your forum Bobby.
That's why I asked you guys about the server memory.
I will release a new version that will fix this problem.
Those who get results like .20KB are having the wrong stats. Only results like 2,928.45KB are good.
That's the memory used by vBulletin for the specific page.

RemiAlone 05-21-2006 07:20 AM

Hi there,

I'm having a problem with this plugin. I've installed the plugin and edited the .php pages and it works well for me and my registered users but the guests/not registered users keep getting a blank page. They can however still get to the photopost page and login there but registering is out of the question.

Do you've got any idea what i did wrong?

Zia 05-21-2006 12:11 PM

DementedMindz showed an attachment..

https://vborg.vbsupport.ru/attachmen...1&d=1148019441
here he putted an scrn shot......interested abt this one...could any one tell me..how could we do it..

tia...
waiting for reply..

Boofo 05-21-2006 12:47 PM

Quote:

Originally Posted by Zia
DementedMindz showed an attachment..

https://vborg.vbsupport.ru/attachmen...1&d=1148019441
here he putted an scrn shot......interested abt this one...could any one tell me..how could we do it..

tia...
waiting for reply..

This post in this thread explains how to make it text to be able to put it after the copyright info. I have mine just above the copyright, but did what was in the post here to be able to do that. Hope this helps. ;)

https://vborg.vbsupport.ru/showpost....2&postcount=21

DementedMindz 05-21-2006 06:00 PM

Quote:

Originally Posted by Zia
DementedMindz showed an attachment..

https://vborg.vbsupport.ru/attachmen...1&d=1148019441
here he putted an scrn shot......interested abt this one...could any one tell me..how could we do it..

tia...
waiting for reply..


or you could just upload everything how its suppose to be and follow my post here...

https://vborg.vbsupport.ru/showpost....6&postcount=36

i have the code i used and where i put it... screen shot is attached to show what it looks like

Zia 05-22-2006 05:33 AM

thnx..boofo & DementedMindz :)
it really helps..

Thnx. take care

DementedMindz 05-22-2006 05:35 AM

no problem glad we could help :)

Zia 05-22-2006 06:52 AM

Quote:

Originally Posted by DementedMindz
no problem glad we could help :)

:) u stay here 24/7 :p

DementedMindz 05-22-2006 01:35 PM

Quote:

Originally Posted by Zia
:) u stay here 24/7 :p


nah im just on mostly at night since my work schedule got flipped around a bit :) but if i have time durning the day i check things out... ;)

TECK 05-22-2006 07:35 PM

Version 1.0.5 released. Now, the query time is really acurate.
Another bug fixed, related to the colspan counter. This time, it really works!
The server memory problem is fixed.

Also, your microstats template is really easy to edit now. :)
The bad part: You will have to undo all code changes and uninstall the product, they are different now. However, they are still very easy to perform. ;)

Then start fresh with a new install.

DementedMindz 05-22-2006 07:40 PM

Quote:

Originally Posted by TECK
The bad part: You will have to undo all code changes and uninstall the product, they are different now. However, they are still very easy to perform. ;)

Then start fresh with a new install.


im going for the gold now lets see how long it takes me ;)

DementedMindz 05-22-2006 08:11 PM

well now i went from 20KB Used to 0KB Used...

TECK 05-23-2006 01:05 AM

Read what it says in the Microstats options, when you enable the Memory Server.
If you want, I could come up with a custom script to display the right Server memory... however, it might create some problems for other users.

So I said, I will disable the memory script for all servers, until everyone is happy.
So far, only those with the function memory_get_usage() compiled in PHP will see the stats.

Boofo 05-23-2006 01:25 AM

Quote:

Originally Posted by TECK
Read what it says in the Microstats options, when you enable the Memory Server.
If you want, I could come up with a custom script to display the right Server memory... however, it might create some problems for other users.

So I said, I will disable the memory script for all servers, until everyone is happy.
So far, only those with the function memory_get_usage() compiled in PHP will see the stats.

Did you add the (2.9MB) behind the KB memory usage in this version?

Zia 05-23-2006 02:19 AM

Quote:

Originally Posted by TECK
Version 1.0.5 released.

Thnx Man... Nice Shot-- Bulls Eye.

Snake 05-23-2006 11:10 AM

Nice! Thankies for the new update! =)

TECK 05-23-2006 03:33 PM

Quote:

Originally Posted by Boofo
Did you add the (2.9MB) behind the KB memory usage in this version?

Your board should display the same results like before, Bobby.
You have PHP compiled with memory_get_usage(), the best way to display accurate memory usage.

I will make a little "mod", for those who are still interested having the memory usage, without memory_get_usage() function available.
Post here if you are interested on getting it. :)
I will let you know how to edit the Global Hook, in order to make it work.
Once we have enough people that tested the mod, we will include it into the regular version.

My goal with this version was to avoid any stress to the server by performing non needed operations.

Boofo 05-23-2006 05:52 PM

Quote:

Originally Posted by TECK
Your board should display the same results like before, Bobby.
You have PHP compiled with memory_get_usage(), the best way to display accurate memory usage.

I will make a little "mod", for those who are still interested having the memory usage, without memory_get_usage() function available.
Post here if you are interested on getting it. :)
I will let you know how to edit the Global Hook, in order to make it work.
Once we have enough people that tested the mod, we will include it into the regular version.

My goal with this version was to avoid any stress to the server by performing non needed operations.

So I can stay with version 1.0.4 then? Or should I upgrade anyway? ;)

TECK 05-24-2006 12:52 AM

Everyone should upgrade.
The code is better written, there is also a gain in performance, very little, but there is one. :)

COBRAws 05-24-2006 01:31 AM

Thanks Floren!

Boofo 05-24-2006 01:39 AM

Quote:

Originally Posted by TECK
Everyone should upgrade.
The code is better written, there is also a gain in performance, very little, but there is one. :)

Will do. Thank you, sir. ;)

COBRAws 05-24-2006 02:30 AM

A recommendation for future releases.

keep a txt with old changes made. Because some people dont save zips on their drives, but I do. And I had to take a look at what did I add to my PHP's ;)


Sorry for being a pain in the ass :P

TECK 05-24-2006 03:03 AM

No pain at all, it's a very good idea. :)
Btw, I'm counting on guys like you... that will post the actual code changes.
Go ahead and post them. Thank you for helping out.

EDIT: 26 queries on your front page.. aren't you affraid???

Boofo 05-24-2006 02:17 PM

Or you can do like I did and re-upload the 2 files and you won't have to remember the changes then. ;)

Snake 05-24-2006 06:56 PM

TECK, how do I change the class name from "page" to "tfoot"? And what's up with the debuge mod? It says it's currently off.

Take a look - http://www.bonethugsforums.com/

TECK 05-25-2006 12:36 AM

Edit this code, inside the vBMicroStats Global Hook:
Code:

        // regular users template
        $users_template  = '<tr align="' . $stylevar['right'] . '">' . "\n";
        $users_template .= '        <td class="tcat"' . iif($show['colspan'], ' colspan="' . $colspan . '"') . '>' . "\n";
        $users_template .= '                <span class="smallfont">Page generated in ' . $total_time . ' seconds (' . $php_percent . ' - ' . $sql_percent . ') with ' . $query_count . ' queries</span>' . "\n";
        $users_template .= '        </td>' . "\n";
        $users_template .= '</tr>' . "\n";

        // administrator template
        $admin_template  = '<tr align="' . $stylevar['right'] . '">' . "\n";
        $admin_template .= '        <td class="alt1"' . iif($show['colspan'], ' colspan="' . $colspan . '"') . '>' . "\n";
        $admin_template .= '                <span class="smallfont">' . $memory_status . $debug_status . $gzip_status . $server_status . $templates_status . '</span>' . "\n";
        $admin_template .= '        </td>' . "\n";
        $admin_template .= '</tr>' . "\n";

Debug mode is always OFF, unless you add this line into your config.php file:
$config['Misc']['debug'] = true;

This is more like a security feature, in case you forget about it...

Snake 05-25-2006 09:29 PM

Oh thanks for your support! :)

Boofo 05-25-2006 09:51 PM

Is it normal for this:

Quote:

(33.50% PHP - 66.50% MySQL)
to flucuate to this:

Quote:

(76.21% PHP - 23.79% MySQL)
constantly? That is the report bad post page (with 7 queries) and it seems to go back and forth with almost every page refresh, or two. Not complaining, Teck, just curious. ;)

EDIT: Well, I just had this one show up on the same page:

Quote:

(-10.93% PHP - 110.93% MySQL)
;)

Raptor 05-25-2006 11:10 PM

what are my numbers like re: performance

Page generated in 1.18516898 seconds (49.02% PHP - 50.98% MySQL) with 14 queries
4,182.56KB Used | DEBUG Mode OFF | GZIP ON (level 1) | NO Uncached Templates

TECK 05-26-2006 05:49 AM

Bob, do you have a cache installed? That's what it generates a SQL spike...
I actually opened a ticket for this matter to vBulletin, their own code generates the same results...
http://www.vbulletin.com/forum/bugs3...iew&bugid=2481

So far Scott and Freddie are looking for a solution, the bug was confirmed.
The issue we are dealing with is the following:
Once a query is cached, the SQL execution time (%) gets low, only the connection time and other non cached SQL processes are filtered by vBMicroStats. Then, once the queries are not in the cache anymore, BOOM, a heavy SQL demand is passed to the server.

That explains the high SQL % you get sometimes. I'm in the same boat, no fix possible in my eyes, that's the way caches work.
I hope vB Team will find a trick in their hat. read more in the bug thread I opened.

Boofo 05-26-2006 08:32 AM

No, sir, no cache installed at all. I didn't notice it on the earlier versions of this hack but then I didn't really check it that closely then. I'll wait to hear what you find out. ;)

TECK 05-26-2006 04:20 PM

Hmm. It should be stable then, except when the VB default query cache is performed.

Do this: Open a support ticket with vBulletin and ask why the query time and php time are not at all stable, all the time.
They will ask you to show them the exact probem...
Enable Debug Mode then let them see the explained queries. You will notice (at the end of the page in bold) that the query execution time at the end varies in a similar way, maybe a little higher then vBMicroStats.

Post the ticket results for all of us. IMO, it's someting related to the server? vBMicroStats actually reads what is fed into the script, that's all.


All times are GMT. The time now is 01:37 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.01516 seconds
  • Memory Usage 1,830KB
  • 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_code_printable
  • (15)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