Is there a way to askZope whether it is running multithreaded
I am using Wing as a debugger. This excellent tool needs Zope to run singlethreaded. Otherwise it dies so miserably that it kills even the Linux it is running on. Wing uses a patched z2.py where it has a call to connect to wing added. I would like to be able to avoid connecting to Wing when Zope is running multithreaded. thanks Robert
Robert, I could be misleading you (and myself) but as I understand, the -t is for that. Here is the exerpt from the z2.py which is run by start(.bat in case of windows) -t n The number of threads to use, if ZODB3 is used. The default is %(NUMBER_OF_THREADS)s. I would guess just use a -t 1 argument and you should be fine. Although I;m not sure if this is what limits the number of python thread. Cheers, Paul Zwarts -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org] On Behalf Of Robert Rottermann Sent: Friday, November 23, 2001 10:33 AM To: zope@zope.org Subject: [Zope] Is there a way to askZope whether it is running multithreaded I am using Wing as a debugger. This excellent tool needs Zope to run singlethreaded. Otherwise it dies so miserably that it kills even the Linux it is running on. Wing uses a patched z2.py where it has a call to connect to wing added. I would like to be able to avoid connecting to Wing when Zope is running multithreaded. thanks Robert _______________________________________________ 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 )
Paul, you are right, it is this parameter that controls the number of threads. However I would like to ask how this parameter was set within Zope so I can control starting of Wing. Robert ----- Original Message ----- From: "Paul Zwarts" <paz@oratrix.com> To: "'Robert Rottermann'" <robert@redcor.ch>; <zope@zope.org> Sent: Friday, November 23, 2001 11:18 AM Subject: RE: [Zope] Is there a way to askZope whether it is running multithreaded
Robert,
I could be misleading you (and myself) but as I understand, the -t is for that. Here is the exerpt from the z2.py which is run by start(.bat in case of windows)
-t n
The number of threads to use, if ZODB3 is used. The default is %(NUMBER_OF_THREADS)s.
I would guess just use a -t 1 argument and you should be fine. Although I;m not sure if this is what limits the number of python thread.
Cheers, Paul Zwarts
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org] On Behalf Of Robert Rottermann Sent: Friday, November 23, 2001 10:33 AM To: zope@zope.org Subject: [Zope] Is there a way to askZope whether it is running multithreaded
I am using Wing as a debugger. This excellent tool needs Zope to run singlethreaded. Otherwise it dies so miserably that it kills even the Linux it is running on.
Wing uses a patched z2.py where it has a call to connect to wing added.
I would like to be able to avoid connecting to Wing when Zope is running multithreaded.
thanks
Robert
_______________________________________________ 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 )
Robert, I'm not one to ask regarding this, but my best guess is that you would need to hack into the core features of Zope. You'll probably be needing to surf the code in the /Zserver directory, and the like in Medusa.py or something or other. Be patient and I think some of the senior people around this list could offer an educated opinion. Good luck, Paul Zwarts -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org] On Behalf Of Robert Rottermann Sent: Friday, November 23, 2001 12:24 PM To: Paul Zwarts; zope@zope.org Subject: Re: [Zope] Is there a way to askZope whether it is running multithreaded Paul, you are right, it is this parameter that controls the number of threads. However I would like to ask how this parameter was set within Zope so I can control starting of Wing. Robert ----- Original Message ----- From: "Paul Zwarts" <paz@oratrix.com> To: "'Robert Rottermann'" <robert@redcor.ch>; <zope@zope.org> Sent: Friday, November 23, 2001 11:18 AM Subject: RE: [Zope] Is there a way to askZope whether it is running multithreaded
Robert,
I could be misleading you (and myself) but as I understand, the -t is for that. Here is the exerpt from the z2.py which is run by start(.bat in case of windows)
-t n
The number of threads to use, if ZODB3 is used. The default is %(NUMBER_OF_THREADS)s.
I would guess just use a -t 1 argument and you should be fine. Although I;m not sure if this is what limits the number of python thread.
Cheers, Paul Zwarts
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org] On Behalf Of Robert Rottermann Sent: Friday, November 23, 2001 10:33 AM To: zope@zope.org Subject: [Zope] Is there a way to askZope whether it is running multithreaded
I am using Wing as a debugger. This excellent tool needs Zope to run singlethreaded. Otherwise it dies so miserably that it kills even the Linux it is running on.
Wing uses a patched z2.py where it has a call to connect to wing added.
I would like to be able to avoid connecting to Wing when Zope is running multithreaded.
thanks
Robert
_______________________________________________ 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 )
_______________________________________________ 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 )
Thanks any how. I think I should be able to ask for the options Zope was started with. Robert ----- Original Message ----- From: "Paul Zwarts" <paz@oratrix.com> To: "'Robert Rottermann'" <robert@redcor.ch> Cc: <zope@zope.org> Sent: Friday, November 23, 2001 2:08 PM Subject: RE: [Zope] Is there a way to askZope whether it is running multithreaded
Robert,
I'm not one to ask regarding this, but my best guess is that you would need to hack into the core features of Zope. You'll probably be needing to surf the code in the /Zserver directory, and the like in Medusa.py or something or other. Be patient and I think some of the senior people around this list could offer an educated opinion.
Good luck, Paul Zwarts
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org] On Behalf Of Robert Rottermann Sent: Friday, November 23, 2001 12:24 PM To: Paul Zwarts; zope@zope.org Subject: Re: [Zope] Is there a way to askZope whether it is running multithreaded
Paul, you are right, it is this parameter that controls the number of threads.
However I would like to ask how this parameter was set within Zope so I can control starting of Wing.
Robert
----- Original Message ----- From: "Paul Zwarts" <paz@oratrix.com> To: "'Robert Rottermann'" <robert@redcor.ch>; <zope@zope.org> Sent: Friday, November 23, 2001 11:18 AM Subject: RE: [Zope] Is there a way to askZope whether it is running multithreaded
Robert,
I could be misleading you (and myself) but as I understand, the -t is for that. Here is the exerpt from the z2.py which is run by start(.bat in case of windows)
-t n
The number of threads to use, if ZODB3 is used. The default is %(NUMBER_OF_THREADS)s.
I would guess just use a -t 1 argument and you should be fine. Although I;m not sure if this is what limits the number of python thread.
Cheers, Paul Zwarts
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org] On Behalf Of Robert Rottermann Sent: Friday, November 23, 2001 10:33 AM To: zope@zope.org Subject: [Zope] Is there a way to askZope whether it is running multithreaded
I am using Wing as a debugger. This excellent tool needs Zope to run singlethreaded. Otherwise it dies so miserably that it kills even the Linux it is running on.
Wing uses a patched z2.py where it has a call to connect to wing added.
I would like to be able to avoid connecting to Wing when Zope is running multithreaded.
thanks
Robert
_______________________________________________ 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 )
_______________________________________________ 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 )
_______________________________________________ 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 )
Robert Rottermann writes:
you are right, it is this parameter that controls the number of threads.
However I would like to ask how this parameter was set within Zope so I can control starting of Wing. Zope does not set it.
It is set on the command line (or gets a default value, which is greater than 1) and Zope obeys this value... Dieter
participants (3)
-
Dieter Maurer -
Paul Zwarts -
Robert Rottermann