Re: [Zope-dev] Zope hanging on high loads
Scavenging the mail folder uncovered Duncan Booth's letter:
Although you don't say explicitly, I presume you are using Zope on NT. There are a few of us out there with the same problem as yourself. Basically as you have seen, sometime pcgi-wrapper hangs for no obvious reason.
sorry for the missing information. actually it is a Linux 2.2.13 on a i386 Netfinity box.
There are a few obvious bugs in pcgi-wrapper, but so far nobody I know of has been able to work out exactly why it is hanging.
I have found a mod_pcgi2 for apache that should bypass pcgi-wrapper, has somebody some more information on it? I compiled it but I am unable to use it to access zope pages. srm.conf and httpd.conf examples would be wellcome... :)
I use a workaround on my setup where I occasionally run a batch file that kills all pcgi-wrapper processes that have been running for more than 30 seconds, I can send you details if that would be of use.
mmm... we can do that but waht of the users waiting on the other end of the connection? they have to reload and we prefer a less drastical solution... anyway it is a good "patch" solution. I'll write some bash scripts to do that. thank you, federico -- Federico Di Gregorio MIXAD LIVE System Programmer fog@mixadlive.com Debian GNU/Linux Developer & Italian Press Contact fog@debian.org Lord, defend me from my friends; I can account for my enemies. -- Charles D'Hericault
On Thu, 20 Jan 2000, Federico Di Gregorio wrote:
I have found a mod_pcgi2 for apache that should bypass pcgi-wrapper, has somebody some more information on it? I compiled it but I am unable to use it to access zope pages. srm.conf and httpd.conf examples would be wellcome... :)
Download latest version (1.0.0). The README file contains description for all configuration directives; also there are some examples. If you still will be in trouble - write here. I got few success stories about the module and hadn't got any bug report or feature request yet. Oleg. ---- Oleg Broytmann Foundation for Effective Policies phd@phd.russ.ru Programmers don't die, they just GOSUB without RETURN.
Scavenging the mail folder uncovered Oleg Broytmann's letter:
On Thu, 20 Jan 2000, Federico Di Gregorio wrote:
I have found a mod_pcgi2 for apache that should bypass pcgi-wrapper, has somebody some more information on it? I compiled it but I am unable to use it to access zope pages. srm.conf and httpd.conf examples would be wellcome... :)
Download latest version (1.0.0). The README file contains description for all configuration directives; also there are some examples. If you still will be in trouble - write here. I got few success stories about the module and hadn't got any bug report or feature request yet.
downloaded, compiled, installed. now, my httpd.conf contains (note: the strange paths are due to the debian Zope install): PCGI_SOFTWARE_NAME Zope PCGI_SOFTWARE_HOME /usr/lib/zope PCGI_SOFTWARE_EXE /usr/bin/python PCGI_MODULE_PATH /usr/lib/zope/lib/python/Zope PCGI_PUBLISHER /usr/lib/zope/pcgi/pcgi_publisher.py PCGI_SOCKET_FILE /var/lib/zope/var/Z2-pcgi.soc PCGI_PID_FILE /var/lib/zope/var/Z2-pcgi.pid PCGI_ERROR_LOG /var/lib/zope/var/Z2-pcgi.log PCGI_DISPLAY_ERRORS 1 /var/log/apache/error.log contains: [Thu Jan 20 16:05:36 2000] [notice] Apache/1.3.9 (Unix) Debian/GNU (mod_pcgi2/1.0.0; PCGI/2.0a5) configured -- resuming normal operations in srm.conf I have: <Location /test> SetHandler pcgi-handler PCGI_ROOT / PCGI_SetEnv SiteRootPATH / </Location> but apache returns page not found (note that the zserver is up and running before starting apache.) can somebody help? thank you very much (this is no more -dev stuff, just tell me if I have to move to another ML), federico -- Federico Di Gregorio MIXAD LIVE System Programmer fog@mixadlive.com Debian GNU/Linux Developer & Italian Press Contact fog@debian.org Quis custodiet ipsos custodes? -- Juvenal, Satires, VI, 347
On Thu, 20 Jan 2000, Federico Di Gregorio wrote:
downloaded, compiled, installed. now, my httpd.conf contains (note: the strange paths are due to the debian Zope install):
PCGI_SOFTWARE_NAME Zope PCGI_SOFTWARE_HOME /usr/lib/zope PCGI_SOFTWARE_EXE /usr/bin/python PCGI_MODULE_PATH /usr/lib/zope/lib/python/Zope PCGI_PUBLISHER /usr/lib/zope/pcgi/pcgi_publisher.py PCGI_SOCKET_FILE /var/lib/zope/var/Z2-pcgi.soc PCGI_PID_FILE /var/lib/zope/var/Z2-pcgi.pid PCGI_ERROR_LOG /var/lib/zope/var/Z2-pcgi.log PCGI_DISPLAY_ERRORS 1
Looks good.
/var/log/apache/error.log contains:
[Thu Jan 20 16:05:36 2000] [notice] Apache/1.3.9 (Unix) Debian/GNU (mod_pcgi2/1.0.0; PCGI/2.0a5) configured -- resuming normal operations
Ok here.
in srm.conf I have:
Oops! Are you sure Apache reads the file? Latest Apache just skips it; or your particular installation may redefine the file to /dev/null or such...
<Location /test> SetHandler pcgi-handler PCGI_ROOT / PCGI_SetEnv SiteRootPATH / </Location>
Looks good.
but apache returns page not found
The directives had not been handled by some reasons. In case of the real error in my module you'll get error 500 (Internal server error). Try moving the directives into httpd.conf. Oleg. ---- Oleg Broytmann Foundation for Effective Policies phd@phd.russ.ru Programmers don't die, they just GOSUB without RETURN.
Scavenging the mail folder uncovered Oleg Broytmann's letter:
but apache returns page not found
The directives had not been handled by some reasons. In case of the real error in my module you'll get error 500 (Internal server error).
Try moving the directives into httpd.conf.
moved to access.conf. now it works! thank you very much, federico -- Federico Di Gregorio MIXAD LIVE System Programmer fog@mixadlive.com Debian GNU/Linux Developer & Italian Press Contact fog@debian.org Best friends are often failed lovers. -- Me
On Thu, 20 Jan 2000, Federico Di Gregorio wrote:
Try moving the directives into httpd.conf.
moved to access.conf. now it works! thank you very much,
success_stories_counter = success_stories_counter + 1 :))) Oleg. ---- Oleg Broytmann Foundation for Effective Policies phd@phd.russ.ru Programmers don't die, they just GOSUB without RETURN.
Where can I find instructions for using mod_pcgi2 as an apache DSO ? I tried it the obvious way (--activate-module=src/modules/pcgi2/libpcgi2.a --enable-shared=mod_pcgi2) but apache just seems to ignore it ;( the only indication in the log's is a message about being unable to unload mod_pcgi2 at restart: [Thu Feb 3 03:01:14 2000] [error] Cannot remove module mod_pcgi2.c: not found in module list --------- Hannu
On Thu, 3 Feb 2000, Hannu Krosing wrote:
Where can I find instructions for using mod_pcgi2 as an apache DSO ?
I tried it the obvious way (--activate-module=src/modules/pcgi2/libpcgi2.a --enable-shared=mod_pcgi2) but apache just seems to ignore it ;(
It is not a problem with the module, but with Apache. When I compiled Apache on Linux and Solaris in DSO mode, I tried to make my module (along with PyApache and some other 3rd-party modules) DSO - and failed. Later I looked into apache's Configure script, inserted a lot of debugging there... It seems apache handles 3rd-party modules a little different, so it was hard to make it DSO, but finally I managed to do this! I do not rememeber exact steps. I think I did this the following way: ./configure --activate-module=src/modules/pcgi2/libpcgi2.so edit src/Configuration.apaci and replace AddModule with SharedModule edit src/Makefile and remove shared modules from MODULES macro make && make install && some tweaking with httpd.conf later... Oleg. ---- Oleg Broytmann Foundation for Effective Policies phd@phd.russ.ru Programmers don't die, they just GOSUB without RETURN.
participants (3)
-
Federico Di Gregorio -
Hannu Krosing -
Oleg Broytmann