Hi, I have a site running with appx 20K data records in Zope dabase (footprint) and data stored in SQL. I am using page templates which we find to be an excellent way of building pages. However, having about 10 different page templates and one master (StandardLookAndFeel.html :-) ) really slows down the opening of the management screens. Without the page templates it takes two seconds to completely load www.site.no/manage, with the page templates in the root folder it takes 35 seconds (Linux Rehat 7.0 and newer, Intel Celeron 500MHz processor). It is also slow on a really fast twin CPU intel PIII server, running latest versjon of Redhat. FTP and cd into the folder is also sloooooow. The actual site (aside from the management screens) is fast and running OK. So it does not affect the actual performance of the different page templates. Have tested this to be a problem both under 2.4.3 and 2.5.1b1. Does anybody else have this problem ? I am also troubled with Zope restarting every now and then. I am running 2.4.3 and Python 2.1.2. Have seen that the 2.4.3 is unstable, so I am planning an upgrade. Best regards Petter Enholm
Petter Enholm wrote:
However, having about 10 different page templates and one master (StandardLookAndFeel.html :-) ) really slows down the opening of the management screens.
sounds like a case for delayed cooking, not sure however http://www.dieter.handshake.de/pyprojects/zope/#bct_sec_5.5 ------------------------------------------------------------- Who's got only a hammer sees the world as a nail hans augustin (software developer) hans@beehive.de beehive elektronische medien GmbH http://www.beehive.de phone: +49 30 847-82 0 fax: +49 30 847-82 299
Thank you for your answer. But if am not wrong, this cooking should only happen once, when the management screens are loaded the first time!? This happens for every user that goes to the management screens, even if other users have just visited the pages. We have done some progress from when I sent the mail earlier today. We have a StandardLookAndFeel with three macros. The main macro which defines the framwork, and two macros that do small operations on a given object. When we remove these macros the loading speed is faster. These macros assume a tal:repeat that is defined outside this macro, but which will work correctly when executing the page template. Is this not the correct way to do it? Extremely simplified pseudo code below: StandardLookAndFeel <span tal defines a macro called displaySomeThing:> <td tal:content="item/publishDate">. ....</td> Other page template file called index_displaySomething_html <span tal:repeat="item getistofitems> tal code for using macro displaySomeThing defined in StandardLookAndFeel </span> ... ----- Original Message ----- From: "hans" <hans@beehive.de> To: "Petter Enholm" <pe@snapper.no> Cc: "Zope user list" <zope@zope.org> Sent: Thursday, March 14, 2002 1:01 PM Subject: Re: [Zope] Slow mgmt-screens due to Page Templates
Petter Enholm wrote:
However, having about 10 different page templates and one master (StandardLookAndFeel.html :-) ) really slows down the opening of the management screens.
sounds like a case for delayed cooking, not sure however http://www.dieter.handshake.de/pyprojects/zope/#bct_sec_5.5 ------------------------------------------------------------- Who's got only a hammer sees the world as a nail hans augustin (software developer) hans@beehive.de beehive elektronische medien GmbH http://www.beehive.de phone: +49 30 847-82 0 fax: +49 30 847-82 299
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Petter Enholm writes:
But if am not wrong, this cooking should only happen once, when the management screens are loaded the first time!? Usually, they are cached. But, if you have lots of them and the ZODB caching parameters are not adequate, they may live in the cache only for a short time.
You can control the ZODB caching parameters via "Control_Panel/DatabaseManagement".
... Extremely simplified pseudo code below: At least your extremely simplified code does not reproduce the problem here: Zope 2.5.0 (CVS version Jan 2002).
Dieter
Petter Enholm writes:
... I am using page templates which we find to be an excellent way of building pages. However, having about 10 different page templates and one master (StandardLookAndFeel.html :-) ) really slows down the opening of the management screens. ... My "ZPT - delay cooking" patch may help you:
<http://www.dieter.handshake.de/pyprojects/zope> Be aware, though, that I recently upgraded it for ZPT as it comes with Zope 2.5. The older patch for Zope 2.4.x was no longer compatible with Zope 2.5. Therefore, the current patch may not work with Zope 2.5...
... The actual site (aside from the management screens) is fast and running OK. So it does not affect the actual performance of the different page templates. Have tested this to be a problem both under 2.4.3 and 2.5.1b1.
Does anybody else have this problem ? Sure: reported to the ZPT mailing list about 1/2 year ago...
I am also troubled with Zope restarting every now and then. I am running 2.4.3 and Python 2.1.2. Have seen that the 2.4.3 is unstable, so I am planning an upgrade. Good!
Dieter
Dieter Maurer has a patch for Page Templates that avoids "cooking". Please see http://www.dieter.handshake.de/pyprojects/zope At 08:54 2002-03-14 +0100, Petter Enholm wrote:
Hi,
I have a site running with appx 20K data records in Zope dabase (footprint) and data stored in SQL. I am using page templates which we find to be an excellent way of building pages. However, having about 10 different page templates and one master (StandardLookAndFeel.html :-) ) really slows down the opening of the management screens. Without the page templates it takes two seconds to completely load www.site.no/manage, with the page templates in the root folder it takes 35 seconds (Linux Rehat 7.0 and newer, Intel Celeron 500MHz processor). It is also slow on a really fast twin CPU intel PIII server, running latest versjon of Redhat.
FTP and cd into the folder is also sloooooow.
The actual site (aside from the management screens) is fast and running OK. So it does not affect the actual performance of the different page templates. Have tested this to be a problem both under 2.4.3 and 2.5.1b1.
Does anybody else have this problem ?
I am also troubled with Zope restarting every now and then. I am running 2.4.3 and Python 2.1.2. Have seen that the 2.4.3 is unstable, so I am planning an upgrade.
Best regards Petter Enholm
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (4)
-
Dieter Maurer -
hans -
Peter Bengtsson -
Petter Enholm