Re: [Zope] Cut/copy/paste problems
Hi! > i knew that! :) btw, there's currently sparse document on mod_pcgi2. i'd > like to change that, but i need info from you (the author ..straight from the > horses mouth - so to speak) or snippets from your httpd.conf. do i need to > have Zope.cgi available? i think i do since otherwise, there'll be no > connection. or am i missing something? You missed pcgi-wrapper :) If you look into Zope.cgi (it is just plain text file) you'd found it is a script interpreted by pcgi-wrapper. That very pcgi-wrapper is a binary file compiled from pcgi-wrapper.c during the Zope installation process. The pcgi-wrapper binary is the program that implements PCGI protocol. When I wrote mod_pcgi2, I borrowed a lot of code from pcgi-wrapper.c. That way you do not need Zope.cgi or pcgi-wrapper - the PCGI code is already in mod_pcgi2. > how can i finetune the performance? it seems that under heavy load, eg 100 > simultaneous apache connection, it'd get loger to contact the server. in the > browser, we'd see contacting the server, waiting for reply .. for about 3-4 > secs before we get any activity/reply from server. You'd need to finetune Zope, not the mod_pcgi2 module. When you connect to Zope-behind-Apache the process is going the following path: 1) browser sends a rquest to Apache 2) Apache invokes the mod_pcgi2 handler 3) the handler passes the request to Zope 4) !!! here is the problem to finetune !!! If Zope's own pull requests handlers is empty - Zope does not handle the request, but queues the request and waits 5) after Zope processes the request it passes the results back 6) mod_pcgi2 passes the results to Apache 7) Apache passess it back to browser. Ususally there are 4 threads in Zope, and 7 ZODB connections. The first number - 4 threads - could be configured by passing parameter to z2.py. If you raise the number much, you'd need to raise he seconf number somwhere in the ZODB source code. These are points for finetuning. Actually you may need to tune more things, but these things are just totally unrelated to mod_pcgi2. Tune ZODB cache, install and learn to use cacheing Products (the are a number of caches for Zope), use squid, etc. > when i do a packet dump, it seems that the machine needs a couple of SYN > before getting and ACK from the server. do you think it has anything to do > with mod_pcgi2? sorry if it's not. I'm pretty sure it has nothing with mod_pcgi2. SYN/ACK are properties of TCP/IP protocols, and PCGI protocol is much higher level. Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ 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] Cut/copy/paste problems
On Thu, 7 Dec 2000, Ivan Cornell wrote: > I've been having problems with copy/paste/rename with my site, which is apache > proxypassing (mod_rewrite [p] actually) onto a siterooted subdir of zserver. I Aha, SiteRoot! I thought is is a part of the problem. Thanks! Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ 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] Cut/copy/paste problems
Dieter Maurer wrote: > Oleg Broytmann writes: > > Cut/copy/paste problems in Zope behind Apache > > > >To help me to resolve the problem I want to ask the helpful community > > provide me some information. Of those who run Zope behind Apache please > > tell me: > > > > 1) which way do you connect? (mod_proxy, Zope.cgi, mod_pcgi2, mod_fcgi) > > 2) any problem? > We run Zope behind Apache using "ProxyPass". > We have no problems. I've been having problems with copy/paste/rename with my site, which is apache proxypassing (mod_rewrite [p] actually) onto a siterooted subdir of zserver. I haven't had time to set up a clean environment to evaluate exactly what goes on when it fails but intend to over the next fortnight. I appear to have 2 separate issues: 1 Trying to copy objects from outside the siteroot'd hierarchy into it. The object will appear in the wrong place [folder above] & zope will deny it exists if I try to access it until I restart zope. Temporary solution is to restart zope with SUPPRESS_SITEROOT & make the changes. This breaks my production site and so isn't ideal. My long term hack will probably to maintain a mirrored readonly site which I switch to whilst I update the main site so access isn't disrupted. There's so much path jiggerypokery going on with SiteAccess/SiteRoot I don't expect a clean solution! 2. Can't do anything with my ZClasses. I've tried applying the reindex patch I found somewhere. I think my problems might be to do with the fact that I have catalogaware zclasses that inherit from catalogaware base classes and something isn't quite working there. All my problems are consistent (always happen!) & I'm running latest of everything: Zope 2.2.4 & apache 1.3.14, Regards, Ivan ___ 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] Cut/copy/paste problems
Hi! On Thu, 7 Dec 2000, Bak@kedai wrote: > i've tried proxypass, fcgi, and modpci2. and i stuck with mod_pcgi2, since > this is the option with the least amount of problems/failure. Wow! Thank you (I am the author of mod_pcgi2, if you didn't noticed :) > i connect to zserver for all my management/development, so i may not see > cut/copy/paste problem. but i did give it a try with mod_pcgi2 and > apache1.3.9, and i can cut/copy/paste. Thank you very much for the help. This will help me to narrow down the problem. Oleg. Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ 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] Cut/copy/paste problems
On Wednesday 06 December 2000 19:08, Oleg Broytmann wrote: > Hello! > >For a long while I have problems with cut/copy/paste in Zope management > interface. >I run Zope behind Apache with mod_pcgi2. > >I did some quick experiments. I connected directly to Zope (port 8080). > Cut/copy/paste worked flawlessly. Hence the problem is not in the browser > nor in the proxy nor in Zope. Perhaps the problem is in mod_pcgi2 or in > the Apache or in my specific version of Russian Apache. > >I switched to Zope.cgi. Copy/paste worked, but cut stopped working. > Oops! First sign of problem. May be this is a problem with PCGI? >With mod_pcgi2 copy/paste almost always do not work. > >To help me to resolve the problem I want to ask the helpful community > provide me some information. Of those who run Zope behind Apache please > tell me: > > 1) which way do you connect? (mod_proxy, Zope.cgi, mod_pcgi2, mod_fcgi) > i've tried proxypass, fcgi, and modpci2. and i stuck with mod_pcgi2, since this is the option with the least amount of problems/failure. >2) any problem? w fcgi, i have connection failed errors. with proxy pass, zope intermittently hangs, causing apache to reach the max client parameter set. i connect to zserver for all my management/development, so i may not see cut/copy/paste problem. but i did give it a try with mod_pcgi2 and apache1.3.9, and i can cut/copy/paste. hth > >Thank you in advance. > > Oleg. > > Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] >Programmers don't die, they just GOSUB without RETURN. > > > ___ > 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 ) -- http://www.kedai.com.my/kk http://www.kedai.com.my/eZine I will follow you! ..Damage Inc ___ 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] Cut/copy/paste problems
Oleg Broytmann writes: > Cut/copy/paste problems in Zope behind Apache > >To help me to resolve the problem I want to ask the helpful community > provide me some information. Of those who run Zope behind Apache please > tell me: > > 1) which way do you connect? (mod_proxy, Zope.cgi, mod_pcgi2, mod_fcgi) > 2) any problem? We run Zope behind Apache using "ProxyPass". We have no problems. Dieter ___ 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] Cut/copy/paste problems
Hello! For a long while I have problems with cut/copy/paste in Zope management interface. I run Zope behind Apache with mod_pcgi2. I did some quick experiments. I connected directly to Zope (port 8080). Cut/copy/paste worked flawlessly. Hence the problem is not in the browser nor in the proxy nor in Zope. Perhaps the problem is in mod_pcgi2 or in the Apache or in my specific version of Russian Apache. I switched to Zope.cgi. Copy/paste worked, but cut stopped working. Oops! First sign of problem. May be this is a problem with PCGI? With mod_pcgi2 copy/paste almost always do not work. To help me to resolve the problem I want to ask the helpful community provide me some information. Of those who run Zope behind Apache please tell me: 1) which way do you connect? (mod_proxy, Zope.cgi, mod_pcgi2, mod_fcgi) 2) any problem? Thank you in advance. Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ 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] Cut, copy & paste
I am returning to some Zope work after a long absence and I cannot get cut, copy & paste to work in the management screens. I have a brand new install of 2.2.2 on NT4/SP6, using IE5 (with cookies enabled) and if I cut/copy something in the management screens, the paste button appears as expected. If I go to another folder, no paste button. If I go back to the original folder the paste button has disappeared. This happens as the super-user or any other user I have defined. A quick search of the mailing list and Zope site failed to turn up anything. Can anyone shed some light on this, as it's a giant pain to have to export each time I want to move something. TIA Robert PS Please cc me directly on this as I am in digest mode. Thanks. ___ 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 )