Hi,
Let's be clear from the start, chances are CB is not at fault here, I'll explain why in a moment, still I wanted to ask as you guys may be able to point me in the right direction...
So. I am currently finishing the development of a website that uses Joomla 3.2, CB, CBSubs, AutoActions, CBConditional mainly.
Where I say that my performance issues are probably not directly due to CB, is that I originally developed it on my local server, a small Pentium 4 3GHz / 2GB, and it was running fine. My partner in the US (I'm in France) tells me he has 12 seconds from home page to profile display, even though it's on my local ADSL line, so this seems quite good.
The EXACT same website on the dedicated server we have just ordered, quad-core Xeon / 6GB, runs slow, especially when displaying / editing a user profile. There are only the two of us on it right now, so this is not a matter of overload. I have also uninstalled everything that is not absolutely required (stuff I had tested and decided not to keep...).
From this, my conclusion would be that something's wrong with the server's configuration, and I've asked the support staff to investigate. Still you know way better than me the way Joomla and CB operate so you may have some additional clues...
The debug output points me to this:
Code:
Time: 0.0 ms / 0.0 ms Memory: 0.691 MB / 0.69 MB Application: afterLoad
Time: 10223.0 ms / 10223.0 ms Memory: 5.148 MB / 5.84 MB Application: afterInitialise
Time: 79.7 ms / 10302.7 ms Memory: 1.514 MB / 7.35 MB Application: afterRoute
Time: 23266.4 ms / 33569.1 ms Memory: 45.526 MB / 52.88 MB Application: afterDispatch
Time: 123.8 ms / 33692.9 ms Memory: 1.205 MB / 54.08 MB Application: beforeRenderModule mod_custom (Footer)
Time: 5.8 ms / 33698.7 ms Memory: 0.046 MB / 54.13 MB Application: afterRenderModule mod_custom (Footer)
Time: 0.5 ms / 33699.2 ms Memory: 0.000 MB / 54.13 MB Application: beforeRenderModule mod_menu (Menu)
Time: 20.8 ms / 33720.0 ms Memory: 0.164 MB / 54.29 MB Application: afterRenderModule mod_menu (Menu)
Time: 0.7 ms / 33720.8 ms Memory: 0.000 MB / 54.29 MB Application: beforeRenderModule mod_custom (They use ScoopCode)
Time: 1.4 ms / 33722.2 ms Memory: 0.005 MB / 54.29 MB Application: afterRenderModule mod_custom (They use ScoopCode)
Time: 0.5 ms / 33722.7 ms Memory: 0.000 MB / 54.29 MB Application: beforeRenderModule mod_custom (Meet us on the social networks!)
Time: 1.4 ms / 33724.1 ms Memory: 0.004 MB / 54.30 MB Application: afterRenderModule mod_custom (Meet us on the social networks!)
Time: 0.6 ms / 33724.6 ms Memory: 0.001 MB / 54.30 MB Application: beforeRenderModule mod_cblogin (Member access)
Time: 14.1 ms / 33738.7 ms Memory: 0.039 MB / 54.34 MB Application: afterRenderModule mod_cblogin (Member access)
Time: 0.3 ms / 33739.0 ms Memory: 0.000 MB / 54.33 MB Application: beforeRenderModule mod_rokajaxsearch (Search)
Time: 7.3 ms / 33746.4 ms Memory: 0.048 MB / 54.38 MB Application: afterRenderModule mod_rokajaxsearch (Search)
Time: 0.3 ms / 33746.6 ms Memory: 0.000 MB / 54.37 MB Application: beforeRenderModule mod_custom (My ScoopCode)
Time: 1.5 ms / 33748.2 ms Memory: 0.005 MB / 54.38 MB Application: afterRenderModule mod_custom (My ScoopCode)
Time: 1.8 ms / 33749.9 ms Memory: 0.003 MB / 54.38 MB Application: beforeRenderModule mod_menu (Menu EN)
Time: 12.2 ms / 33762.1 ms Memory: 0.008 MB / 54.39 MB Application: afterRenderModule mod_menu (Menu EN)
Time: 5985.7 ms / 39747.8 ms Memory: 6.625 MB / 61.01 MB Application: afterRender
Database queries total: 345.7 ms
This is when going to edit a user account. Note that we have over 150 fields, our user accounts are quite complex. So I understand that this would generate a number of queries, but what I don't understand is that my test server runs this within seconds... And a quad-core Xeon needs a total of about 30 seconds to deliver the page.
According to my searches, Application: afterDispatch has to do with the database queries... Correct?
Is there anything I could do in your opinion to improve this? Have you ever seen something similar before?
Thanks.
Seb.