Re: [Zope] Zope is very slow!
Christiano Anderson wrote: Do you have any example of the best Apache and ProxyCache configuration to running zope? My configuration looks like this: IfModule mod_proxy.c ProxyRequests On #ProxyReceiveBufferSize 65536 ProxyReceiveBufferSize 0 CacheRoot "/www/proxycache" CacheSize 5000 CacheGcInterval 1 CacheMaxExpire 48 CacheLastModifiedFactor 0.1 CacheDefaultExpire 5 ProxyPass /paginas/ http://200.xxx.xxx.xxx:8080/ ProxyPass /p_/ http://200.xxx.xxx.xxx:8080/p_/ ProxyPass /misc_/ http://200.xxx.xxx.xxx:8080/misc_/ ProxyPassReverse /paginas/ http://200.xxx.xxx.xxx:8080/ ProxyPassReverse /p_/ http://200.xxx.xxx.xxx:8080/p_/ ProxyPassReverse /misc_/ http://200.xxx.xxx.xxx:8080/misc_/ afaik this is far larger than you need. First, i've started using rewrite rules as i find it far more flexible. For Zope.org, in lieu of ProxyPass ProxyPassReverse I just use: RewriteRule / http://www.zope.org: [L,P] If you've got the SiteAccess set up correctly (i.e. it reads http://xxx.xxx.xxx/paginas/ ) then you should have no problems. ProxyPassReverse is, as far as I can discern from the apache docs, completely superfluous for Zope. Hope that helps, -- ethan mindlace fremen Zopatista Community Liason Abnegate I! ___ Zope maillist - [EMAIL PROTECTED] 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 )
Re: [Zope] Zope is very slow!
Why do you see any need to turn ProxyRequests On? I run the ProxyPass too, but there is no need for the ProxyRequest and the Proxy module. Perhaps there lies your problem. -goe- My configuration looks like this: IfModule mod_proxy.c ProxyRequests On #ProxyReceiveBufferSize 65536 ProxyReceiveBufferSize 0 CacheRoot "/www/proxycache" CacheSize 5000 CacheGcInterval 1 CacheMaxExpire 48 CacheLastModifiedFactor 0.1 CacheDefaultExpire 5 ProxyPass /paginas/ http://200.xxx.xxx.xxx:8080/ ProxyPass /p_/ http://200.xxx.xxx.xxx:8080/p_/ ProxyPass /misc_/ http://200.xxx.xxx.xxx:8080/misc_/ ProxyPassReverse /paginas/ http://200.xxx.xxx.xxx:8080/ ProxyPassReverse /p_/ http://200.xxx.xxx.xxx:8080/p_/ ProxyPassReverse /misc_/ http://200.xxx.xxx.xxx:8080/misc_/ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com ___ Zope maillist - [EMAIL PROTECTED] 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 )
Re: [Zope] Zope is very slow!
Hi Christiano (nice first message... :) ) First of all, lets define slow. What does slow mean? Have you tested it with AB (apachebench)? You sure it is not your connection? Watched it in TOP? My guess is that with 2.1.6 (straight) on that system you should be able to get about 200 requests per second which is not SLOW at all. Check your Apache, Proxycache and SiteAccess my guess it is there. Turn off debugging. Upgrade to 2.2.1 (60% faster on dual processors). Take a look at http://www.zope.org/Members/BwanaZulia/benchmarks.html to get an idea of what you system should be doing. Just some suggestions. J From: Christiano Anderson [EMAIL PROTECTED] Date: Thu, 17 Aug 2000 11:12:00 -0300 (BRT) To: [EMAIL PROTECTED] Subject: [Zope] Zope is very slow! Hi, This is my first message to the list... I'm currently running Zope 2.1.6 + Apache 1.3.12 (with proxycache). The system is a Solaris 5.6 on a E450 with 2GB Ram and 2 X 450mhz... The Zope is running with Apache, using the ProxyCache and SiteAccess to convert all requests from port 8080 to 80. My problem is: The system is *too slowly*! Does anyone know how to optimize the Zope to run quicker? Is there anything wrong with this configuration?? Thanks a lot, Christiano Anderson ___ Zope maillist - [EMAIL PROTECTED] 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 ) ___ Zope maillist - [EMAIL PROTECTED] 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 )
Re: [Zope] Zope is very slow!
Upgrade to 2.2.1 (60% faster on dual processors). Really? I didnt see anything about this in the Changes file... has something else changed I didnt see? I noticed that 2.1.6 wasnt making the best use of dual processors. -- Andy McKay, Developer, ActiveState http://www.ActiveState.com Programming for the People ___ Zope maillist - [EMAIL PROTECTED] 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 )
Re: [Zope] Zope is very slow!
I am pretty sure (61%) that in the original release of 2.2.0 there was something about a speed increase. One talked about on single processor (20-40%) and the other was dual processor (60-80%). It partly has to do with that "one line of magic code" in the z2.py. Ethan? Paul? DC? Care to shed some light? J From: Chris Withers [EMAIL PROTECTED] Organization: New Information Paradigms Date: Thu, 17 Aug 2000 17:15:57 +0100 To: Andy McKay [EMAIL PROTECTED] Cc: "J. Atwood" [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: [Zope] Zope is very slow! Andy McKay wrote: Upgrade to 2.2.1 (60% faster on dual processors). Really? I didnt see anything about this in the Changes file... has something else changed I didnt see? I noticed that 2.1.6 wasnt making the best use of dual processors. I thought only ZEO would make good use fo dual processors? Chris ___ Zope maillist - [EMAIL PROTECTED] 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 )
RE: [Zope] Zope is very slow!
I am pretty sure (61%) that in the original release of 2.2.0 there was something about a speed increase. One talked about on single processor (20-40%) and the other was dual processor (60-80%). It partly has to do with that "one line of magic code" in the z2.py. Ethan? Paul? DC? Care to shed some light? The speedup involves changing sys.checkinterval, which controls the interval (# of bytecodes) at which the Python runtime performs certain housekeeping chores. For multithreaded programs, upping this interval can cause a significant performance improvement (more about this on python.org in the sys module docs). 2.2 sets the interval to 120, a value that seemed to provide a general speedup across a number of systems I tested. Granted, this is not very scientific, which is why there is an '-i' option to z2.py that allows you to pass your own values for the interval to experiment and find a sweet spot for your given environment (see the z2.py docstring / command help). else changed I didnt see? I noticed that 2.1.6 wasnt making the best use of dual processors. I thought only ZEO would make good use fo dual processors? Note that effective use of multiple processors is mostly a function of the Python runtime (specifically the global interpreter lock) rather than an issue that Zope can address directly. So yes, ZEO is the best way to make effective use of MP. Brian Lloyd[EMAIL PROTECTED] Software Engineer 540.371.6909 Digital Creations http://www.digicool.com ___ Zope maillist - [EMAIL PROTECTED] 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 )
Re: [Zope] Zope is very slow!
I have limited experience with ProxyPass. I have many Zope installations (2.1.4, 2.1.6, 2.2.0b2, 2.2.0) on all sorts of different hardware configurations (all RH Linux) and non of them are slow. Most are running just plain ZServer but one (and the most hit) is running behind Apache with Zope.cgi. I suggest trying that and seeing if it makes a difference. J From: Christiano Anderson [EMAIL PROTECTED] Date: Thu, 17 Aug 2000 14:36:42 -0300 (BRT) To: "J. Atwood" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [Zope] Zope is very slow! Hi J, Thanks a lot for replying my message! :) Do you have any example of the best Apache and ProxyCache configuration to running zope? My configuration looks like this: IfModule mod_proxy.c ProxyRequests On #ProxyReceiveBufferSize 65536 ProxyReceiveBufferSize 0 CacheRoot "/www/proxycache" CacheSize 5000 CacheGcInterval 1 CacheMaxExpire 48 CacheLastModifiedFactor 0.1 CacheDefaultExpire 5 ProxyPass /paginas/ http://200.xxx.xxx.xxx:8080/ ProxyPass /p_/ http://200.xxx.xxx.xxx:8080/p_/ ProxyPass /misc_/ http://200.xxx.xxx.xxx:8080/misc_/ ProxyPassReverse /paginas/ http://200.xxx.xxx.xxx:8080/ ProxyPassReverse /p_/ http://200.xxx.xxx.xxx:8080/p_/ ProxyPassReverse /misc_/ http://200.xxx.xxx.xxx:8080/misc_/ The TOP result is: Memory: 2048M real, 524M free, 7184K swap in use, 2041M swap free PID USERNAME THR PRI NICE SIZE RES STATE TIMECPU COMMAND 8035 nobody11 310 13M 13M cpu0 174:10 29.70% python Only the Zope pages are slowly... The Apache is working properly... Thanks a lot for any help, Christiano On Thu, 17 Aug 2000, J. Atwood wrote: Hi Christiano (nice first message... :) ) First of all, lets define slow. What does slow mean? Have you tested it with AB (apachebench)? You sure it is not your connection? Watched it in TOP? My guess is that with 2.1.6 (straight) on that system you should be able to get about 200 requests per second which is not SLOW at all. Check your Apache, Proxycache and SiteAccess my guess it is there. Turn off debugging. Upgrade to 2.2.1 (60% faster on dual processors). Take a look at http://www.zope.org/Members/BwanaZulia/benchmarks.html to get an idea of what you system should be doing. Just some suggestions. J From: Christiano Anderson [EMAIL PROTECTED] Date: Thu, 17 Aug 2000 11:12:00 -0300 (BRT) To: [EMAIL PROTECTED] Subject: [Zope] Zope is very slow! Hi, This is my first message to the list... I'm currently running Zope 2.1.6 + Apache 1.3.12 (with proxycache). The system is a Solaris 5.6 on a E450 with 2GB Ram and 2 X 450mhz... The Zope is running with Apache, using the ProxyCache and SiteAccess to convert all requests from port 8080 to 80. My problem is: The system is *too slowly*! Does anyone know how to optimize the Zope to run quicker? Is there anything wrong with this configuration?? Thanks a lot, Christiano Anderson ___ Zope maillist - [EMAIL PROTECTED] 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 ) ___ Zope maillist - [EMAIL PROTECTED] 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 )
Re: [Zope] Zope is very slow!
Hi J, Thanks a lot for replying my message! :) Do you have any example of the best Apache and ProxyCache configuration to running zope? My configuration looks like this: IfModule mod_proxy.c ProxyRequests On #ProxyReceiveBufferSize 65536 ProxyReceiveBufferSize 0 CacheRoot "/www/proxycache" CacheSize 5000 CacheGcInterval 1 CacheMaxExpire 48 CacheLastModifiedFactor 0.1 CacheDefaultExpire 5 ProxyPass /paginas/ http://200.xxx.xxx.xxx:8080/ ProxyPass /p_/ http://200.xxx.xxx.xxx:8080/p_/ ProxyPass /misc_/ http://200.xxx.xxx.xxx:8080/misc_/ ProxyPassReverse /paginas/ http://200.xxx.xxx.xxx:8080/ ProxyPassReverse /p_/ http://200.xxx.xxx.xxx:8080/p_/ ProxyPassReverse /misc_/ http://200.xxx.xxx.xxx:8080/misc_/ The TOP result is: Memory: 2048M real, 524M free, 7184K swap in use, 2041M swap free PID USERNAME THR PRI NICE SIZE RES STATE TIMECPU COMMAND 8035 nobody11 310 13M 13M cpu0 174:10 29.70% python Only the Zope pages are slowly... The Apache is working properly... Thanks a lot for any help, Christiano On Thu, 17 Aug 2000, J. Atwood wrote: Hi Christiano (nice first message... :) ) First of all, lets define slow. What does slow mean? Have you tested it with AB (apachebench)? You sure it is not your connection? Watched it in TOP? My guess is that with 2.1.6 (straight) on that system you should be able to get about 200 requests per second which is not SLOW at all. Check your Apache, Proxycache and SiteAccess my guess it is there. Turn off debugging. Upgrade to 2.2.1 (60% faster on dual processors). Take a look at http://www.zope.org/Members/BwanaZulia/benchmarks.html to get an idea of what you system should be doing. Just some suggestions. J From: Christiano Anderson [EMAIL PROTECTED] Date: Thu, 17 Aug 2000 11:12:00 -0300 (BRT) To: [EMAIL PROTECTED] Subject: [Zope] Zope is very slow! Hi, This is my first message to the list... I'm currently running Zope 2.1.6 + Apache 1.3.12 (with proxycache). The system is a Solaris 5.6 on a E450 with 2GB Ram and 2 X 450mhz... The Zope is running with Apache, using the ProxyCache and SiteAccess to convert all requests from port 8080 to 80. My problem is: The system is *too slowly*! Does anyone know how to optimize the Zope to run quicker? Is there anything wrong with this configuration?? Thanks a lot, Christiano Anderson ___ Zope maillist - [EMAIL PROTECTED] 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 ) ___ Zope maillist - [EMAIL PROTECTED] 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 )