[Zope] Medusa Monitor
Hi, Zope comes with the Medusa monitor (port 8099 by default) which is kind of cute and allows one to get into the guts of Zope. But do people really use it? How do people use it? Is there any document describing the usages of this monitor? Are there some features of this monitor that makes debugging easier? regards, Hung Jung _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. ___ Zope maillist - [EMAIL PROTECTED] 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] Medusa Monitor
Hi People, Anybody knows What is Medusa Monitor ? What it do ? How can I use it ? Thank you hugs ___ Zope maillist - [EMAIL PROTECTED] 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 )
Re: [Zope] Medusa Monitor
Use it for debugging sometimes. Is very easy to use. Basically import Zope z = Zope.app() then z is the root of your zope tree so you can do anything. You will need to import any other python modules you need too. terry Hung Jung Lu wrote: > Hi, > > Zope comes with the Medusa monitor (port 8099 by default) which is kind of > cute and allows one to get into the guts of Zope. But do people really use > it? How do people use it? Is there any document describing the usages of > this monitor? Are there some features of this monitor that makes debugging > easier? > > regards, > > Hung Jung > > _ > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. > > Share information about yourself, create your own public profile at > http://profiles.msn.com. > > ___ > Zope maillist - [EMAIL PROTECTED] > 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 ) -- Terry Kerr ([EMAIL PROTECTED]) Adroit Internet Solutions Pty Ltd (www.adroit.net) Phone: +613 9563 4461 Fax: +613 9563 3856 Mobile: +61 414 708 124 ICQ: 79303381 ___ Zope maillist - [EMAIL PROTECTED] 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 )
Re: [Zope] Medusa Monitor
terry, you forgot the step of actually connecting to the monitor :) there is a very short howto on using the correct client program to log into the monitor at: http://www.zope.org/Members/teyc/howtoMonitorClient and similar info at: http://www.zope.org/Documentation/Misc/DEBUGGING.txt jens on 10/10/00 18:48, Terry Kerr at [EMAIL PROTECTED] wrote: > Use it for debugging sometimes. > > Is very easy to use. Basically > > import Zope > z = Zope.app() > > then z is the root of your zope tree so you can do anything. You will need > to import any other python modules you need too. > > terry > > Hung Jung Lu wrote: > >> Hi, >> >> Zope comes with the Medusa monitor (port 8099 by default) which is kind of >> cute and allows one to get into the guts of Zope. But do people really use >> it? How do people use it? Is there any document describing the usages of >> this monitor? Are there some features of this monitor that makes debugging >> easier? >> >> regards, >> >> Hung Jung ___ Zope maillist - [EMAIL PROTECTED] 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 )
Re: [Zope] Medusa Monitor
Thanks for the follow-ups on Medusa Monitor. But as I can see (after using Zope for 1.5 years, now), few people actually use it. Unless one is really into the guts of Zope itself, the monitor is pretty useless for debugging. It of course could be made more useful, but one must implement some Python programs first. Even for dynamic reloading of modules, I usually just write External methods to do the job, instead of firing up the monitor. A more useful debuging tool would be some monitor where you can receive print message logs in real time. That would be great, especially if you have multiple thread problems. regards, Hung Jung _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. ___ Zope maillist - [EMAIL PROTECTED] 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 )
Re: [Zope] Medusa Monitor
Jens Vagelpohl <[EMAIL PROTECTED]> writes: > terry, > > you forgot the step of actually connecting to the monitor :) there is a very > short howto on using the correct client program to log into the monitor at: > > http://www.zope.org/Members/teyc/howtoMonitorClient > > and similar info at: > > http://www.zope.org/Documentation/Misc/DEBUGGING.txt I don't use the monitor anymore, I just mount the database from a Python prompt: lefty /usr/local/zope/2.2.0/lib/python= python Python 1.5.2 (#1, Sep 17 1999, 20:15:36) [GCC egcs-2.91.66 19990314/Linux (egcs- on linux-i386 Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam >>> import ZServer, Zope >>> app = Zope.app() >>> dir(app) ['Control_Panel', 'QuickStart', '__allow_groups__', '_objects', '_product_ac_permissions', '_product_meta_types', '_product_permissions', '_product_zclasses', 'acl_users', 'apps', 'bookmarks', 'breadcrumbs', 'index_html', 'standard_error_message', 'standard_html_footer', 'standard_html_header', 'tmp'] >>> I'm not sure what the usefulness of the monitor is these days. I always run ZEO, so I don't have to stop publishing to connect to the database from the prompt. Does the monitor give you something that interactive python doesn't? I do know that python in a shell is more robust than the monitor was - the monitor used to crash when dumping lots of info, like printing a large dictionary. -- Karl Anderson [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] 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 )
Re: [Zope] Medusa Monitor
Hung Jung Lu writes: > A more useful debuging tool would be some monitor where you can receive > print message logs in real time. That would be great, especially if you have > multiple thread problems. You know Zope's logging support? It provides a kind of "print message logs", you receive in real time (in your log file). Dieter ___ Zope maillist - [EMAIL PROTECTED] 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 )
Re: [Zope] Medusa Monitor
I know that, the stupid log file thingy. But you'll have to write an independent thread to display the log file (or peek the file manually each time), or implement some CString stuff to capture the file output (if that is possible). It'll be more fun if all this is already done, and the user can just tap into the monitor console screen (even remotely). A good monitor should actually display hit information, memory usage, etc, and preferably with charts, all in real time. Too much to ask? I don't think so. :) Hung Jung >From: Dieter Maurer <[EMAIL PROTECTED]> >To: "Hung Jung Lu" <[EMAIL PROTECTED]> >CC: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] >Subject: Re: [Zope] Medusa Monitor >Date: Thu, 12 Oct 2000 23:47:35 +0200 (CEST) > >Hung Jung Lu writes: > > A more useful debuging tool would be some monitor where you can receive > > print message logs in real time. That would be great, especially if you >have > > multiple thread problems. >You know Zope's logging support? > >It provides a kind of "print message logs", you receive in real time >(in your log file). > > > >Dieter _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. ___ Zope maillist - [EMAIL PROTECTED] 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 )
Re: [Zope] Medusa Monitor
Useless for debugging? I find it very useful and sometimes necessarybut I right all my products in python so maybe it is different for ZClass people. terry Hung Jung Lu wrote: > Thanks for the follow-ups on Medusa Monitor. > > But as I can see (after using Zope for 1.5 years, now), few people actually > use it. Unless one is really into the guts of Zope itself, the monitor is > pretty useless for debugging. It of course could be made more useful, but > one must implement some Python programs first. Even for dynamic reloading of > modules, I usually just write External methods to do the job, instead of > firing up the monitor. > > A more useful debuging tool would be some monitor where you can receive > print message logs in real time. That would be great, especially if you have > multiple thread problems. > > regards, > > Hung Jung > > _ > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. > > Share information about yourself, create your own public profile at > http://profiles.msn.com. -- Terry Kerr ([EMAIL PROTECTED]) Adroit Internet Solutions Pty Ltd (www.adroit.net) Phone: +613 9563 4461 Fax: +613 9563 3856 Mobile: +61 414 708 124 ICQ: 79303381 ___ Zope maillist - [EMAIL PROTECTED] 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 )
Re: [Zope] Medusa Monitor
I don't think the monitor gives you any advantage? I have never used a ptyhon prompt before...I will have to give it a go. terry Karl Anderson wrote: > Jens Vagelpohl <[EMAIL PROTECTED]> writes: > > > terry, > > > > you forgot the step of actually connecting to the monitor :) there is a very > > short howto on using the correct client program to log into the monitor at: > > > > http://www.zope.org/Members/teyc/howtoMonitorClient > > > > and similar info at: > > > > http://www.zope.org/Documentation/Misc/DEBUGGING.txt > > I don't use the monitor anymore, I just mount the database from a > Python prompt: > > lefty /usr/local/zope/2.2.0/lib/python= python > Python 1.5.2 (#1, Sep 17 1999, 20:15:36) [GCC egcs-2.91.66 19990314/Linux (egcs- on >linux-i386 > Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam > >>> import ZServer, Zope > >>> app = Zope.app() > >>> dir(app) > ['Control_Panel', 'QuickStart', '__allow_groups__', '_objects', >'_product_ac_permissions', '_product_meta_types', '_product_permissions', >'_product_zclasses', 'acl_users', 'apps', 'bookmarks', 'breadcrumbs', 'index_html', >'standard_error_message', 'standard_html_footer', 'standard_html_header', 'tmp'] > >>> > > I'm not sure what the usefulness of the monitor is these days. I > always run ZEO, so I don't have to stop publishing to connect to the > database from the prompt. > > Does the monitor give you something that interactive python doesn't? > I do know that python in a shell is more robust than the monitor was - > the monitor used to crash when dumping lots of info, like printing a > large dictionary. > > -- > Karl Anderson [EMAIL PROTECTED] > > ___ > Zope maillist - [EMAIL PROTECTED] > 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 ) -- Terry Kerr ([EMAIL PROTECTED]) Adroit Internet Solutions Pty Ltd (www.adroit.net) Phone: +613 9563 4461 Fax: +613 9563 3856 Mobile: +61 414 708 124 ICQ: 79303381 ___ Zope maillist - [EMAIL PROTECTED] 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 )
Re: [Zope] Medusa Monitor
Hung Jung Lu writes: > I know that, the stupid log file thingy. But you'll have to write an > independent thread to display the log file (or peek the file manually each > time), or implement some CString stuff to capture the file output (if that > is possible). As I understand it, the logging module can be customized to stuck its log into a variable in Zope itself, viewable through the web. You may search the list archive to find the corresponding post. Maybe, you find it, too, via zope.org. > It'll be more fun if all this is already done, and the user can just tap > into the monitor console screen (even remotely). > > A good monitor should actually display hit information, memory usage, etc, > and preferably with charts, all in real time. Too much to ask? I don't think > so. :) Of cause, you can ask for it. However, someone must implement it. Dieter ___ Zope maillist - [EMAIL PROTECTED] 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 )
Re: [Zope] Medusa Monitor
Terry Kerr <[EMAIL PROTECTED]> writes: > I don't think the monitor gives you any advantage? I have never used a ptyhon >prompt before...I will have to give it a go. > > terry Actually, the advantage of the monitor is that it runs in the same process as your server, so you can track resource issues. Mounting the database separately avoids this. -- Karl Anderson [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] 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 )
Re: [Zope] Medusa Monitor
At 1:18 pm -0700 16/10/00, Karl Anderson wrote: >Terry Kerr <[EMAIL PROTECTED]> writes: > >> I don't think the monitor gives you any advantage? I have never >>used a ptyhon prompt before...I will have to give it a go. >> >> terry > >Actually, the advantage of the monitor is that it runs in the same >process as your server, so you can track resource issues. Mounting >the database separately avoids this. > >-- >Karl Anderson [EMAIL PROTECTED] Karl, Is there anywhere documented that describes how to track resource issues? I regularly have Zope processes that hit 150 Megs of RAM and would like to know if I'm doing anything dopey. cheers tone. -- Dr Tony McDonald, FMCC, Networked Learning Environments Project http://nle.ncl.ac.uk/ The Medical School, Newcastle University Tel: +44 191 222 5116 A Zope list for UK HE/FE http://www.fmcc.org.uk/mailman/listinfo/zope ___ Zope maillist - [EMAIL PROTECTED] 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 )
Re: [Zope] Medusa Monitor
Anderson Ami writes: > Anybody knows What is Medusa Monitor ? What it do ? How can I use it ? The Medusa monitor allows you to connect to a running Zope Server and get a Python interpreter in this context. With it, you can (in principle) analyse your Zope system. However, this way of debugging is probably only for experts. There is a document at zope.org (I forgot its name) that says a bit about this "monitor": search for "monitor". Dieter ___ Zope maillist - [EMAIL PROTECTED] 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 )