hello all, my zope(2.3.x) is too slow servinng behind apache, compared to default way (port 8080) or am i missing something? here's my virtual host apache httpd.conf (rh linux 7.1) <VirtualHost 192.168.0.252> ServerName new.fiducia-china.com ServerAdmin info@mydomain.com ProxyPass / http://localhost:8080/VirtualHostBase/http/mydomain.com:80/myfolder/VirtualH ostRoot/ ProxyPassReverse / http://localhost:8080/VirtualHostBase/http/mydomain.com:80/myfolder/VirtualH ostRoot/ </VirtualHost> ismet
In my limited ProxyPass experience, it kind of sucks. Apart from that, it looks to me like you want to use mod_rewrite there instead of proxypass. There's a howto somewhere on zope.org about VirtualHostMonsters which uses mod_rewrite. Here's my http.conf: <VirtualHost 213.210.4.254> ServerAdmin root@localhost DocumentRoot /usr/local/apache/htdocs ServerName www.mtpleasant-jin.kirkless.sch.uk DirectoryIndex index_html RewriteEngine on RewriteRule /(.*) http://localhost:9080/LiveSites/VirtualHostBase/http/www.mtpleasant-jin.kirk... [e=HTTP_CGI_AUTHORIZATION:%1,P] </VirtualHost> seb * Ismet Dere <ismet@fiducia-china.com> [010718 04:57]:
hello all,
my zope(2.3.x) is too slow servinng behind apache, compared to default way (port 8080) or am i missing something?
here's my virtual host apache httpd.conf (rh linux 7.1)
<VirtualHost 192.168.0.252> ServerName new.fiducia-china.com ServerAdmin info@mydomain.com ProxyPass / http://localhost:8080/VirtualHostBase/http/mydomain.com:80/myfolder/VirtualH ostRoot/ ProxyPassReverse / http://localhost:8080/VirtualHostBase/http/mydomain.com:80/myfolder/VirtualH ostRoot/ </VirtualHost>
ismet
_______________________________________________ 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 )
-- [] j a m k i t seb bacon T: 020 7749 7218 F: 020 7739 8683 M: 07968 301 336 W: www.jamkit.com
Do you really want a python based aplication be faster than a C based application? It may be possible, but not in this galaxy! Sorry if i missed some thing! best regards. On Wed, Jul 18, 2001 at 11:43:33AM -0700, Ismet Dere wrote:
hello all,
my zope(2.3.x) is too slow servinng behind apache, compared to default way (port 8080) or am i missing something?
here's my virtual host apache httpd.conf (rh linux 7.1)
<VirtualHost 192.168.0.252> ServerName new.fiducia-china.com ServerAdmin info@mydomain.com ProxyPass / http://localhost:8080/VirtualHostBase/http/mydomain.com:80/myfolder/VirtualH ostRoot/ ProxyPassReverse / http://localhost:8080/VirtualHostBase/http/mydomain.com:80/myfolder/VirtualH ostRoot/ </VirtualHost>
ismet
_______________________________________________ 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 )
-- Too clever is dumb. -- Ogden Nash
Hello Gustavo,
Do you really want a python based aplication be faster than a C based application? It may be possible, but not in this galaxy! Sorry if i missed some thing!
yeah. i guess your are missing one thing: imo he didn't want to say, that zope is slower then apache, but that zope standalone is faster then zope behind apache, via proxypass (or mod_rewrite). i wonder how big is the difference between zope without, zope with proxypass and zope with mod_rewrite.. (no time for benchmarking today..) Best Regards, Justin
my zope(2.3.x) is too slow servinng behind apache, compared to default way (port 8080) or am i missing something?
here's my virtual host apache httpd.conf (rh linux 7.1)
<VirtualHost 192.168.0.252> ServerName new.fiducia-china.com ServerAdmin info@mydomain.com ProxyPass / http://localhost:8080/VirtualHostBase/http/mydomain.com:80/myfolder/VirtualH ostRoot/ ProxyPassReverse / http://localhost:8080/VirtualHostBase/http/mydomain.com:80/myfolder/VirtualH ostRoot/ </VirtualHost>
Does anyone know how to have Zope support the system variables in Python, for example __init__. It currently does not support this because it wont let you import any objects beginning with "_". Is there any way around this? Thanks! __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
On Wed, Jul 18, 2001 at 09:57:24AM -0700, P Cowley wrote:
Does anyone know how to have Zope support the system variables in Python, for example __init__.
It currently does not support this because it wont let you import any objects beginning with "_".
Is there any way around this?
Yes: create External Methods or Zope Products there's also a 'hacky' solution for PythonScripts, find it in the mail archive at zope.nipltd.com hoping this helps Jerome Alet
Hi Ismet, you might want to add real caching to the Apache configlook at thios snipplet: ----------------- # # To enable the cache as well, edit and uncomment the following lines: # (no cacheing without CacheRoot) # #CacheRoot "/var/cache/httpd" #CacheSize 5 #CacheGcInterval 4 #CacheMaxExpire 24 #CacheLastModifiedFactor 0.1 #CacheDefaultExpire 1 #NoCache a_domain.com another_domain.edu joes.garage_sale.com ----------------- This ought to go into your ProxyPass section. - Holle Am Mittwoch, 18. Juli 2001 20:43 schrieben Sie:
hello all,
my zope(2.3.x) is too slow servinng behind apache, compared to default way (port 8080) or am i missing something?
here's my virtual host apache httpd.conf (rh linux 7.1)
<VirtualHost 192.168.0.252> ServerName new.fiducia-china.com ServerAdmin info@mydomain.com ProxyPass / http://localhost:8080/VirtualHostBase/http/mydomain.com:80/myfolder/Virtual H ostRoot/ ProxyPassReverse / http://localhost:8080/VirtualHostBase/http/mydomain.com:80/myfolder/Virtual H ostRoot/ </VirtualHost>
ismet
_______________________________________________ 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 )
-- ----------------------------------- catWorkX GmbH Dipl.-Ing. Holger Lehmann Buxtehuder Straße 112c 21073 Hamburg Tel: +49 (0700) catWorkX Tel: +49 (40) 890 646-0 Fax: +49 (40) 890 646-66 mailto:lehmann@catworkx.de http://www.catworkx.de http://www.catbridge.de
At 11:43 18/07/2001 -0700, Ismet Dere wrote:
hello all,
my zope(2.3.x) is too slow servinng behind apache, compared to default way (port 8080) or am i missing something?
Your first question has to be: what is the performance of the apache server doing the proxying? If that is heavily loaded, particularly if TCP/IP connections are queueing on its port (80 presumably), then the services of the proxied zope server as well as the apache provided services will be slow. I've got a Zope server in out intranet running on a machine with a private IP number. Parts of the zope database can be accessed from the outside via ProxyPass through our public Apache server. Internal users going direct to the zope server have to rate response. The performance connecting via the proxy versus going direct is very noticeably worse at times of heavy load on the proxying Apache machine. In any event there is always some performance degradation because of the extra TCP/IP connection that has to be established from proxy machine to zope machine.
here's my virtual host apache httpd.conf (rh linux 7.1)
<VirtualHost 192.168.0.252> ServerName new.fiducia-china.com ServerAdmin info@mydomain.com ProxyPass / http://localhost:8080/VirtualHostBase/http/mydomain.com:80/myfolder/VirtualH ostRoot/ ProxyPassReverse / http://localhost:8080/VirtualHostBase/http/mydomain.com:80/myfolder/VirtualH ostRoot/ </VirtualHost>
ismet
_______________________________________________ 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 (8)
-
Gustavo Vieira Goncalves Coelho Rios -
Holger Lehmann -
Ismet Dere -
Jerome Alet -
Justin Heesemann -
P Cowley -
Richard Barrett -
seb bacon