Performance issue as regular user but not as admin

Hi, 

I seem to have a really odd problem I'm not sure how it came about. I never really noticed as I mainly browse my site ad an administrator. But the the last couple days I've noticed that when using the site as any user but admin... there's a considerable delay on all pages. I have no idea why this would only occur for non-admin... Nothing in the logs suggests any problems as I can load the same page as admin in less than a second, yet if I log out (or even just remove admin from the account) it takes +4-5 seconds...

 

Anyone have any suggestions on what I should be looking at?

 

Thanks 

Quote · 18 Mar 2013

Try installing profiler module that came with dolphin and check it and post back.

so much to do....
Quote · 18 Mar 2013

I've installed it... but not sure where I'm to look to see the results... Nothing additional is showing ont he pages... I tested that on the demo page and nothing shows either... am I needing another step?

Quote · 18 Mar 2013

ok I figured that out. Had it add this:

define ('BX_PROFILER', true); if (BX_PROFILER && !isset($GLOBALS['bx_profiler_start'])) $GLOBALS['bx_profiler_start'] = microtime ();

to the inc/header.php

Here are the results which must be slowing me down... not sure why all of a sudden the PAC for menuitems is a problem...

 

Modules:4 modules loadedModules Queries:7 modules queries (6.061 sec)

-
name type class/file method time
Page Access Control service Module serviceMenuItemsFilter 3.02238 sec
Page Access Control service Module serviceResponceProtectURL 0.00052 sec
Page Access Control service Module servicePageBlocksFilter 0.00184 sec
Simple Messenger service Module serviceGetMessengerCore 0.00174 sec
Payment service Module serviceGetCartItemCount 0.01068 sec
Spy service Module serviceGetMemberMenuBubblesData 0.00145 sec
Page Access Control service Module serviceMenuItemsFilter 3.02206 sec
Quote · 18 Mar 2013

Menus:4 menus (3.105 sec)

-
name time
Member Menu 3.0915 sec
Main Menu 0.01119 sec
Service Menu 0.00126 sec
Bottom Menu 0.00063 sec
Quote · 18 Mar 2013

Pages:1 (3.112 sec)Templates Cached:22 (3.116 sec)Templates Not Cached:1 (0 sec)

-
name cached time
designbox_10.html yes 0.00096 sec
page_17.html no 8.0E-5 sec
default.html yes 3.11198 sec
Quote · 18 Mar 2013

Ok... so I removed PAC... and while... I don't see the delays there... now it's just not saying where... here's a compare between Admin and User:

 

Time:0.16 secMemory:19.5M of 1024M allowedPHP:5.3.3-7+squeeze15SAPI:apache2handlerOS:Linux
Menus:4 menus (0.043 sec)
+
Pages:1 (0.05 sec)Templates Cached:23 (0.054 sec)Templates Not Cached:1 (0 sec)
+
Injections:8 injection (0.005 sec)
+
SQL:26 queries (0.006 sec)
+
Modules:3 modules loadedModules Queries:3 modules queries (0.015 sec)
Quote · 18 Mar 2013
Time:6.176 secMemory:18.5M of 1024M allowedPHP:5.3.3-7+squeeze15SAPI:apache2handlerOS:Linux
Menus:4 menus (0.017 sec)
+
Pages:1 (0.025 sec)Templates Cached:9 (0.027 sec)Templates Not Cached:1 (0 sec)
+
Injections:8 injection (0.005 sec)
+
SQL:24 queries (0.003 sec)
+
Modules:1 modules loadedModules Queries:1 modules queries (0.002 sec)
Quote · 18 Mar 2013

Now there's no indication where the slow down is...

Quote · 18 Mar 2013

if I add PAC back in... the original slow items show back up...

 

Any thoughts?

Quote · 18 Mar 2013

Looking at the firefox console... I see these requests are taking 6 seconds:

[12:01:23.268] GET http://www.example.com/member_menu_queries.php?action=get_menu_content&menu_id=18&_r=0.2654963656843129 [HTTP/1.1 200 OK 6301ms]

and when logged in as Admin:

[12:03:20.163] GET http://www.example.com/member_menu_queries.php?action=get_menu_content&menu_id=18&_r=0.5305012513128108 [HTTP/1.1 200 OK 276ms]

Quote · 18 Mar 2013

Thoughts anyone? I really need to get this straightened away... Cry

Quote · 18 Mar 2013

Now that I've been watching the console, it seems EVERY request made by non-admin is taking ~3 seconds... I don't understand what could possibly be doing this...

 

Quote · 18 Mar 2013

Please PM me your admin login, i will check.

so much to do....
Quote · 18 Mar 2013

Actually I just found the issue.

If I hav DNS Block lists enabled... it hangs all the time... I only have the default entry enabled for sbl.spamhaus.org.

 

Any idea why that would be bogging everything down for users?

Quote · 18 Mar 2013

Undecided I am not familiar with how the DNS blocklist works, so no idea now :(

Oh buts its good the problem is solved :D

Good Luck

Actually I just found the issue.

If I hav DNS Block lists enabled... it hangs all the time... I only have the default entry enabled for sbl.spamhaus.org.

 

Any idea why that would be bogging everything down for users?

 

so much to do....
Quote · 18 Mar 2013

DNS Blocklists are working using DNS.

Something wrong with DNS on your server, it is very overloaded and/or not have caching and/or have bad internet connection and/or something else.

Rules → http://www.boonex.com/terms
Quote · 19 Mar 2013

I use google DNS and nothing else seems to indicate a network issue...

 

cat /etc/resolv.conf 

nameserver 8.8.8.8

nameserver 4.4.4.4

options rotate

options timeout:3

 
Quote · 19 Mar 2013

Any reason why your using googles public DNS servers and not your service providers DNS?

Anyhow. Googles can become overloaded and they tend to be slow to update when DNS changes are done.

If you must use public DNS servers then try Level 3's

209.244.0.3
209.244.0.4

https://www.deanbassett.com
Quote · 19 Mar 2013

no reason really... just I thought they'd be a little more reliable. I'll change them up and see if that makes a difference.

Quote · 19 Mar 2013
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.