How to know what are zope doing now?
Hi! Every night my Zope server has 99% cpu usage and, sometimes, the server stops to serve pages There are any way to know what the Zope server is doing in real time? I know I could look at event.log or z2.log but I would like to know the activity in real time Is this posible? How can I know what my server is doing? Thanks! -- Mis Cosas http://blogs.sistes.net/Garito
On 9/19/07, Garito <garito@sistes.net> wrote:
Hi! Every night my Zope server has 99% cpu usage and, sometimes, the server stops to serve pages
There are any way to know what the Zope server is doing in real time?
I know I could look at event.log or z2.log but I would like to know the activity in real time
Is this posible?
How can I know what my server is doing?
Thanks!
The DeadlockDebugger product may help (it helped me in a similar situation); http://www.zope.org/Members/nuxeo/Products/DeadlockDebugger/folder_contents
You might also consider turning on the trace log. I've sometimes done troubleshooting by eyeballing that file and/or using requestprofiler.py. This is useful if some requests are taking so long that zope seems to hang. But DeadlockDebugger might be easier to use. - P On Thu, Sep 20, 2007 at 01:33:55AM +0200, Garito wrote:
Hi! Every night my Zope server has 99% cpu usage and, sometimes, the server stops to serve pages
There are any way to know what the Zope server is doing in real time?
I know I could look at event.log or z2.log but I would like to know the activity in real time
Is this posible?
How can I know what my server is doing?
-- Paul Winkler http://www.slinkp.com
Thank you very much! I was thinking in something more like a monitor (to use it even if zope is working ok) but I try it 2007/9/20, Paul Winkler <pw_lists@slinkp.com>:
You might also consider turning on the trace log. I've sometimes done troubleshooting by eyeballing that file and/or using requestprofiler.py. This is useful if some requests are taking so long that zope seems to hang. But DeadlockDebugger might be easier to use.
- P
On Thu, Sep 20, 2007 at 01:33:55AM +0200, Garito wrote:
Hi! Every night my Zope server has 99% cpu usage and, sometimes, the server stops to serve pages
There are any way to know what the Zope server is doing in real time?
I know I could look at event.log or z2.log but I would like to know the activity in real time
Is this posible?
How can I know what my server is doing?
--
Paul Winkler http://www.slinkp.com _______________________________________________ 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 )
-- Mis Cosas http://blogs.sistes.net/Garito
Hi Garito
Thank you very much! I was thinking in something more like a monitor (to use it even if zope is working ok) but I try it Perhaps profiling is what you are looking for. Inside the ZMI Go to: /Control_Panel/DebugInfo and press the "Profiling"-tab. In order to use this, you will have to enable it in your zope.conf file (See the comments there).
I'm not sure if this is mentioned somewhere in the zope book (you may look for it), but I know that the zope help mentions it; just click on the "Profiling"-tab, then go to the help link at the upper-right corner of the ZMI. Best regards Josef
Hi, Josef! If I enable this at my zope.conf the instance hangs and don't respond to any petition I don't know if is really hanged or the profiler is working but I spend 30 minutes refeshing and nothing happen Is this normal? Thanks! 2007/9/20, Josef Meile <jmeile@hotmail.com>:
Hi Garito
Thank you very much! I was thinking in something more like a monitor (to use it even if zope is working ok) but I try it Perhaps profiling is what you are looking for. Inside the ZMI Go to: /Control_Panel/DebugInfo and press the "Profiling"-tab. In order to use this, you will have to enable it in your zope.conf file (See the comments there).
I'm not sure if this is mentioned somewhere in the zope book (you may look for it), but I know that the zope help mentions it; just click on the "Profiling"-tab, then go to the help link at the upper-right corner of the ZMI.
Best regards Josef _______________________________________________ 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 )
-- Mis Cosas http://blogs.sistes.net/Garito
Garito wrote at 2007-9-20 17:18 +0200:
If I enable this at my zope.conf the instance hangs and don't respond to any petition
Maybe, you try "ZopeProfiler"? <http://www.dieter.handshake.de/pyprojects/zope> -- Dieter
I would like to try it but I put it on my instance's Products, restart zope and... nothing I have Ubuntu Fesity + Zope 2.9.6 (the apt-get version) What is supposed I could find about it in my ZMI? Thanks! 2007/9/20, Dieter Maurer <dieter@handshake.de>:
Garito wrote at 2007-9-20 17:18 +0200:
If I enable this at my zope.conf the instance hangs and don't respond to any petition
Maybe, you try "ZopeProfiler"?
<http://www.dieter.handshake.de/pyprojects/zope>
-- Dieter
-- Mis Cosas http://blogs.sistes.net/Garito
Garito wrote at 2007-9-20 20:51 +0200:
I would like to try it but I put it on my instance's Products, restart zope and... nothing
I have Ubuntu Fesity + Zope 2.9.6 (the apt-get version)
What is supposed I could find about it in my ZMI?
"ZopeProfiler" installs itself in "Control_Panel". It is a singleton. No need and no sense to install it anywhere else. Therefore, it does not add itself to the "Add list". -- Dieter
I supposed that but any ZopeProfiler objects appears on my Control_Panel Any suggestion? Thanks! 2007/9/21, Dieter Maurer <dieter@handshake.de>:
Garito wrote at 2007-9-20 20:51 +0200:
I would like to try it but I put it on my instance's Products, restart zope and... nothing
I have Ubuntu Fesity + Zope 2.9.6 (the apt-get version)
What is supposed I could find about it in my ZMI?
"ZopeProfiler" installs itself in "Control_Panel".
It is a singleton. No need and no sense to install it anywhere else. Therefore, it does not add itself to the "Add list".
-- Dieter
-- Mis Cosas http://blogs.sistes.net/Garito
Garito wrote at 2007-9-21 19:57 +0200:
I supposed that but any ZopeProfiler objects appears on my Control_Panel
Any suggestion?
As always: Look into the logfile to see whether there are any problems reported during startup. If no problems are reported, check that "ZopeProfiler" is properly installed on the file systems. It should live in the "Products" directory of your Zope instance. -- Dieter
I've seen that too in some Zope's. ZopeProfiler installed by nothing in the Control_Panel. What I had to do was to manually guess the URL by typing in http://localhost:8080/Control_Panel/ZopeProfiler/manage_main and it was there. On 9/23/07, Dieter Maurer <dieter@handshake.de> wrote:
Garito wrote at 2007-9-21 19:57 +0200:
I supposed that but any ZopeProfiler objects appears on my Control_Panel
Any suggestion?
As always: Look into the logfile to see whether there are any problems reported during startup.
If no problems are reported, check that "ZopeProfiler" is properly installed on the file systems. It should live in the "Products" directory of your Zope instance.
-- Dieter _______________________________________________ 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 )
-- Peter Bengtsson, work www.fry-it.com home www.peterbe.com hobby www.issuetrackerproduct.com
Hi again! There are no errors on event.log nor z2.log but the ZopeProfiler icon don't appears in Control Panel and if I try to acces to Control_Panel/ZopeProfiler/manage_main a Resoruce not found is raised by the server Any Idea? Need more data? Sorry and thanks! 2007/9/23, Peter Bengtsson <peter@fry-it.com>:
I've seen that too in some Zope's. ZopeProfiler installed by nothing in the Control_Panel. What I had to do was to manually guess the URL by typing in http://localhost:8080/Control_Panel/ZopeProfiler/manage_main and it was there.
On 9/23/07, Dieter Maurer <dieter@handshake.de> wrote:
Garito wrote at 2007-9-21 19:57 +0200:
I supposed that but any ZopeProfiler objects appears on my Control_Panel
Any suggestion?
As always: Look into the logfile to see whether there are any problems reported during startup.
If no problems are reported, check that "ZopeProfiler" is properly installed on the file systems. It should live in the "Products" directory of your Zope instance.
-- Dieter _______________________________________________ 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 )
-- Peter Bengtsson, work www.fry-it.com home www.peterbe.com hobby www.issuetrackerproduct.com
-- Mis Cosas http://blogs.sistes.net/Garito
Sorry! This appear in the event.log: 2007-09-23T18:13:33 ERROR Zope Couldn't install ZopeProfiler Traceback (most recent call last): File "/usr/lib/zope2.9/lib/python/OFS/Application.py", line 755, in install_product global_dict, global_dict, silly) File "/var/lib/zope2.9/instance/Yanged/Products/ZopeProfiler/__init__.py", line 2, in ? from ZopeProfiler import _hookZServerPublisher, _initializeModule, \ File "/var/lib/zope2.9/instance/Yanged/Products/ZopeProfiler/ZopeProfiler.py", line 66, in ? from DMprofile import Stats File "/var/lib/zope2.9/instance/Yanged/Products/ZopeProfiler/DMprofile/__init__.py", line 9, in ? from DMstats import Stats File "/var/lib/zope2.9/instance/Yanged/Products/ZopeProfiler/DMprofile/DMstats.py", line 13, in ? from pstats import Stats as pStats ImportError: No module named pstats How can I install pstats? 2007/9/23, Garito <garito@sistes.net>:
Hi again! There are no errors on event.log nor z2.log but the ZopeProfiler icon don't appears in Control Panel and if I try to acces to Control_Panel/ZopeProfiler/manage_main a Resoruce not found is raised by the server
Any Idea? Need more data?
Sorry and thanks!
2007/9/23, Peter Bengtsson <peter@fry-it.com>:
I've seen that too in some Zope's. ZopeProfiler installed by nothing in the Control_Panel. What I had to do was to manually guess the URL by typing in http://localhost:8080/Control_Panel/ZopeProfiler/manage_main and it was there.
On 9/23/07, Dieter Maurer <dieter@handshake.de> wrote:
Garito wrote at 2007-9-21 19:57 +0200:
I supposed that but any ZopeProfiler objects appears on my Control_Panel
Any suggestion?
As always: Look into the logfile to see whether there are any problems reported during startup.
If no problems are reported, check that "ZopeProfiler" is properly installed on the file systems. It should live in the "Products" directory of your Zope instance.
-- Dieter _______________________________________________ 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 )
-- Peter Bengtsson, work www.fry-it.com home www.peterbe.com hobby www.issuetrackerproduct.com
-- Mis Cosas http://blogs.sistes.net/Garito
-- Mis Cosas http://blogs.sistes.net/Garito
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Garito wrote:
Sorry! This appear in the event.log:
2007-09-23T18:13:33 ERROR Zope Couldn't install ZopeProfiler Traceback (most recent call last): File "/usr/lib/zope2.9/lib/python/OFS/Application.py", line 755, in install_product global_dict, global_dict, silly) File "/var/lib/zope2.9/instance/Yanged/Products/ZopeProfiler/__init__.py", line 2, in ? from ZopeProfiler import _hookZServerPublisher, _initializeModule, \ File "/var/lib/zope2.9/instance/Yanged/Products/ZopeProfiler/ZopeProfiler.py", line 66, in ? from DMprofile import Stats File "/var/lib/zope2.9/instance/Yanged/Products/ZopeProfiler/DMprofile/__init__.py", line 9, in ? from DMstats import Stats File "/var/lib/zope2.9/instance/Yanged/Products/ZopeProfiler/DMprofile/DMstats.py", line 13, in ? from pstats import Stats as pStats ImportError: No module named pstats
How can I install pstats?
Seems like you are running with a distro-packaged version of Python, which strips out the development packages / tools. Either build your own Python for running Zope from source (you will avoid future pain when your sysadmin upgrades Python without telling you), or get the sysadmin to add the 'python-dev' or 'python-devel' package. Tres. - -- =================================================================== Tres Seaver +1 540-429-0999 tseaver@palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG9+GE+gerLs4ltQ4RAvCfAKDXrHMP5K2usQl/Z6SNj556tEenUwCg0V12 yKJ0/P57A6xjneTbWDCpRPA= =vjMW -----END PGP SIGNATURE-----
Garito wrote at 2007-9-23 18:17 +0200:
... 2007-09-23T18:13:33 ERROR Zope Couldn't install ZopeProfiler Traceback (most recent call last): ... line 9, in ? from DMstats import Stats File "/var/lib/zope2.9/instance/Yanged/Products/ZopeProfiler/DMprofile/DMstats.py", line 13, in ? from pstats import Stats as pStats ImportError: No module named pstats
How can I install pstats?
"pstats" is a standard Python module and should come in Python's runtime library. If it is not there, then your Python installation is scrwed up.... -- Dieter
Yes, I installed Zope with an Ubuntu package But I try: sudo apt-get install python2.4-dev And the errors is still raised Any suggestion for a linux newbie? Thanks! 2007/9/24, Dieter Maurer <dieter@handshake.de>:
Garito wrote at 2007-9-23 18:17 +0200:
... 2007-09-23T18:13:33 ERROR Zope Couldn't install ZopeProfiler Traceback (most recent call last): ... line 9, in ? from DMstats import Stats File
"/var/lib/zope2.9/instance/Yanged/Products/ZopeProfiler/DMprofile/DMstats.py", line 13, in ? from pstats import Stats as pStats ImportError: No module named pstats
How can I install pstats?
"pstats" is a standard Python module and should come in Python's runtime library.
If it is not there, then your Python installation is scrwed up....
-- Dieter
-- Mis Cosas http://blogs.sistes.net/Garito
On 9/25/07, Garito <garito@sistes.net> wrote:
Yes, I installed Zope with an Ubuntu package
Google's your friend: https://bugs.launchpad.net/ubuntu/+source/python-defaults/+bug/123755 install python-profiler. -- Martijn Pieters
Martijn is your friend! :) Thanks for the correct clue! 2007/9/25, Martijn Pieters <mj@zopatista.com>:
On 9/25/07, Garito <garito@sistes.net> wrote:
Yes, I installed Zope with an Ubuntu package
Google's your friend:
https://bugs.launchpad.net/ubuntu/+source/python-defaults/+bug/123755
install python-profiler.
-- Martijn Pieters
-- Mis Cosas http://blogs.sistes.net/Garito
Peter Bengtsson wrote at 2007-9-23 12:02 +0100:
I've seen that too in some Zope's. ZopeProfiler installed by nothing in the Control_Panel. What I had to do was to manually guess the URL by typing in http://localhost:8080/Control_Panel/ZopeProfiler/manage_main and it was there.
Hm. It is there, but you cannot see it in "Control_Panel/manage_main"? That sounds like a bug. In what version of Zope have you seen this? -- Dieter
participants (8)
-
Brian Sullivan -
Dieter Maurer -
Garito -
Josef Meile -
Martijn Pieters -
Paul Winkler -
Peter Bengtsson -
Tres Seaver