At 12:00 21/07/2002 -0400, Chris Withers <chrisw@nipltd.com> wrote:
Look at ZEo and run a ZEO client per processor (-1, you'll need to run a storage server too...)
Speaking of which, is there any way to speed up Zope when it starts? On my PIII + 256M RAM, it takes a good 30s after running start.bat, and as I currently use Zope on my client host as a private server, it'd be nice if Zope booted up faster. Thx EvH.
Use ZEO. Then Zope itself doesn't need to build a FileStorage index before it starts up. Alternately, use Zope 2.6 (or the Zope HEAD) which shuts ZODB down cleanly, which writes the index to disk so the next time it starts up it's quicker. ----- Original Message ----- From: "EvH" <edward_van_h@bigfoot.com> To: <zope@zope.org> Sent: Sunday, July 21, 2002 2:31 PM Subject: [Zope] Re: Zope digest, Vol 1 #2225 - 6 msgs
At 12:00 21/07/2002 -0400, Chris Withers <chrisw@nipltd.com> wrote:
Look at ZEo and run a ZEO client per processor (-1, you'll need to run a storage server too...)
Speaking of which, is there any way to speed up Zope when it starts? On my PIII + 256M RAM, it takes a good 30s after running start.bat, and as I currently use Zope on my client host as a private server, it'd be nice if Zope booted up faster.
Thx EvH.
_______________________________________________ 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 )
EvH writes:
Speaking of which, is there any way to speed up Zope when it starts? On my PIII + 256M RAM, it takes a good 30s after running start.bat, and as I currently use Zope on my client host as a private server, it'd be nice if Zope booted up faster. Do you have lots of ZPT objects?
Then applying the "delayed cooking patch" on <http://www.dieter.handshake.de/pyprojects/zope> can save a lot of time. Alternatively, you can use Zope 2.6. It contains similar optimizations. Dieter
Vielen Dank Dieter für Deine Hilfe! At 23:27 23/07/2002 +0200, Dieter Maurer <dieter@handshake.de> wrote:
Do you have lots of ZPT objects?
Er... ZPT are Page Templates, right? Nope, since I'm still learning about DTML, I must have barely a couple of Page Template objects somewhere (just test pages, nothing big). I only downloaded the Windows binary for Zope 2.5.1, and used the standard configuration. When using Zope on one's personal PC, it's a pain to have to wait 30s until the ZMI is available. I know I can start Zope as a service, but since I don't use it everyday, I'd rather start it only when needed.
Alternatively, you can use Zope 2.6. It contains similar optimizations.
I just checked their web site, but 2.6 is still beta, so I'd rather wait until it is switched to Stable. Thx much EvH.
EvH writes:
I only downloaded the Windows binary for Zope 2.5.1, and used the standard configuration. When using Zope on one's personal PC, it's a pain to have to wait 30s until the ZMI is available. This is almost surely a DNS problem.
I do not use Windows and cannot provide more details. But the problem has been described several times in the mailing list. Use Google to search the list archives for DNS. Dieter
At 21:19 24/07/2002 +0200, Dieter Maurer <dieter@handshake.de> wrote:
This is almost surely a DNS problem.
No, I don't think it is, because the Windows host where Zope is running can resolve its adresse thanks to a "hosts" file (of a DNS server when my test Linux host is running :-) ), and the part d:\Program Files\WebSite>"D:\Program Files\WebSite\bin\python.exe" "D:\Program F iles\WebSite\z2.py" -D", but at that time, I can hear the hard-disk having the time of its life, so I guess Zope is trying to build/rebuild indexes or something. Is anyone else running Zope on a Windows workstation (P3) and witnessing a good 30-s delay until Zope is up and running? BTW, I installed Zope on one of my brother's PCs (a P2), and it's close to a minute... Thx Fred.
Is anyone else running Zope on a Windows workstation (P3) and witnessing a good 30-s delay until Zope is up and running? BTW, I installed Zope on one of my brother's PCs (a P2), and it's close to a minute...
Hmm, you might want to check whether everything is okay with your data.fs. If something is wrong, Zope rebuilds some stuff. Recompile all your scripts, pack the database, see if that helps. I had a similar thing at one time and the only thing that seemed to help was starting over with a clean zope install and importing my old site. Douwe
I'm running Zope 2.5.1 under Windows 2000 on a P3-500 machine. I start it manually as a service. The service seems to start quickly (it says it's started after 5 seconds or so), but it's another 30 seconds or so until I can access the server. I've watched the task manager while it's starting up, and it's the python.exe process that is using up CPU time during the wait. I just assumed 30 seconds was the normal startup time. On a 667 MHz G4 Powerbook (OSX 10.1.5), the Zope server takes 20-25 seconds to start. Barry Berenberg
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of EvH Sent: Friday, July 26, 2002 2:16 AM To: zope@zope.org Subject: [Zope] Re: Speeding up Zope startup
At 21:19 24/07/2002 +0200, Dieter Maurer <dieter@handshake.de> wrote:
This is almost surely a DNS problem.
No, I don't think it is, because the Windows host where Zope is running can resolve its adresse thanks to a "hosts" file (of a DNS server when my test Linux host is running :-) ), and the part d:\Program Files\WebSite>"D:\Program Files\WebSite\bin\python.exe" "D:\Program F iles\WebSite\z2.py" -D", but at that time, I can hear the hard-disk having the time of its life, so I guess Zope is trying to build/rebuild indexes or something.
Is anyone else running Zope on a Windows workstation (P3) and witnessing a good 30-s delay until Zope is up and running? BTW, I installed Zope on one of my brother's PCs (a P2), and it's close to a minute...
Thx Fred.
_______________________________________________ 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 )
Am Fre, 2002-07-26 um 08.15 schrieb EvH:
Is anyone else running Zope on a Windows workstation (P3) and witnessing a good 30-s delay until Zope is up and running? BTW, I installed Zope on one of my brother's PCs (a P2), and it's close to a minute...
It is not of interest, if it is a P2 or a P3. How many MHz? How many RAM? I have Zope running on a P166 with 64MB RAM for demonstration only (sic!) It starts the server in about 30 - 45 seconds. On our product servers (www.zopehosting.ch) restarting Zope takes about 5 seconds (Redhat, not micros~1.oft). We are speaking here of the starting of a server environment, not of micros~1.oft Word (which takes about the same time). So what is your problem? -- ------------------------------ Goeldi.com - Internet Services http://www.zopehosting.ch http://www.goeldi.com Fon +41-61-7330555 Fax +41-61-7330556 Mail info@goeldi.com ------------------------------
there seems to be no DB2 product but I have found a working driver for straight python. Is there some way of maintaining a db connection for the duration of a session other than through a full-blown zope product? thank, Chris Quinn
No experience to speak of, but just having read the python tutorial, I see mention of its ability to write out .pyc files alongside the .py, and this compiled bytecode form yields faster startup times. If zope was installed for multi-users, the ownership probably does not allow for such files to be written, although this does not trouble python. So perhaps arranging for all .py files in the zope installation to be pre-compiled? - chris Stephan Göldi wrote:
Am Fre, 2002-07-26 um 08.15 schrieb EvH:
Is anyone else running Zope on a Windows workstation (P3) and witnessing a good 30-s delay until Zope is up and running? BTW, I installed Zope on one of my brother's PCs (a P2), and it's close to a minute...
It is not of interest, if it is a P2 or a P3. How many MHz? How many RAM? I have Zope running on a P166 with 64MB RAM for demonstration only (sic!) It starts the server in about 30 - 45 seconds. On our product servers (www.zopehosting.ch) restarting Zope takes about 5 seconds (Redhat, not micros~1.oft).
We are speaking here of the starting of a server environment, not of micros~1.oft Word (which takes about the same time). So what is your problem?
[Christopher Quinn] No experience to speak of, but just having read the python tutorial, I see mention of its ability to write out .pyc files alongside the .py, and this compiled bytecode form yields faster startup times. If zope was installed for multi-users, the ownership probably does not allow for such files to be written, although this does not trouble python. So perhaps arranging for all .py files in the zope installation to be pre-compiled? [Tom P] It is not that. Python creates the .pyc files when they are non-existent or out of date, so after the first time Zope is run, the .pyc files will be exist. There was a thread awhile ago about this, and as I recall, people with very large database files - data.fs - had very slow startup times. So clean up and pack your database. Search the archives to see if you can find that thread. Cheers, Tom P
Thomas B. Passin wrote:
[Christopher Quinn]
No experience to speak of, but just having read the python tutorial, I see mention of its ability to write out .pyc files alongside the .py, and this compiled bytecode form yields faster startup times. If zope was installed for multi-users, the ownership probably does not allow for such files to be written, although this does not trouble python. So perhaps arranging for all .py files in the zope installation to be pre-compiled?
[Tom P] It is not that. Python creates the .pyc files when they are non-existent or out of date, so after the first time Zope is run, the .pyc files will be exist. There was a thread awhile ago about this, and as I recall, people with very large database files - data.fs - had very slow startup times. So clean up and pack your database.
Search the archives to see if you can find that thread.
Cheers,
Tom P
What I meant to suggest is that zope could be installed centrally, independent of instances, and when run under another user id is without the necessary permissions to write those .pyc's to the installation area. Hence suffering the penalty of re-compilation at each and every start up. This seems a reasonable possibility to me. - chris
participants (8)
-
Barry Berenberg -
Chris McDonough -
Christopher Quinn -
Dieter Maurer -
douwe@oberon.nl -
EvH -
Stephan Göldi -
Thomas B. Passin