RE: [Zope-dev] memory leak
have you checked the debug page in the control panel and noted any refcounts increasing? Class April 10, 2001 9:17 am April 11, 2001 8:34 am Products.ParsedXML.DOM.Core.Text 3241 27318 +24077 Products.ParsedXML.DOM.Core.Element 1777 14493 +12716 Products.ParsedXML.DOM.ExpatBuilder.ExpatBuilder 81 1506 +1425 Products.ParsedXML.Printer.PrintVisitor 3 107 +104 Products.ParsedXML.DOM.Core.Document 10 112 +102 Yes, I've a lot of refcounts leaks. any chance that this is the same problem that andy is running into (read his posts above)? I dunno because of my very lack of knowledge of Zope. All of these refcounts leaks means that the Product is doing something wrong or that I'm using in the wrong manner ? - mn -d On Tue, Apr 10, 2001 at 05:27:28PM +0200, Marco Nova wrote: Hello guys, It seems that I've some memory leak problems and I want to understand where I've to look for. Scenario: I've an IIS web server that generates an XML page (taking data from SqlServer); The Zope web server must retrieve the XML page, manage the data and render them in HTML (I cant only apply a XSL stylesheet to XML). The Facts: I've written a external method that - using httplib - reads the XML page and return a string that is the raw XML sources, than I've written another external method that use ExpatBuilder of Products.ParsedXML.DOM to parse the XML an generate a list of [(id - {mapping})] which will be accessed with a dtml-in tag, so in the sequence-key I've access to the ID and with sequence-item I can access to the mapping object. I'm using latest version of ZOPE (2.3.1, the binary one with Python 1.5.2) and ParsedXML. The Problem: It seems that every time the method retrieve the page or parse the XML I loose a bunch of kilobytes. Because the methods are very simple (100 lines of code in total) and because I didn't create any class for handling this workflow I can't understand where I can loose bytes. The Questions: Is the list generated for the dtml-in tag freed automatically by ZOPE ? Is there a Garbage Collector somewhere that must be activated ? Should I avoid the use of the ExpatBuilder for XML processing ? Thanks for listening my newbies questions. Best Regards, - mn ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) -- Dyon Balding [EMAIL PROTECTED] ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] memory leak
Hi Marco, This looks like a potential bug in either ParsedXML or the code you're using to manipulate the components within ParsedXML. We'd like to find out! ;-) Do you think you can file a collector report with enough information in it to reproduce this behavior? Many thanks, - C - Original Message - From: "Marco Nova" [EMAIL PROTECTED] To: "Zope-Dev (E-mail)" [EMAIL PROTECTED] Sent: Wednesday, April 11, 2001 2:29 AM Subject: RE: [Zope-dev] memory leak have you checked the debug page in the control panel and noted any refcounts increasing? Class April 10, 2001 9:17 am April 11, 2001 8:34 am Products.ParsedXML.DOM.Core.Text 3241 27318 +24077 Products.ParsedXML.DOM.Core.Element 1777 14493 +12716 Products.ParsedXML.DOM.ExpatBuilder.ExpatBuilder 81 1506 +1425 Products.ParsedXML.Printer.PrintVisitor 3 107 +104 Products.ParsedXML.DOM.Core.Document 10 112 +102 Yes, I've a lot of refcounts leaks. any chance that this is the same problem that andy is running into (read his posts above)? I dunno because of my very lack of knowledge of Zope. All of these refcounts leaks means that the Product is doing something wrong or that I'm using in the wrong manner ? - mn -d On Tue, Apr 10, 2001 at 05:27:28PM +0200, Marco Nova wrote: Hello guys, It seems that I've some memory leak problems and I want to understand where I've to look for. Scenario: I've an IIS web server that generates an XML page (taking data from SqlServer); The Zope web server must retrieve the XML page, manage the data and render them in HTML (I cant only apply a XSL stylesheet to XML). The Facts: I've written a external method that - using httplib - reads the XML page and return a string that is the raw XML sources, than I've written another external method that use ExpatBuilder of Products.ParsedXML.DOM to parse the XML an generate a list of [(id - {mapping})] which will be accessed with a dtml-in tag, so in the sequence-key I've access to the ID and with sequence-item I can access to the mapping object. I'm using latest version of ZOPE (2.3.1, the binary one with Python 1.5.2) and ParsedXML. The Problem: It seems that every time the method retrieve the page or parse the XML I loose a bunch of kilobytes. Because the methods are very simple (100 lines of code in total) and because I didn't create any class for handling this workflow I can't understand where I can loose bytes. The Questions: Is the list generated for the dtml-in tag freed automatically by ZOPE ? Is there a Garbage Collector somewhere that must be activated ? Should I avoid the use of the ExpatBuilder for XML processing ? Thanks for listening my newbies questions. Best Regards, - mn ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) -- Dyon Balding [EMAIL PROTECTED] ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] How do I call an HTMLFile in context provided by a path?
Hi, I have a method that receives a path: '/MyApp/SomeSpecialist/some_id/edit_html' and has to call edit_html in the context of some_id. If edit_html is a DTML Method, I can do this: obj = REQUEST.traverse(path) return obj(obj.aq_parent, REQUEST) But when edit_html is an HTMLFile in a Python Product, obj.aq_parent doesn't work. And trying to get some_id using REQUEST.traverse('/MyApp/SomeSpecialist/some_id') returns the index_html method of some_id, instead of the object itself. Any ideas how I can fix this? TIA, Itai -- -- Itai Tavor -- "Je sautille, donc je suis."-- [EMAIL PROTECTED]-- - Kermit the Frog -- -- "What he needs now is understanding... and a confederate victory" -- -- Dr. Jacobi, Twin Peaks -- ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
RE: [Zope-dev] memory leak
-Original Message- From: Chris McDonough [mailto:[EMAIL PROTECTED]] Sent: mercoled 11 aprile 2001 9.04 To: Marco Nova; Zope-Dev (E-mail) Subject: Re: [Zope-dev] memory leak This looks like a potential bug in either ParsedXML or the code you're using to manipulate the components within ParsedXML. We'd like to find out! ;-) Do you think you can file a collector report with enough information in it to reproduce this behavior? I can send you the code for the two external method I use, they only need a webserver (that could be zope too) that serve an XML page (I can provide the XML the methods needs) and the bunch of dtml methods I use to show the XML. Anyway I will try to understand what's happening with ParsedXML and my code. - mn - Original Message - From: "Marco Nova" [EMAIL PROTECTED] To: "Zope-Dev (E-mail)" [EMAIL PROTECTED] Sent: Wednesday, April 11, 2001 2:29 AM Subject: RE: [Zope-dev] memory leak have you checked the debug page in the control panel and noted any refcounts increasing? Class April 10, 2001 9:17 am April 11, 2001 8:34 am Products.ParsedXML.DOM.Core.Text 3241 27318 +24077 Products.ParsedXML.DOM.Core.Element 1777 14493 +12716 Products.ParsedXML.DOM.ExpatBuilder.ExpatBuilder 81 1506 +1425 Products.ParsedXML.Printer.PrintVisitor 3 107 +104 Products.ParsedXML.DOM.Core.Document 10 112 +102 Yes, I've a lot of refcounts leaks. any chance that this is the same problem that andy is running into (read his posts above)? I dunno because of my very lack of knowledge of Zope. All of these refcounts leaks means that the Product is doing something wrong or that I'm using in the wrong manner ? - mn -d On Tue, Apr 10, 2001 at 05:27:28PM +0200, Marco Nova wrote: Hello guys, It seems that I've some memory leak problems and I want to understand where I've to look for. Scenario: I've an IIS web server that generates an XML page (taking data from SqlServer); The Zope web server must retrieve the XML page, manage the data and render them in HTML (I cant only apply a XSL stylesheet to XML). The Facts: I've written a external method that - using httplib - reads the XML page and return a string that is the raw XML sources, than I've written another external method that use ExpatBuilder of Products.ParsedXML.DOM to parse the XML an generate a list of [(id - {mapping})] which will be accessed with a dtml-in tag, so in the sequence-key I've access to the ID and with sequence-item I can access to the mapping object. I'm using latest version of ZOPE (2.3.1, the binary one with Python 1.5.2) and ParsedXML. The Problem: It seems that every time the method retrieve the page or parse the XML I loose a bunch of kilobytes. Because the methods are very simple (100 lines of code in total) and because I didn't create any class for handling this workflow I can't understand where I can loose bytes. The Questions: Is the list generated for the dtml-in tag freed automatically by ZOPE ? Is there a Garbage Collector somewhere that must be activated ? Should I avoid the use of the ExpatBuilder for XML processing ? Thanks for listening my newbies questions. Best Regards, - mn ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) -- Dyon Balding [EMAIL PROTECTED] ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Tracking memory leak
Andy, Jim just brought something up... do you have database result caching turned on? If so, what is your number of max results to cache and max time? - Original Message - From: "Andy McKay" [EMAIL PROTECTED] To: "Dyon Balding" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, April 10, 2001 7:55 PM Subject: Re: [Zope-dev] Tracking memory leak Im not convinced its just SQLAlias though, I commented out the SQLAlias creations and I was still getting the other object refcounts shooting up... Cheers. -- Andy McKay. - Original Message - From: "Dyon Balding" [EMAIL PROTECTED] To: "Andy McKay" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, April 10, 2001 4:46 PM Subject: Re: [Zope-dev] Tracking memory leak i was one of the people that ran into big problems with that previous bug. if that is the one you are coming across, then the problem occurs when you try to access the data in a column using a dtml-var with a different case to what it is stored in your database. eg. if you have a column called ID in your database, and do a dtml-var id, then prior to the bug fix, you would see refcount increases for SQLAlias (and possibly some other types as well - can't remember too clearly). hope that helps you track it down -d On Tue, Apr 10, 2001 at 10:25:09AM -0700, Andy McKay wrote: I have the impression its not SQLAlias thats the problem since im also getting Record.Record, Acquistion.ImplicitAcquirerWrapper and Extension class floating around. I just commented out the lines that create SQLAlias instances and that was fine but... Sorry you're getting bugged here since you answered my first post. -- Andy McKay. - Original Message - From: "Chris McDonough" [EMAIL PROTECTED] To: "Andy McKay" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, April 10, 2001 9:59 AM Subject: Re: [Zope-dev] Tracking memory leak I believe it handles the translation of the sql fields from upper to lower and vice versa. More than that, I'm uncertain. - Original Message - From: "Andy McKay" [EMAIL PROTECTED] To: "Andy McKay" [EMAIL PROTECTED]; "Chris McDonough" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, April 10, 2001 1:01 PM Subject: Re: [Zope-dev] Tracking memory leak Any chance you could clarify what SQLAlias does, ive definitely got the case where some sql queries (and the way they are handled / used) causes an increase in the SQLAlias count and some dont. Id like to find the quick work around so I can get around to testing ZmxODBC Cheers. -- Andy McKay. - Original Message - From: "Andy McKay" [EMAIL PROTECTED] To: "Chris McDonough" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, April 10, 2001 8:55 AM Subject: Re: [Zope-dev] Tracking memory leak As far as I can tell those changes are still in. Do I understand them? Not really. -- Andy McKay. - Original Message - From: "Chris McDonough" [EMAIL PROTECTED] To: "Andy McKay" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, April 10, 2001 8:37 AM Subject: Re: [Zope-dev] Tracking memory leak That's it. - Original Message - From: "Andy McKay" [EMAIL PROTECTED] To: "Chris McDonough" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, April 10, 2001 11:36 AM Subject: Re: [Zope-dev] Tracking memory leak This one? - SQLAlias objects were leaking when a database column was accessed via an aliased name. This was tracked down to a subtle bug in ExtensionClass. Cheers. -- Andy McKay. - Original Message - From: "Chris McDonough" [EMAIL PROTECTED] To: "Andy McKay" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, April 10, 2001 8:29 AM Subject: Re: [Zope-dev] Tracking memory leak This sounds like a bug that was fixed in 2.3.0 or earlier... I hope it didn't make its way back in! - Original Message - From: "Andy McKay" [EMAIL PROTECTED] To: "Chris McDonough" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, April 10, 2001 11:18 AM Subject: Re: [Zope-dev] Tracking memory leak Wow came in this morning to find my Zope has : 62642 instances of Shared.DC.ZRDB.RDB.SQLAlias and 32444 instances of Acquisition.ImplicitAcquirerWrapper According to the debug info I think I have a place to start. --
Re: [Zope-dev] memory leak
The bugreport won't do us as much good if we need to set up an elaborate testing environment... it'd be preferable if you could break it down enough to make it happen in a single external method or pythonscript that doesn't rely on external webservers or databases, or what-have-you... but we'll take whatever you've got! - C - Original Message - From: "Marco Nova" [EMAIL PROTECTED] To: "'Chris McDonough'" [EMAIL PROTECTED] Cc: "Zope-Dev (E-mail)" [EMAIL PROTECTED] Sent: Wednesday, April 11, 2001 6:34 AM Subject: RE: [Zope-dev] memory leak -Original Message- From: Chris McDonough [mailto:[EMAIL PROTECTED]] Sent: mercoled 11 aprile 2001 9.04 To: Marco Nova; Zope-Dev (E-mail) Subject: Re: [Zope-dev] memory leak This looks like a potential bug in either ParsedXML or the code you're using to manipulate the components within ParsedXML. We'd like to find out! ;-) Do you think you can file a collector report with enough information in it to reproduce this behavior? I can send you the code for the two external method I use, they only need a webserver (that could be zope too) that serve an XML page (I can provide the XML the methods needs) and the bunch of dtml methods I use to show the XML. Anyway I will try to understand what's happening with ParsedXML and my code. - mn - Original Message - From: "Marco Nova" [EMAIL PROTECTED] To: "Zope-Dev (E-mail)" [EMAIL PROTECTED] Sent: Wednesday, April 11, 2001 2:29 AM Subject: RE: [Zope-dev] memory leak have you checked the debug page in the control panel and noted any refcounts increasing? Class April 10, 2001 9:17 am April 11, 2001 8:34 am Products.ParsedXML.DOM.Core.Text 3241 27318 +24077 Products.ParsedXML.DOM.Core.Element 1777 14493 +12716 Products.ParsedXML.DOM.ExpatBuilder.ExpatBuilder 81 1506 +1425 Products.ParsedXML.Printer.PrintVisitor 3 107 +104 Products.ParsedXML.DOM.Core.Document 10 112 +102 Yes, I've a lot of refcounts leaks. any chance that this is the same problem that andy is running into (read his posts above)? I dunno because of my very lack of knowledge of Zope. All of these refcounts leaks means that the Product is doing something wrong or that I'm using in the wrong manner ? - mn -d On Tue, Apr 10, 2001 at 05:27:28PM +0200, Marco Nova wrote: Hello guys, It seems that I've some memory leak problems and I want to understand where I've to look for. Scenario: I've an IIS web server that generates an XML page (taking data from SqlServer); The Zope web server must retrieve the XML page, manage the data and render them in HTML (I cant only apply a XSL stylesheet to XML). The Facts: I've written a external method that - using httplib - reads the XML page and return a string that is the raw XML sources, than I've written another external method that use ExpatBuilder of Products.ParsedXML.DOM to parse the XML an generate a list of [(id - {mapping})] which will be accessed with a dtml-in tag, so in the sequence-key I've access to the ID and with sequence-item I can access to the mapping object. I'm using latest version of ZOPE (2.3.1, the binary one with Python 1.5.2) and ParsedXML. The Problem: It seems that every time the method retrieve the page or parse the XML I loose a bunch of kilobytes. Because the methods are very simple (100 lines of code in total) and because I didn't create any class for handling this workflow I can't understand where I can loose bytes. The Questions: Is the list generated for the dtml-in tag freed automatically by ZOPE ? Is there a Garbage Collector somewhere that must be activated ? Should I avoid the use of the ExpatBuilder for XML processing ? Thanks for listening my newbies questions. Best Regards, - mn ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) -- Dyon Balding [EMAIL PROTECTED] ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce
Re: [Zope-dev] Tracking memory leak
If you're talking about ZSQLMethod options then its at the default which is Maximum results to cache 100 Maximum time (sec) to cache 0 Does that mean the first 100 results are being cached for ever? That might do it... Cheers. -- Andy McKay. - Original Message - From: "Chris McDonough" [EMAIL PROTECTED] To: "Andy McKay" [EMAIL PROTECTED]; "Dyon Balding" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, April 11, 2001 8:51 AM Subject: Re: [Zope-dev] Tracking memory leak Andy, Jim just brought something up... do you have database result caching turned on? If so, what is your number of max results to cache and max time? - Original Message - From: "Andy McKay" [EMAIL PROTECTED] To: "Dyon Balding" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, April 10, 2001 7:55 PM Subject: Re: [Zope-dev] Tracking memory leak Im not convinced its just SQLAlias though, I commented out the SQLAlias creations and I was still getting the other object refcounts shooting up... Cheers. -- Andy McKay. - Original Message - From: "Dyon Balding" [EMAIL PROTECTED] To: "Andy McKay" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, April 10, 2001 4:46 PM Subject: Re: [Zope-dev] Tracking memory leak i was one of the people that ran into big problems with that previous bug. if that is the one you are coming across, then the problem occurs when you try to access the data in a column using a dtml-var with a different case to what it is stored in your database. eg. if you have a column called ID in your database, and do a dtml-var id, then prior to the bug fix, you would see refcount increases for SQLAlias (and possibly some other types as well - can't remember too clearly). hope that helps you track it down -d On Tue, Apr 10, 2001 at 10:25:09AM -0700, Andy McKay wrote: I have the impression its not SQLAlias thats the problem since im also getting Record.Record, Acquistion.ImplicitAcquirerWrapper and Extension class floating around. I just commented out the lines that create SQLAlias instances and that was fine but... Sorry you're getting bugged here since you answered my first post. -- Andy McKay. - Original Message - From: "Chris McDonough" [EMAIL PROTECTED] To: "Andy McKay" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, April 10, 2001 9:59 AM Subject: Re: [Zope-dev] Tracking memory leak I believe it handles the translation of the sql fields from upper to lower and vice versa. More than that, I'm uncertain. - Original Message - From: "Andy McKay" [EMAIL PROTECTED] To: "Andy McKay" [EMAIL PROTECTED]; "Chris McDonough" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, April 10, 2001 1:01 PM Subject: Re: [Zope-dev] Tracking memory leak Any chance you could clarify what SQLAlias does, ive definitely got the case where some sql queries (and the way they are handled / used) causes an increase in the SQLAlias count and some dont. Id like to find the quick work around so I can get around to testing ZmxODBC Cheers. -- Andy McKay. - Original Message - From: "Andy McKay" [EMAIL PROTECTED] To: "Chris McDonough" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, April 10, 2001 8:55 AM Subject: Re: [Zope-dev] Tracking memory leak As far as I can tell those changes are still in. Do I understand them? Not really. -- Andy McKay. - Original Message - From: "Chris McDonough" [EMAIL PROTECTED] To: "Andy McKay" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, April 10, 2001 8:37 AM Subject: Re: [Zope-dev] Tracking memory leak That's it. - Original Message - From: "Andy McKay" [EMAIL PROTECTED] To: "Chris McDonough" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, April 10, 2001 11:36 AM Subject: Re: [Zope-dev] Tracking memory leak This one? - SQLAlias objects were leaking when a database column was accessed via an aliased name. This was tracked down to a subtle bug in ExtensionClass. Cheers. -- Andy McKay. - Original Message - From: "Chris McDonough" [EMAIL PROTECTED] To: "Andy McKay" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, April 10, 2001 8:29 AM Subject: Re: [Zope-dev] Tracking memory leak This sounds like a bug that was fixed in 2.3.0 or earlier... I
Re: [Zope-dev] [ANNOUNCE] Zope Developer's Guide Preview
Amos Latteier wrote: I'm proud to announce the first preview release of the Zope Developer's Guide. http://www.zope.org/Documentation/ZDG woot! woot? -- Andy McKay. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Tracking memory leak
No, I think this means that caching is turned off entirely. Back to the drawing board. - C - Original Message - From: "Andy McKay" [EMAIL PROTECTED] To: "Chris McDonough" [EMAIL PROTECTED]; "Dyon Balding" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, April 11, 2001 12:35 PM Subject: Re: [Zope-dev] Tracking memory leak If you're talking about ZSQLMethod options then its at the default which is Maximum results to cache 100 Maximum time (sec) to cache 0 Does that mean the first 100 results are being cached for ever? That might do it... Cheers. -- Andy McKay. - Original Message - From: "Chris McDonough" [EMAIL PROTECTED] To: "Andy McKay" [EMAIL PROTECTED]; "Dyon Balding" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, April 11, 2001 8:51 AM Subject: Re: [Zope-dev] Tracking memory leak Andy, Jim just brought something up... do you have database result caching turned on? If so, what is your number of max results to cache and max time? - Original Message - From: "Andy McKay" [EMAIL PROTECTED] To: "Dyon Balding" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, April 10, 2001 7:55 PM Subject: Re: [Zope-dev] Tracking memory leak Im not convinced its just SQLAlias though, I commented out the SQLAlias creations and I was still getting the other object refcounts shooting up... Cheers. -- Andy McKay. - Original Message - From: "Dyon Balding" [EMAIL PROTECTED] To: "Andy McKay" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, April 10, 2001 4:46 PM Subject: Re: [Zope-dev] Tracking memory leak i was one of the people that ran into big problems with that previous bug. if that is the one you are coming across, then the problem occurs when you try to access the data in a column using a dtml-var with a different case to what it is stored in your database. eg. if you have a column called ID in your database, and do a dtml-var id, then prior to the bug fix, you would see refcount increases for SQLAlias (and possibly some other types as well - can't remember too clearly). hope that helps you track it down -d On Tue, Apr 10, 2001 at 10:25:09AM -0700, Andy McKay wrote: I have the impression its not SQLAlias thats the problem since im also getting Record.Record, Acquistion.ImplicitAcquirerWrapper and Extension class floating around. I just commented out the lines that create SQLAlias instances and that was fine but... Sorry you're getting bugged here since you answered my first post. -- Andy McKay. - Original Message - From: "Chris McDonough" [EMAIL PROTECTED] To: "Andy McKay" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, April 10, 2001 9:59 AM Subject: Re: [Zope-dev] Tracking memory leak I believe it handles the translation of the sql fields from upper to lower and vice versa. More than that, I'm uncertain. - Original Message - From: "Andy McKay" [EMAIL PROTECTED] To: "Andy McKay" [EMAIL PROTECTED]; "Chris McDonough" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, April 10, 2001 1:01 PM Subject: Re: [Zope-dev] Tracking memory leak Any chance you could clarify what SQLAlias does, ive definitely got the case where some sql queries (and the way they are handled / used) causes an increase in the SQLAlias count and some dont. Id like to find the quick work around so I can get around to testing ZmxODBC Cheers. -- Andy McKay. - Original Message - From: "Andy McKay" [EMAIL PROTECTED] To: "Chris McDonough" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, April 10, 2001 8:55 AM Subject: Re: [Zope-dev] Tracking memory leak As far as I can tell those changes are still in. Do I understand them? Not really. -- Andy McKay. - Original Message - From: "Chris McDonough" [EMAIL PROTECTED] To: "Andy McKay" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, April 10, 2001 8:37 AM Subject: Re: [Zope-dev] Tracking memory leak That's it. - Original Message - From: "Andy McKay" [EMAIL PROTECTED] To: "Chris McDonough" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, April 10, 2001 11:36 AM Subject: Re: [Zope-dev] Tracking memory leak This one? - SQLAlias objects were leaking when a database column was accessed via an aliased name. This was
RE: [Zope-dev] ZODBCA questions...
You may be interested in recent developments: http://www.zope.org/Wikis/DevSite/Proposals/DatabaseStategy/HistoricalRevisi ons/827.44494.7026.26188 I dont know why the DC folks havent stayed on top of ODBC. They should. Plenty of Zope/SQL Server users. -Original Message- From: Mark Pratt [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 10, 2001 11:46 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [Zope-dev] ZODBCA questions... Hi Andy, I would venture a guess that your ZODBC problems have to do with the DA being Level 1. visit the somewhat dated URL: http://www.zope.org/Members/petrilli/DARoadmap for details on what Level 1 through 3 represent. For an upcoming project we will need to work with MS SQL server as well so I've been discussing with Paul a bit about what it would take to fund a L3 DA. You might want to send him an email. Regards, Mark -- mark pratt (managing director) [EMAIL PROTECTED] beehive elektronische medien GmbH http://www.beehive.de phone: +49 30 847-82 0 fax: +49 30 847-82 299 ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] ZODBCA questions...
You may be interested in recent developments: http://www.zope.org/Wikis/DevSite/Proposals/DatabaseStategy/HistoricalRevisi ons/827.44494.7026.26188 I dont know why the DC folks havent stayed on top of ODBC. They should. Plenty of Zope/SQL Server users. This is true. But it's likely the aame reason we dont have an ecommerce module or an XSLT processor or a catalog which allows for easy indexing of pdfs or our own object-relational mapping story, or, or, or, or. Patches accepted ;-), - C ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] PLEASE trim cited text!
I've been watching this for a few days now, holding back, but it's **awful**! *Please* take a few moments to extract relevant portions from cited text, definitely do *not* include the whole thing! (There is no excuse for multiple copies of the footer, usually not an excuse for a single copy.) For those of us that read via digest mode, at least in some interfaces, it makes increasingly hard to find messages. I'm taking the liberty to include one example just to demonstrate the ridiculous length this has gone. Ken Manheimer [EMAIL PROTECTED] From: "Andy McKay" [EMAIL PROTECTED] To: "Chris McDonough" [EMAIL PROTECTED], "Dyon Balding" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [Zope-dev] Tracking memory leak Date: Wed, 11 Apr 2001 09:35:16 -0700 If you're talking about ZSQLMethod options then its at the default which is Maximum results to cache 100 Maximum time (sec) to cache 0 Does that mean the first 100 results are being cached for ever? That might do it... Cheers. -- Andy McKay. - Original Message - From: "Chris McDonough" [EMAIL PROTECTED] To: "Andy McKay" [EMAIL PROTECTED]; "Dyon Balding" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, April 11, 2001 8:51 AM Subject: Re: [Zope-dev] Tracking memory leak Andy, Jim just brought something up... do you have database result caching turned on? If so, what is your number of max results to cache and max time? - Original Message - From: "Andy McKay" [EMAIL PROTECTED] To: "Dyon Balding" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, April 10, 2001 7:55 PM Subject: Re: [Zope-dev] Tracking memory leak Im not convinced its just SQLAlias though, I commented out the SQLAlias creations and I was still getting the other object refcounts shooting up... Cheers. -- Andy McKay. - Original Message - From: "Dyon Balding" [EMAIL PROTECTED] To: "Andy McKay" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, April 10, 2001 4:46 PM Subject: Re: [Zope-dev] Tracking memory leak i was one of the people that ran into big problems with that previous bug. if that is the one you are coming across, then the problem occurs when you try to access the data in a column using a dtml-var with a different case to what it is stored in your database. eg. if you have a column called ID in your database, and do a dtml-var id, then prior to the bug fix, you would see refcount increases for SQLAlias (and possibly some other types as well - can't remember too clearly). hope that helps you track it down -d On Tue, Apr 10, 2001 at 10:25:09AM -0700, Andy McKay wrote: I have the impression its not SQLAlias thats the problem since im also getting Record.Record, Acquistion.ImplicitAcquirerWrapper and Extension class floating around. I just commented out the lines that create SQLAlias instances and that was fine but... Sorry you're getting bugged here since you answered my first post. -- Andy McKay. - Original Message - From: "Chris McDonough" [EMAIL PROTECTED] To: "Andy McKay" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, April 10, 2001 9:59 AM Subject: Re: [Zope-dev] Tracking memory leak I believe it handles the translation of the sql fields from upper to lower and vice versa. More than that, I'm uncertain. - Original Message - From: "Andy McKay" [EMAIL PROTECTED] To: "Andy McKay" [EMAIL PROTECTED]; "Chris McDonough" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, April 10, 2001 1:01 PM Subject: Re: [Zope-dev] Tracking memory leak Any chance you could clarify what SQLAlias does, ive definitely got the case where some sql queries (and the way they are handled / used) causes an increase in the SQLAlias count and some dont. Id like to find the quick work around so I can get around to testing ZmxODBC Cheers. -- Andy McKay. - Original Message - From: "Andy McKay" [EMAIL PROTECTED] To: "Chris McDonough" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, April 10, 2001 8:55 AM Subject: Re: [Zope-dev] Tracking memory leak As far as I can tell those changes are still in. Do I understand them? Not really. -- Andy McKay. - Original Message - From: "Chris McDonough" [EMAIL PROTECTED] To: "Andy McKay" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, April 10, 2001 8:37 AM Subject: Re: [Zope-dev] Tracking memory leak That's it. -
RE: [Zope-dev] ActiveState / DC Collaboration
Will there be an effort to make Zope 2.3.x play with ActivePython 2.0 or is this a longer range goal ... Zope 3.x ??? I know there are alot of other irons in the fire but I am just trying to make some design decisions. The next Zope feature release (2.4.0) will be based on and require Python 2.1. So AFAIK, you should be able to take advantage of ActivePython2.1 with Zope 2.4. Brian Lloyd[EMAIL PROTECTED] Software Engineer 540.371.6909 Digital Creations http://www.digicool.com ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] PLEASE trim cited text!
Sorry I normally try to do that... Cheers. -- Andy McKay. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Tracking memory leak
Heres the graphs of Zopes memory usage, if that interests you... the drops are the restarts. -- Andy McKay. memoryused-freebytes-day.gif
RE: [Zope-dev] ZODBCA questions...
This is true. But it's likely the aame reason we dont have an ecommerce module or an XSLT processor or a catalog which allows for easy indexing of pdfs or our own object-relational mapping story, or, or, or, or. It would be naive of me to assume what reason that is, but I just wondered why ZODBC DA was left in it's current (somewhat dated, somewhat stale...but like a old chocolate chip cookie, you'll still eat it) state. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
RE: [Zope-dev] memory leak
Marco Nova writes: have you checked the debug page in the control panel and noted any refcounts increasing? Class April 10, 2001 9:17 am April 11, 2001 8:34 am Products.ParsedXML.DOM.Core.Text 3241 27318 +24077 Products.ParsedXML.DOM.Core.Element 1777 14493 +12716 Products.ParsedXML.DOM.ExpatBuilder.ExpatBuilder 81 1506 +1425 Products.ParsedXML.Printer.PrintVisitor 3 107 +104 Products.ParsedXML.DOM.Core.Document 10 112 +102 Yes, I've a lot of refcounts leaks. I do not know "ParsedXML"'s DOM implementation. However, cycles are quite common for DOM's due to the cyclic relationship between parent and children. Unless great care is taken, DOM tree can be highly cyclic and would therefore not be garbage collectable by Pythons 1.5.2 reference counting garbage collector. Dieter ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] [ANNOUNCE] Zope Developer's Guide Preview
Andy McKay wrote: Amos Latteier wrote: I'm proud to announce the first preview release of the Zope Developer's Guide. http://www.zope.org/Documentation/ZDG woot! woot? Sorry, HURRAH! :) Richard -- Richard Jones [EMAIL PROTECTED] Senior Software Developer, Bizar Software (www.bizarsoftware.com.au) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] How do I call an HTMLFile in context provided by apath?
Dieter Maurer wrote: Itai Tavor writes: I have a method that receives a path: '/MyApp/SomeSpecialist/some_id/edit_html' and has to call edit_html in the context of some_id. If edit_html is a DTML Method, I can do this: obj = REQUEST.traverse(path) I would use "restrictedTraverse" instead of "REQUEST.traverse" as it uses less magic. Thanks for the tip... I thought restrictedTraverse is slower because it has to do security checks? ... But when edit_html is an HTMLFile in a Python Product, obj.aq_parent doesn't work. Why not? It causes this exception: Error Type: AttributeError Error Value: edit_htmlaq_parent This would mean that either your product is not derived from ExtensionClass.Base or that "HTMLFile" is not derived from "Acquisition.Implicit". My product inherit does have implicit acquisition. But HTMLFile doesn't - that's the whole problem. Replacing HTMLFile with DTMLFile solves the problem, as DTMLFile derives from Acquisition.Explicit. Thanks for pointing me in the right direction. P.S Now that aq_parent is working... why can't I do absolute_url() on DTMLFiles :-( -- -- Itai Tavor -- "Je sautille, donc je suis."-- [EMAIL PROTECTED]-- - Kermit the Frog -- -- "What he needs now is understanding... and a confederate victory" -- -- Dr. Jacobi, Twin Peaks -- ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Using Python script to create ZClass instances
Hi there, Im having problems using Python script to create a ZClass instance from a ZClass that's inside of another ZClass. I have this addMyObject Python script as constructor script for "Scriptable Type Information" type object (CMF): ## Script (Python) "addMyObject" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##parameters=folder, id ##title= ## folder.Control_Panel.Products.MyProducts.MyObjects.MyObject_add(id) # folder.manage_addProduct('MyProduct')... doesn't work either item = getattr(folder, id) return item MyObjects is a ZClass that contains MyObject. The error I get is: Zope error Error type AttributeError Error value MyObjects There should be some explanation somewhere how to access resources inside of Control_Panel, but I fail to find it. Creating objects is very confusing and difficult at times... Bye, -- Bjorn Stabell [EMAIL PROTECTED] ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )