Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Perfomance nonsatisfying


Reply

8 Posts   1178 Views

Avatar
OBITS

20 December 2010 at 7:04pm Community Member, 17 Posts

Hi Community

I have a performance problem with my silverstripe website. The first Load of the website www.%removethis%schrittederhoffnung.ch is on some Computers, meaning Mac and/or Windows System, slow. But if the Web is my cache the performace is okay respectively the navigation is okay. Can you give me some tips?

thank you

OBAITS

Avatar
Willr

20 December 2010 at 11:08pm Forum Moderator, 5511 Posts

Taking a quite look at the timeline tab (firebug, built in for webkit) I get ~1sec load time for the site which isn't that slow and that's on a fresh cache.

If you are worried about performance you can use ?debug_profile=1 to see what is taking the longest time but it doesn't appear to be a complex site, more likely just a slow connection to the database server or a cold cache on your server.

Partial Caching (and using an opcode cache) will make things faster http://doc.silverstripe.org/partial-caching but this normally makes most improvement on much more complex sites.

Avatar
PapaBear

21 December 2010 at 1:31pm Community Member, 26 Posts

I'm getting a very unusual performance issue. In the admin view in the CMS if I click on a page in the menu it takes several minutes to update, yet if I put the appropriate link into the address bar the page loads immediately.

I am really having trouble finding a cause. I suspect it's a problem in the AJAX call but have no idea how to improve this. This is relatively new behaviour for this site. I'm in the process of extending the event_calendar but this performance issue has brought everything to a crashing halt.

I'm running SS2.4.0 with the latest event_calendar from Uncle Cheese's site.

If anyone could help I would be very grateful.

Cheers
James.

Avatar
bennettpr

22 December 2010 at 12:43pm Community Member, 37 Posts

Hi PapaBear,

Did you resolve this? I'd suggest looking in the console tab of a webkit browser's (Safari, Chrome) inspector tools to see if any errors are being logged there.

Willr - does ?debug_profile=1 still function? I'm trying to use it on a 2.4 site (out of curiosity more than anything) but it doesn't seem to do anything noticeable - I can't see anything in the page source or the console....

Avatar
Willr

22 December 2010 at 7:37pm Forum Moderator, 5511 Posts

Willr - does ?debug_profile=1 still function? I'm trying to use it on a 2.4 site (out of curiosity more than anything) but it doesn't seem to do anything noticeable - I can't see anything in the page source or the console....

It does, you will need to be in dev mode or, if testing a live site, login as an admin and add ?debug_profile=1&isDev=1

Avatar
bennettpr

23 December 2010 at 6:29am Community Member, 37 Posts

Thanks Willr - that clarifies things

Avatar
PapaBear

23 December 2010 at 8:07am (Last edited: 23 December 2010 8:09am), Community Member, 26 Posts

@Bennetpr: I don't know what caused the slow down. I reinstalled 2.4.2 and the fault was resolved.

It was a good evening after that. I successfully extended the event_calendar to fit the project and we're now back on track.

I was able to use the debug_profile command although it didn't highlight anything obviously out of place. Chrome's speed analyser and firebug for firefox both showed the delay was in the Ajax calls. if I typed in the exact URL that was used in the ajax the page showed immediately.

Cheers
PB

Avatar
OBITS

31 December 2010 at 8:56pm Community Member, 17 Posts

I have tested with http://%removethis%www.schrittederhoffnung.ch/?debug_profile=1, but no result.

Intressting is also.. not on all Workstations or Networks my website is slow. Have anybody an idea?

thx