Performance: Template load - what is it?

Performance: Template load - what is it?

Thursday 28 February 2008 6:34:17 am - 7 replies

Modified on Wednesday 05 March 2008 5:08:53 am by Piotrek Karaś

Author Message

André R.

Thursday 28 February 2008 3:27:19 pm

Is this straight after a template cache clear or is template compilation disabled?

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Piotrek Karaś

Thursday 28 February 2008 3:50:50 pm

Neither ;) This is a site with an average of 200-300 queries per page (when cache has been cleared), look at the query count, it's 5, it's all cached. And the template compilation was not disabled ;)

Normally a page of that site takes 0.2s to generate on that server, today - without any changes made - it went to 20-40 seconds, and it was consistent over about 2 hours to show over 95% of resources used for this part. Then it went back to normal. I suspect something might be wrong with the server (it's a VPS), but I have no idea what to have checked by the provider ;(

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

Piotrek Karaś

Wednesday 05 March 2008 5:06:22 am

Same thing is happening again... ;( Any thoughts?

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

Piotrek Karaś

Wednesday 19 March 2008 12:37:54 am

And again... only now this was 130sek... this really looks bad...

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

André R.

Wednesday 19 March 2008 1:32:54 am

I'm afraid I haven't seen this before. You should report it in the issue tracker, but it would help if it is reproducible somehow of course... :/

One thing from Kristof though: Check file permission on the cache files, if they suddenly change so the web server can't read it, that might explain it.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Piotrek Karaś

Wednesday 19 March 2008 5:44:08 am

Hi André,

<i>I'm afraid I haven't seen this before. You should report it in the issue tracker, but it would help if it is reproducible somehow of course... :/</i>
Looking for some consistency myself, but this simply happens, and then some minutes later is gone...

<i>One thing from Kristof though: Check file permission on the cache files, if they suddenly change so the web server can't read it, that might explain it.</i>
Thanks. I'll give those a closer look. However - in all problems that I have experienced with permissions on different servers (can't read, can't write etc...), it has never taken that long... just like with pure PHP - file access errors take some additional time, but we're not talking minutes, right? ;)

Let you know if I discover something new...

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

Xavier Dutoit

Monday 24 March 2008 11:59:36 pm

Hi,

run top on the server when it goes nuts, you might see something.

It reminds me a problem I had: the cache for the images was cleared, and it was regenerating all the images, I had enough image galleries to put the server on its knees (and I suspect it happily generates the same thumbnail several times for each request if two access simultaneously).

X+

http://www.sydesy.com

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.