Re: [Zope] DeadlockDebugger - Anyone tried using it?
I have used it successfully under Windows. Don't know if my knowledge would be any good for Linux. What exactly seems to be the problem? Etienne
I installed it and the python threading pieces it needs as directed. Modified the config file as directed. Moved the folder under Products as directed. Restarted my 3 Zope/ZEO clients. It does not show up as a Product in the CP and passing the SECRET phrase as directed results in a "Resource not found" error and "Resource: manage_debug_threads GET" No other errors or complaints that I can see starting Zope. Does the ZEO server need to be restart? Just not sure. We get Zope clients that will spin and spin and never come back. Sounds like this is supposed to let one 'see' what is hanging. My impression anyway. Thanks -Allen Etienne Labuschagne wrote:
I have used it successfully under Windows. Don't know if my knowledge would be any good for Linux. What exactly seems to be the problem?
Etienne _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
On Thursday 03 March 2005 11:30 am, Allen Schmidt wrote:
I installed it and the python threading pieces it needs as directed. Modified the config file as directed. Moved the folder under Products as directed. Restarted my 3 Zope/ZEO clients.
It does not show up as a Product in the CP and passing the SECRET phrase as directed results in a "Resource not found" error and "Resource: manage_debug_threads GET"
No other errors or complaints that I can see starting Zope. Does the ZEO server need to be restart? Just not sure.
We get Zope clients that will spin and spin and never come back. Sounds like this is supposed to let one 'see' what is hanging. My impression anyway.
Thanks -Allen
Etienne Labuschagne wrote:
I have used it successfully under Windows. Don't know if my knowledge would be any good for Linux. What exactly seems to be the problem?
Etienne
Sounds like your getting an error in the product on startup. Change the debug mode to on in your zope.conf and start zope directly. You should see errors as to why the product isn't getting loaded. I just recently installed Deadlock debugger under linux and tested without problem. My first attempt didn't have the .so file in the right place for the python interpreter to find. Fixing that made everything work as indicated. -Chris -- Chris Kratz
Allen Schmidt wrote at 2005-3-3 11:30 -0500:
I installed it and the python threading pieces it needs as directed. Modified the config file as directed. Moved the folder under Products as directed. Restarted my 3 Zope/ZEO clients.
It does not show up as a Product in the CP
It does not need to (as you do not create an instance).
and passing the SECRET phrase as directed results in a "Resource not found" error and "Resource: manage_debug_threads GET"
When I look at the source, I had the impression that a log entry is written when ZServer is patched. Do you see this entry? -- Dieter
I installed it and the python threading pieces it needs as directed. Modified the config file as directed. Moved the folder under Products as directed. Restarted my 3 Zope/ZEO clients.
You have double checked that threadframe works under Python? eg.
import threadframe threadframe.dict() {1234: <frame object at 0x123123123}
or something similar.
It does not show up as a Product
It won't - it's a very low level hook which is good as it can serve even when Zope hangs
in the CP and passing the SECRET phrase as directed results in a "Resource not found" error and "Resource: manage_debug_threads GET"
I know you say you have changed it, but to recap, make sure of the following in custom.py: 1) You MUST change the SECRET variable's value to something else than the default (this one caught me out) 2) Make sure that the ACTIVATED variable is set to True, it is False by default. (This one also caught me out - doh)
No other errors or complaints that I can see starting Zope. Does the ZEO server need to be restart? Just not sure.
No, this should be Zope client specific and should have nothing to do with ZEO
We get Zope clients that will spin and spin and never come back. Sounds like this is supposed to let one 'see' what is hanging. My impression anyway.
It doesn't help. It HELPS A LOT! Get it running and you world will change ;)
Thanks -Allen
Etienne Labuschagne wrote:
I have used it successfully under Windows. Don't know if my knowledge would be any good for Linux. What exactly seems to be the problem?
Etienne _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Etienne Labuschagne <elabuschagne@gmail.com> wrote:
I installed it and the python threading pieces it needs as directed. Modified the config file as directed. Moved the folder under Products as directed. Restarted my 3 Zope/ZEO clients.
You have double checked that threadframe works under Python? eg.
import threadframe threadframe.dict() {1234: <frame object at 0x123123123}
or something similar.
That's a good test for threadframe installation, yes. Not that it should be done with the python that's used to run the Zope instance.
It does not show up as a Product
It won't - it's a very low level hook which is good as it can serve even when Zope hangs
No, it is a normal Zope product that should show up in the Control Panel.
in the CP and passing the SECRET phrase as directed results in a "Resource not found" error and "Resource: manage_debug_threads GET"
I know you say you have changed it, but to recap, make sure of the following in custom.py: 1) You MUST change the SECRET variable's value to something else than the default (this one caught me out) 2) Make sure that the ACTIVATED variable is set to True, it is False by default. (This one also caught me out - doh)
The double customization was make sure people read the doc, and to make it possible to disable the product without erasing the password.
No other errors or complaints that I can see starting Zope. Does the ZEO server need to be restart? Just not sure.
You should see an INFO message in the logs when starting Zope saying that the product is installed. Or an ERROR message saying what's wrong. Florent
No, this should be Zope client specific and should have nothing to do with ZEO
We get Zope clients that will spin and spin and never come back. Sounds like this is supposed to let one 'see' what is hanging. My impression anyway.
It doesn't help. It HELPS A LOT! Get it running and you world will change ;)
-- Florent Guillaume, Nuxeo (Paris, France) CTO, Director of R&D +33 1 40 33 71 59 http://nuxeo.com fg@nuxeo.com
So it should NOT be using the same python running zope?? It is not in the CP Product list. Will try again and check the logs Been busy with other things and have not had time to look. Thanks! Allen Florent Guillaume wrote:
import threadframe threadframe.dict() {1234: <frame object at 0x123123123} or something similar. That's a good test for threadframe installation, yes. Not that it should be done with the python that's used to run the Zope instance.
No, it is a normal Zope product that should show up in the Control Panel.
The double customization was make sure people read the doc, and to make it possible to disable the product without erasing the password.
You should see an INFO message in the logs when starting Zope saying that the product is installed. Or an ERROR message saying what's wrong.
Allen Schmidt <aschmidt@fredericksburg.com> wrote:
Florent Guillaume wrote:
That's a good test for threadframe installation, yes. Not that it should be done with the python that's used to run the Zope instance.
So it should NOT be using the same python running zope??
That was a typo. Read "Note that it should...". Florent -- Florent Guillaume, Nuxeo (Paris, France) CTO, Director of R&D +33 1 40 33 71 59 http://nuxeo.com fg@nuxeo.com
I got this working!! It is really quite slick. I could just keep hitting refresh all night. I checked in python that the parts were there and worked. My event.logs showed it coming up. I had it in an old Products folder. That was the problem and now it shows in the CP/Products folder. So if I now see a spinning zope, I can run this and see....what? I can't wait for one of the clients to hang up! Allen Florent Guillaume wrote:
Etienne Labuschagne <elabuschagne@gmail.com> wrote:
I installed it and the python threading pieces it needs as directed. Modified the config file as directed. Moved the folder under Products as directed. Restarted my 3 Zope/ZEO clients.
You have double checked that threadframe works under Python? eg.
import threadframe threadframe.dict()
{1234: <frame object at 0x123123123}
or something similar.
That's a good test for threadframe installation, yes. Not that it should be done with the python that's used to run the Zope instance.
It does not show up as a Product
It won't - it's a very low level hook which is good as it can serve even when Zope hangs
No, it is a normal Zope product that should show up in the Control Panel.
in the CP and passing the SECRET phrase as directed results in a "Resource not found" error and "Resource: manage_debug_threads GET"
I know you say you have changed it, but to recap, make sure of the following in custom.py: 1) You MUST change the SECRET variable's value to something else than the default (this one caught me out) 2) Make sure that the ACTIVATED variable is set to True, it is False by default. (This one also caught me out - doh)
The double customization was make sure people read the doc, and to make it possible to disable the product without erasing the password.
No other errors or complaints that I can see starting Zope. Does the ZEO server need to be restart? Just not sure.
You should see an INFO message in the logs when starting Zope saying that the product is installed. Or an ERROR message saying what's wrong.
Florent
No, this should be Zope client specific and should have nothing to do with ZEO
We get Zope clients that will spin and spin and never come back. Sounds like this is supposed to let one 'see' what is hanging. My impression anyway.
It doesn't help. It HELPS A LOT! Get it running and you world will change ;)
participants (5)
-
Allen Schmidt -
Chris Kratz -
Dieter Maurer -
Etienne Labuschagne -
Florent Guillaume