Hey everyone, My Web site is acting very sluggish, and I wonder if someone has an explanation or suggestion. I'm running Zope 2.1.6 behind Apache. Apache is also serving a number of other very low traffic virtual hosts. My site, also, is very low traffic. The "server" is a cast-off IBM Pentium 120 desktop machine w/ 32 MB RAM and 4.3 GB IDE drive. The server is on a T1 connection our school's ISP. The site address is http://www.isd197.k12.mn.us/ Notice in particular the long delay while the browser is contacting the host. Everything loads pretty quickly once the page starts appearing. A non-Zope, purely static page on the same server, http://www.comed.isd197.k12.mn.us/, loads much more quickly. Site notes: The Slashdot-esque news items are being gathered from the ZCatalog for display and the headlines on the right are generated via Amos's RSSChannel and XMLDocument products. There's not much else to the site's homepage. Any suggestions? -Tim -- Tim Wilson | Visit Sibley online: | Check out: Henry Sibley HS | http://www.isd197.k12.mn.us/ | http://www.zope.org/ W. St. Paul, MN | | http://slashdot.org/ wilson@visi.com | <dtml-var pithy_quote> | http://linux.com/
Timothy Wilson wrote: [...]
The site address is http://www.isd197.k12.mn.us/ Notice in particular the long delay while the browser is contacting the host. Everything loads pretty quickly once the page starts appearing.
A non-Zope, purely static page on the same server, http://www.comed.isd197.k12.mn.us/, loads much more quickly.
I suspect that you may have a DNS problem and the delay is because ZServer sees itself as running on "www" rather than the fully qualified domain name and thus causing a long DNS lookup via the search entry in /etc/resolv.conf and entries in /etc/hosts. It is probably a combination of ZServer configuration + DNS config. You don't see the same problem with the static page because it is likely being serverd by Apache and the Apache configuration files have the fully qualified domain name and so are not doing a long DNS lookup. Just a possibility. Nitin Borwankar, nitin@borwankar.com
Site notes: The Slashdot-esque news items are being gathered from the ZCatalog for display and the headlines on the right are generated via Amos's RSSChannel and XMLDocument products. There's not much else to the site's homepage.
Any suggestions?
-Tim
-- Tim Wilson | Visit Sibley online: | Check out: Henry Sibley HS | http://www.isd197.k12.mn.us/ | http://www.zope.org/ W. St. Paul, MN | | http://slashdot.org/ wilson@visi.com | <dtml-var pithy_quote> | http://linux.com/
_______________________________________________ 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 )
On Sun, 23 Apr 2000, Nitin Borwankar wrote:
I suspect that you may have a DNS problem and the delay is because ZServer sees itself as running on "www" rather than the fully qualified domain name and thus causing a long DNS lookup via the search entry in /etc/resolv.conf and entries in /etc/hosts.
Is there a simple test to determine if my ZServer config is messed up? (Other than the behavior that I'm observing.) -Tim -- Tim Wilson | Visit Sibley online: | Check out: Henry Sibley HS | http://www.isd197.k12.mn.us/ | http://www.zope.org/ W. St. Paul, MN | | http://slashdot.org/ wilson@visi.com | <dtml-var pithy_quote> | http://linux.com/
At 09:04 PM 4/23/00 -0500, you wrote:
Hey everyone,
My Web site is acting very sluggish, and I wonder if someone has an explanation or suggestion. I'm running Zope 2.1.6 behind Apache. Apache is also serving a number of other very low traffic virtual hosts. My site, also, is very low traffic. The "server" is a cast-off IBM Pentium 120 desktop machine w/ 32 MB RAM and 4.3 GB IDE drive. The server is on a T1 connection our school's ISP.
I have the same problem. I have a Pentium 100 and 32 MB RAM. The RAM is not nearly fully used. Do you run a relational DB, since that would be the obvious explanation. I deactivated any other service, but no effect. I dunno, but maybe, the days of 100MHz machines are over. :-( I would be glad to hear about some other optimization things one can do. Regards, Stephan -- Stephan Richter - (901) 573-3308 - srichter@cbu.edu CBU - Physics & Chemistry; Framework Web - Web Design & Development PGP Key: 735E C61E 5C64 F430 4F9C 798E DCA2 07E3 E42B 5391
The site address is http://www.isd197.k12.mn.us/ Notice in particular the long delay while the browser is contacting the host. Everything loads pretty quickly once the page starts appearing.
Could this be because Zope doesn't stream its output? For example, if you have a page; 1k big; that has a method which takes n*seconds to execute, the server will not send the page until it's fully rendered. I think it's a good idea to .. <dtml-call "REQUEST.flush()"> or somesuch, in key points of the documents. -Morten
On Mon, 24 Apr 2000, Morten W. Petersen wrote:
Could this be because Zope doesn't stream its output? For example, if you have a page; 1k big; that has a method which takes n*seconds to execute, the server will not send the page until it's fully rendered.
It certainly seems like that might be happening. I wouldn't think that my homepage is dynamic enough to put much of a load on my old dog of a server. I could be wrong of course, which means that I really need to get a brand-new, dual-processor, 4 GB RAM, 2 TB SCSI ... <snaps himself out of it>.
I think it's a good idea to .. <dtml-call "REQUEST.flush()"> or somesuch, in key points of the documents.
I'm not familiar with this. What does the REQUEST.flush() do? -Tim -- Tim Wilson | Visit Sibley online: | Check out: Henry Sibley HS | http://www.isd197.k12.mn.us/ | http://www.zope.org/ W. St. Paul, MN | | http://slashdot.org/ wilson@visi.com | <dtml-var pithy_quote> | http://linux.com/
It certainly seems like that might be happening. I wouldn't think that my homepage is dynamic enough to put much of a load on my old dog of a server. I could be wrong of course, which means that I really need to get a brand-new, dual-processor, 4 GB RAM, 2 TB SCSI ... <snaps himself out of it>.
Only if you're planning on switching to IIS or Coldfusion ;-) Chris
Hey Tim, A couple of things could be happening. - Lots of tables with images in them. The browser has to wait for the entire page with all the images before it can display the page. Break up the tables and it will load faster. - Need more RAM. I was running Zope 1.6.1 on RH with 16MB of RAM and it ran, but really slow. Same sort of thing, would be slow to start up and serve the files. 32 is really not enough. That combined with your tables is going to slow the site down. On my same box (166 Pent) I added 128MB and now it screams. Ram is the key. J
Hey everyone,
My Web site is acting very sluggish, and I wonder if someone has an explanation or suggestion. I'm running Zope 2.1.6 behind Apache. Apache is also serving a number of other very low traffic virtual hosts. My site, also, is very low traffic. The "server" is a cast-off IBM Pentium 120 desktop machine w/ 32 MB RAM and 4.3 GB IDE drive. The server is on a T1 connection our school's ISP.
The site address is http://www.isd197.k12.mn.us/ Notice in particular the long delay while the browser is contacting the host. Everything loads pretty quickly once the page starts appearing.
A non-Zope, purely static page on the same server, http://www.comed.isd197.k12.mn.us/, loads much more quickly.
Site notes: The Slashdot-esque news items are being gathered from the ZCatalog for display and the headlines on the right are generated via Amos's RSSChannel and XMLDocument products. There's not much else to the site's homepage.
Any suggestions?
-Tim
On Mon, 24 Apr 2000, J. Atwood wrote:
A couple of things could be happening.
- Lots of tables with images in them. The browser has to wait for the entire page with all the images before it can display the page. Break up the tables and it will load faster.
I think you may be on to something. Loading a subpage without a lot of tables proceeds without any delay. That would suggest that the delay isn't a DNS problem.
- Need more RAM. I was running Zope 1.6.1 on RH with 16MB of RAM and it ran, but really slow. Same sort of thing, would be slow to start up and serve the files. 32 is really not enough. That combined with your tables is going to slow the site down. On my same box (166 Pent) I added 128MB and now it screams. Ram is the key.
I'll look around and see if I can scam a few more SIMMs somewhere. We're obviously doing this site on the cheap given our choice of server hardware. Thanks for the suggestions. -Tim -- Tim Wilson | Visit Sibley online: | Check out: Henry Sibley HS | http://www.isd197.k12.mn.us/ | http://www.zope.org/ W. St. Paul, MN | | http://slashdot.org/ wilson@visi.com | <dtml-var pithy_quote> | http://linux.com/
I realize that this is not a recommended solution, but this made a HUGE difference to me.. Modify your /usr/lib/python1.5/config/Makefile.pre.in (in Redhat6.2/Mandrake7.0) to have the line (matching the options for your system): CFLAGS= -O6 -mpentium -march=pentium -mcpu=k6 -I$(INCLUDEPY) -I$(EXE CINCLUDEPY) $(DEFS) Then recompile Zope... This made a rather huge increase in response my system.. Pages accessed locally comeup nearly as fast as the browser can render them (for the management screens anyways..)
Is it just me or has the amount of activity on this list and the amount of activity on Zope.org been diminishing? Used to get 50-100 posts a day. Now about 20. Used to see a new item on Zope.org at least every day, now once a week. ZopeNewbies seems to be the only one still putting up fresh and new content (Thanks Ken). Is there some new club opened just around the digital corner that I am unaware of? Even ZDP seems to be slow. Seasonal? Mental? Imaginary? Anyone? Hello? <grin> J
At 12:11 PM 4/24/00 -0400, you wrote:
Is it just me or has the amount of activity on this list and the amount of activity on Zope.org been diminishing?
EXAM TIME! 5 days of school left and 4 days of Exams and I am outta here. :) Regards, Stephan -- Stephan Richter - (901) 573-3308 - srichter@cbu.edu CBU - Physics & Chemistry; Framework Web - Web Design & Development PGP Key: 735E C61E 5C64 F430 4F9C 798E DCA2 07E3 E42B 5391
I'm running into problems serving 200K jpegs from Zope. Any ideas? Am I hitting a size limit? I can serve smaller jpegs and gifs from the same folder within Zope no problem. Using the latest Zope and Apache... Thanks Josh ------------------------------------------------- Joshua Brauer Computer Support Scientist Department of Biochemistry and Molecular Biology Colorado State University Fort Collins, CO 80523 (970) 491-1080 ------------------------------------------------- Fax or Voice mail toll free 888-392-4832, ext. 291-345-5142 ------------------------------------------------- Direct Fax (419) 793-4120 -------------------------------------------------
participants (8)
-
Chris Withers -
J. Atwood -
John Sutherland -
Joshua Brauer -
Morten W. Petersen -
Nitin Borwankar -
Stephan Richter -
Timothy Wilson