[Zope] Zope does not respond but still running
Bo M. Maryniuck
b.maryniuk@forbis.lt
Fri, 8 Nov 2002 15:56:20 +0200
On Friday 08 November 2002 09:28, Lars H. Korte wrote:
> After updating my machine (128MB RAM) to 500MB of swapspace, there's no
> change. The zope processes are running, but neither can I access the ZM=
I nor
> my site.
Suppose some idiot will use Opera browser and clicks twenty times on the=20
button, which does these things: in your case Zope will reindex forewer y=
our=20
lots of objects and in my case Zope will try rotate huge Oracle transacti=
on.=20
Well, I solve this problem by some *ugly* hook, but I'm stuck to find=20
something better. I just put/change a flag into the session, which means =
that=20
method is called and in progress or already done. If user clicks some but=
ton=20
AGAIN, Zope looks at the flag first and if it still in progress, just ski=
ps=20
the method call. Maybe Zope gurus knows something better...
In your case (might be):
1. Bad solution design?
2. Try go to the background? I mean show "Please wait" screen while index=
ing.=20
But again: one user per one server?!!! If somebody ELSE over the Net will=
try=20
the same thing, then Zope will index not 144.000 but 288.000 objects and =
your=20
server can be exploded (or you...).
3. Try use external DB? Note, that ZODB or Gadfly is not the best choise =
to=20
write something huge.
> Any ideas?
<wink type=3D"veryAcid">
Use Zope only to develope empty homepage for your modest girlfriend.
</wink>
--=20
Regards, Bogdan
He who sacrifices functionality for ease of use
Loses both and deserves neither