![]() |
AP Lightweight Performance Statistics
1 Attachment(s)
This is a very lightweight hack that adds basic page performance statistics to each page display.
It only displays for Moderators and Admins, as we don't want the unwashed masses ;) to see this information. Installation: Install the product file from AdminCP Displays as the last line of the page: Quote:
There are 3.x hacks like this that do more, the trade off being this is very low impact. 2.0.1 Removed can_moderate and added AdminCP option that allows you to set the user-groups that can see the statistics 2.0.2 Added uptime (Linux only) 2.0.3 Phrased and fixed to handle no available uptime in Linux 2.0.4 Added options MySQL uptime - optional - requires MySQL 5.1.12 or higher - off by default - adds one query per page if turned on 2.0.7 Minor updates as implemented on my site Enjoy! Kym |
1 Attachment(s)
|
Do you have a demo or pics?
|
I posted a screen shot in post 1 :D
|
Where is it coded to only show to Admin and Moderators?
Never mind I found it, if (can_moderate()) So this code is marked Re - Usable, can I take the code and add it to another mod I have on my forum, to display there instead? |
can_moderate is the condition. ;)
You can take it and change as you need. |
Thank you sir, excellent codding btw.
|
can_moderate adds a query, you do know that, right?
|
Quote:
|
nice mod, tagged
|
WTF in CMS home I see :
Page generated in 1.03960 seconds with 1738 queries [Server Load Averages (1:5:15) 1738 queries :eek::eek: |
Works great ... thank you ... :up:
I've always wondered about what the math numbers of the Server Load Averages mean. Does anyone have a simple definition? Regards, Doug |
cms home i get this
Page generated in 0.55868 seconds with 82 queries [Server Load Averages (1:5:15) 2.86 : 3.18 : 2.91] Working ..smashin...thanks |
Load averages here http://blog.scoutapp.com/articles/20...-load-averages
They are 1, 5 and 15 minutes loads. The meaning of the numbers are very dependant on the number of cores (CPUs). Very simplistically - If you're running 2 x quad core then anything under 8 is ok. |
Quote:
|
Quote:
Regards, Doug |
tagged!!!! looks ace this does
|
Quote:
|
Installed
Page generated in 0.71467 seconds with 57 queries [Server Load Averages (1:5:15) 0.65 : 0.81 : 0.73] works ace too !!! |
Is there a guide how many queries are normal for Forum, CMS, Blog? Or at least average.
For me first load of CMS was about 250, Forum index is 24-25. CMS reloaded is 170-200. |
We are forum only,I have no idea what is normal for CMS
But hundreds seems high, i.e. I reckon some tuning by vB.com is needed for future versions |
Quote:
|
extra nice thx you
|
It shows on my site but not the averages. It stops at "(1:5:15)"
Is it an error? |
snoopytas, when are you going to add the server uptime to this? ;)
|
Quote:
Kym |
You are da man! ;)
|
is it possible to have it a different colour..
what is it under in the stylevars.... |
Quote:
|
Could you phrase output of mod?
|
Quote:
My server is LINUX. Latest version of the mod. My board shows: "Page generated in 0.12074 seconds with 20 queries [Server Load Averages (1:5:15)" |
@MarceloS You will need to see if either of the two methods are active for the Apache account.
I.e. 1. Can the file /proc/loadavg be accessed by the Apache account? -or- 2. Does uptime run? If neither work, then its a Linux permissions/shell problem. If you are running security enhanced linux then you may need to adjust the security profile. Kym |
Installed on 4.1.1 and working great.
Thanks |
Quote:
Quote:
It uses the default colours per class="smallfont" at the footer. |
Thank you! :up:
|
Quote:
2. Uptime not working. After the update, I get only this: "Page generated in 0.10525 seconds with 19 queries" |
@MarceloS, it seems your hosting provider has more limits than mine. Not much i can do about that.
|
Updated !
It now optionally shows the MySQL uptime. This adds one query per page, is off by default, and needs MySQL 5.1.12 or higher |
Added seems to work fine on VB 4.1.3 and 4.1.4, maybe add colour change in settings rather than edit phrases.
Nice addon |
The colour is not something I want as this mod is intended to be light, fast and only for site staff.
It's not really intended for all your forum members as it really aimed at performance monitoring. |
All times are GMT. The time now is 02:46 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:
|