Re: [Zope-dev] Re: Superuser ownership (was Adding LoginManager at the root)

2000-05-22 Thread Chris Withers

Robin Becker wrote:
[stuff about 2.2]

You can't create any objects except User Objects as the superuser.
Create a manager, re-login as that manager and then add yoru objects.

Can't speak for TinyTables but make sure the Anonymous role has the
'access TinyTables contents' permission. A lot of people get bitten by
this when installign Squishdot 'cos Anonymous does not have this
permission by default...

cheers,

Chris

___
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] catlogged specialist and rack

2000-05-22 Thread Jephte CLAIN

Hello,

for those who are in a need for search and enumeration capabilities for
specialist and racks in ZPatterns-0.3.0 right now like I am, the
following could be interesting.

Searchable.py defines:
CatalogAwareAttributeProvider,
CatalogAwareAcquiredAttributeProvider
Attribute providers that recatalog the object when its attributes are
changed

CatalogAwareRack
Rack that has a catalog inside it, and index the object created with
newItem, and modified afterward.
by default, only the id is catalogged. this can be changed in _setup
for derived classes

CatalogAwareSpecialist
Specialist that has support for CatalogAwareRack. A tab 'Contents'
provide support for enumerating the objecs in the racks. www/contents
can be customized to allow, editing, adding, and/or deleting objects if
you like.

This, in fact, is a quick hack. remember that all these will be useless
when ZPatterns-0.4.0 is out. But I'm fool enough to use evolving
software still in infant stage...

hope this is useful like it is for me.

regards,
jephte clain
[EMAIL PROTECTED]
 Searchable.tgz


Re: [Zope-dev] Re: Superuser ownership (was Adding LoginManager at the root)

2000-05-22 Thread Chris Withers

Robin Becker wrote:
 What kind of idiotic permissions model is this where God cannot create
 anything? What is the function of the super user if not to manage?

The super user is not god, that was seen to be an insecure thing.
The super user is a facilitator for creating god... ;-)

 Seems to be specially designed for bureaucrats, lawyers and politicians.

Actually, it's more to thwart little script kiddie hackers...

 I have already added the query tinytables back to anonymous. This still
 doesn't answer my question. How do I get a zope 2 database to work under
 2.2? 

Might help if you said what problems you were experiencing...

Basic steps I would try are either:
-just bring the data.fs from you 2.1 install and replace the blank one
in the 2.2 with a *copy* of it..
-export stuff, as required, from you old install and move it into your
new one...

 Do I have to try and reread all the non-existent documentation?

touche...

...maybe when you solve your problem you could write some documentation
on how to solve similar ones?

see zdp.zope.org

 What parts of the awful API have been further corrupted? The Zope
 noospheric habitat seems ripe for take-over by rationalists :)

Well, you don't have to use Zope...

cheers,

Chris

___
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 to download a entire ZWiki site?

2000-05-22 Thread Jephte CLAIN

Hello,
Where I work, I do not have access to the internet, and as such, I have
to move software and docs back and forth to my office. I understand that
it is better for collaborative work to use ZWikis, but I wonder, how do
I download the entire site to view it offline???

ok this is not really zope-dev, but I need the wikis to zope-develop...

thanks,
jephte clain
[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] Re: Superuser ownership (was Adding LoginManager at the root)

2000-05-22 Thread Chris Withers

Robin Becker wrote:
 What steps should I try to allow my currently unowned
 documents/tinytables to be made accessible. When I press the change
 ownership button I get a help browser with an error message in the
 content frame.

That sounds like a 2.2 bug to me... oh well... it is Alpha so fair
enough.
Can you mail the whole error message (especially the traceback) to the
list please :-)

 Should I just import everything as God and hope that improves things?

Might help...

Could you import stuff as the superuser?
('cos I think you shouldn't be able to...)

cheers,

Chris

___
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] Q2: ZCatalog Intelligent Objects

2000-05-22 Thread Chris Withers

Steve Alexander wrote:
 In PTK, PortalContent-derived classes have the method
 
   def SearchableText(self):
   "text for indexing"

So, if I get this correctly, Catalog will index both attributes and
methods(that have only the self argument?) with the same name as an
index?

If so, then that's cool, but undocumented, which is bad...

 The query/predicates stuff in ZPatterns looks like it will be much
 better than this... when it lands :-)

I really should get into ZPatterns, is there any documentation yet?

cheers,

Chris

___
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] Re: Superuser ownership (was Adding LoginManager at the root)

2000-05-22 Thread Bill Anderson

Robin Becker wrote:
 
 In article [EMAIL PROTECTED], Chris Withers
 [EMAIL PROTECTED] writes
 ...
 
 Might help if you said what problems you were experiencing...
 
 ...
 I already did. I cannot use the preexisting database tinytables.
 Following your suggestion I can create God, and then having logged in as
 God I can actually create tiny tables.
 
 What steps should I try to allow my currently unowned
 documents/tinytables to be made accessible. When I press the change
 ownership button I get a help browser with an error message in the
 content frame.


If I am not mistaken, the "migrating to Zope 2.2" page gives an
example method to convert objects to the new security model.

http://www.zope.org/Products/Zope/2.2.0a1/upgrading_to_220

___
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 to download a entire ZWiki site?

2000-05-22 Thread Chris Withers

Jephte CLAIN wrote:
 
 Hello,
 Where I work, I do not have access to the internet, and as such, I have
 to move software and docs back and forth to my office. I understand that
 it is better for collaborative work to use ZWikis, but I wonder, how do
 I download the entire site to view it offline???

An interesting question, since you don't have manage access to Zope.org
and so can't do an export.

And you can't run something like w3mir over it 'cos of Zope's silliness
when it comes to folders and not ending them in / ...

Good luck, and let us know if you find a solution...

Chris

___
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] Subclassing LoginManager

2000-05-22 Thread Dan L. Pierson

Phillip J. Eby writes:
  LoginManager will behave just like your outline, if you give it a
  BasicCookie LoginMethod, and a BasicAuth LoginMethod, in that order.
  LoginManager does not climb up the acquisition hierarchy, as that is
  properly the province of ZPublisher to do.  It will provide the anonymous
  user, if it is a top-level user folder.

You're right if course.  I just didn't realize that the PTK was set up 
to require cookie logins, so I was trying to avoid them and solve the
simpler piece of the problem first :-(

Oh well, that's working fine now.  I can log in, but it looks like
permissions aren't getting set/propagated correctly:

The initial management user is created with roles: 

   ['Member', 'Manager', 'Reviewer']

My PersistentUserSource returns this list correctly as the roles list.
All of the following are in Zope 2.1.6:

1. If I create the Portal as superuser with the Portal manager having the
same username as me, then log in to the portal in a new browser I can
see my folder but don't even have the permission to create new objects
in it.

2. If I create the Portal as me, a site Manager, with the Portal manager
having my user name, then log in as above, I can create objects but
clearly don't have Reviewer rights.

3. If I create the Portal as me with the Portal manager having another
username, then log in as above, it's just like the first case.  I can
see my folder but can't create anything in it.

Any idea what I'm doing wrong now?

___
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] Memory 2.1.1

2000-05-22 Thread Jason Spisak

Shane:

Holy cripe!  I just saw a huge drop (half the available mem) and went to
the Undo tab to see what was going on.  The last transaction was my
/Control_Panel/Database/manage_cache_age.  

Then I went to the manage_debug and my DateTime.DateTime.DateTime is 
DateTime.DateTime.DateTime 2460 96200 +93740

while I'm writing this its up to:

DateTime.DateTime.DateTime  2460 140945 +138485

Ahhh!

-- 
Jason Spisak
[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] Zope 2.1.6 Memory issue

2000-05-22 Thread R. David Murray

On Mon, 22 May 2000, Jason Spisak wrote:
 i did it again, and now I'm down to 160 objects total.
 That's more liek it.
 But system memory is still dropping. I was at 173632  available (This is
 only a half our after the Zope restart BTW.  It ate 100MB in under that
 time.)  before the second pass and now I'm at 173616.

I'm *very* interested in this.

I have a similar setup (stock 2.1.4 + the Lexicon.py patch, no
external database, no non-bundled Products, custom CatalogAware
ZClass, large number of objects (~60,000).  I'm running under
FreeBSD 3.4-STABLE.

I tried the 'minimize' trick and got down to around 200 objects,
with *no* decrease in memory used.  I'm not leaking memory as fast
as you, but over time memory usage does go up until swapping starts
and I'm forced to restart Zope.

Also as (apparently) with you, manage_debug does *not* give
any clues as to what is taking the memory; everything in the list
looks normal and does not add up to the observed memory usage
as far as I can guess.

I'm glad to see someone else is observing this memory weirdness,
I thought I was the only one.

--RDM


___
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] Zope 2.1.6 Memory issue

2000-05-22 Thread Jason Spisak

Shane Hathaway writes:

 Jason Spisak wrote:
  
  Shane Hathaway writes:
  
   Jason Spisak wrote:
 You must have a large site.
   
300,000 + objects
  
   Whoa...  ;-)
  
   Tell me, what are you doing with 300K objects?
  
   Shane
  
  Technical recruiting.
  I am the ultimate test case for ZDOB scalability. ;)
  
  I just recently started having problems thoug, so I am going back and
  disabling the small fixes I have made recently in my code.
  
  I just restarted Zope again.
  
  Most of the objects just sit around.
  
  Wow.  There it goes again.  It's got to be DateTime.DateTime.DateTime.  It
  just shot to 118003.
 
 That's actually a natural thing to happen.  DateTime objects get
 attached to many kinds of objects.  The real problem is that so many
 objects are being loaded into memory.
 
 I just did some research and it looks as though garbage collection is
 not fully implemented in Python.  I was not aware of this; do you know
 whether it has been corrected?

No, I had no idea.

 
 After minimizing your in-memory cache, look at the manage_debug screen
 again.  Are the refcounts still high?  I bet they are...
 

No.  The ref counts drop to hundreds.

Also, is see reference to 161 Products.GadflyDA.gadfly.kjparser.ParseRule,
and I'm not even useing Gadfly!

What the heck is that about?  Anyone?

Thing's seem to be a bit nicer now that I took out an External Method that
returns a DateTime object the Catalog for Indexing.  However, there's only
about 14,000 of objects with that property in existsnce in my DB, and they
don't change often.

Here's the code:

def calendar_day(self)
return int(self.calendar_date)/100

Used to return the unique integer day.


All my best,

Jason Spisak
CIO
HireTechs.com
6151 West Century Boulevard
Suite 900
Los Angeles, CA 90045
P. 310.665.3444
F. 310.665.3544

Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email
address may not be added to any commercial mail list with out my
permission.  Violation of my privacy with advertising or SPAM will
result in a suit for a MINIMUM of $500 damages/incident, $1500 for
repeats.

___
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 HELP: Nested ZClass, Nested instance

2000-05-22 Thread Karl Anderson

"Park, Karl" [EMAIL PROTECTED] writes:

 I created a ZClass in the Product folder. And anther ZClass under the
 ZClass(thus nested class)

 To do it, I created a DTML Method which accepts user's input and then, if
 needed, it have to create an object.

 First part is to create the parent object, which works just fine. 
 But the sencond part to create the child object doesn't seem to work. 
 If I take the easy way, that is, creating othere ZClass on the top of the
 products folder of Control Panel, I can do it. 
 But I don't think it is a good desing from the perspective of OOP

I had some hassles with this recently.  There's a HOWTO at:

http://www.zope.org/Members/gtk/containers

Can you create the child zclass from the manage screen inside the
parent zclass?

Does the parent zclass inherit from ObjectManager before any other
superclasses?

-- 
Karl Anderson  [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] Zope 2.1.6 Memory issue

2000-05-22 Thread Jason Spisak

Shane Hathaway writes:

Well, I reduced the 'target size' from 20,000 object down to 1000, and the
memory seems to be climbing.


 Jason Spisak wrote:
  
   After minimizing your in-memory cache, look at the manage_debug screen
   again.  Are the refcounts still high?  I bet they are...
  
  
  No.  The ref counts drop to hundreds.
 
 That's a big relief.  Okay, now we know that this isn't a memory leak,
 it's only related to the fact that your site requires ZODB to load a
 very large number of objects into memory in order to perform normal
 operations.
 
 Here's something to think about: whenever an object is added to or
 removed from a folder, all objects in all neighboring folders and below
 are traversed.  The manage_beforeDelete and manage_afterAdd hooks are
 called on each object.

I am hoping to use ZPatterns to stem this rapidly out of control,
ObjectManger not scalable, issue.

 
 Also, there is still the issue that Python doesn't seem to be releasing
 memory back to the system.  I wonder whether that capability has been
 implemented in Python.
 

It would really put a damper on things if is wasn't.  However, when I
stopped my Zope process each time, it didn't seem to give me back what 
Ihad started with.  Maybe there is a leak in the kernel I am using.  It's
2.2.12-smp.  Anyone?

  Also, is see reference to 161 Products.GadflyDA.gadfly.kjparser.ParseRule,
  and I'm not even useing Gadfly!
  
  What the heck is that about?  Anyone?
 
 Chances are some other product is "reaching in" to Gadfly.  Do you have
 the Zope tutorial installed?  It uses Gadfly.
 

No.  This is a Data.fs that came from Zope 1.  I didn't even think to get
Gadfly out of the Products directory.

  
  Thing's seem to be a bit nicer now that I took out an External Method that
  returns a DateTime object the Catalog for Indexing.  However, there's only
  about 14,000 of objects with that property in existsnce in my DB, and they
  don't change often.
  
  Here's the code:
  
  def calendar_day(self)
  return int(self.calendar_date)/100
  
  Used to return the unique integer day.
 
 That code actually doesn't return a DateTime instance, just an integer.
 

Yeah, I didn't really think is was that. ;)

 Keep me informed.

You bet.  And a thousand thanks are waiting in my cache for you.

Jason Spisak
CIO
HireTechs.com
6151 West Century Boulevard
Suite 900
Los Angeles, CA 90045
P. 310.665.3444
F. 310.665.3544

Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email
address may not be added to any commercial mail list with out my
permission.  Violation of my privacy with advertising or SPAM will
result in a suit for a MINIMUM of $500 damages/incident, $1500 for
repeats.

___
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] Re: Memory 2.1.6

2000-05-22 Thread Jason Spisak

Shane,

Well I lied.  The memory is now fluctuating.  It went as high as 12MB
available (out of a gig) and down to 2MB.  This seems fine, it's just that
I'm scraping the bottom of the barrel.  Also, I really am curious why
flushing the cache doesn't reclaim memory, too.

All my best,


Jason Spisak
CIO
HireTechs.com
6151 West Century Boulevard
Suite 900
Los Angeles, CA 90045
P. 310.665.3444
F. 310.665.3544

Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email
address may not be added to any commercial mail list with out my
permission.  Violation of my privacy with advertising or SPAM will
result in a suit for a MINIMUM of $500 damages/incident, $1500 for
repeats.

___
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] Re: Superuser ownership (was Adding LoginManager at the root)

2000-05-22 Thread Evan Gibson

On Mon, May 22, 2000 at 10:23:38AM -0600, mindlace wrote:
 Robin Becker wrote:
  What kind of idiotic permissions model is this where God cannot create
  anything? What is the function of the super user if not to manage?
  Seems to be specially designed for bureaucrats, lawyers and politicians.
 
 I feel like this specifically needed to be addressed.  This change in
 the ability of superuser stems directly from a security issue common to
 all through-the-web interfaces:
 http://www.zope.org/Members/jim/ZopeSecurity/TrojanIssueOverview
 The superuser cannot create objects, because any object that was owned
 by superuser would have permission to do whatever it pleased.

Yes, but if people _want_ to create superuser objects that can do anything
they should be permitted to. As long as the superuser doesn't make really
stupid objects they shouldn't get bitten.

The problem is that the new security model should have more handholding
to go along with it.
Perhaps the superuser should be changed to the name "usermanager" or
"permissionsmanager" or something like that and a default superuser
with the behaviour every actually expects the superuser to have be
created as well.
As it stands now you need _two_ "superuser" type users, so they should
both be created automatically instead of having to create one of them
manually afterwards.

Also I still maintain that, as well as the "Take Permissions" permission
that a NONE permissioned method should be available for ownership
transfer, that you can "offer" an object to someone and they can later
on "accept" it when they log in. (Like the moderation concept in Squishdot)
This is needed for cases where a site manager has say a hundred projects
going on under their Zope server. When one of the projects changes
project leader and leaves they have to transfer ownership to their
successor, but they _can't_ because their successor is _less_ authorised
than they are and can't "take permissions".
In this case they currently have to petition the person running the site
to change all of the permissions for their project over. This is a waste
of everyone's time and completely unecessary.
With a challenge/response transfer of objects you have complete security
maintained (especially if you allow the person accepting the ownership
to preview the object prior to their decision to accept it.)
It's more work to set up this system because nothing in core Zope uses
this type of messaging once people login, but it's a much broader and
usable means for ownership transfer without losing any security.

 Hope that's a bit more explanatory,
 ~ethan mindlace fremen
 digicool  imeme

-- 
  Evan ~ThunderFoot~ Gibson~ nihil mutatem, omni deletum ~
   It doesn't count as intimacy until somebody starts crying.

___
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] Zope 2.1.6 Memory issue

2000-05-22 Thread Jason Spisak

Shane Hathaway writes:

Okay, here's the output.  (BTW is was trying manage_debug without the
Control_Panel.  That was not intelligent;)

Class   May 22, 2000 4:21 amMay 22, 2000 4:22 amDelta 
OIBTree.Bucket  71328135+1003 
IOBTree.BTree   25702827+257 
BTree.BTree 10281105+77 
IIBTree.Bucket  45904619+29 
DocumentTemplate.DT_With.With 
   273 
   279 
  +6

2nd pass:

Actually there's too damn much.  Shane, I'll just send you the html.  If
anyone else wants to help let me know.

 Jason,
 
 Try /Control_Panel/manage_debug ... it will tell you exactly which
 kinds of objects are eating memory.  Take a "snapshot" then refresh the
 page after a couple of minutes, and the table should list at the top
 the name of the class that's taking up more than its fair share.
 
 Shane
 
 Jason Spisak wrote:
  
  Zopists,
  
  I am spoiled.  I have a large server and until now I have never really
  monitored memory usage.  But I noticed things slowing down a great deal
  and was curious.  Swapping.
  
  Machine:
  
  RH 6.1
  2.2.12-smp
  Dual Xenon
  1 gig memory
  
  Zope install:
  
  Zope 2.1 Binary
  ZODB pure.
  No DA's
  Home grown ZClasses.
  
  'ps' tells me Zope is the culprit. It's using 64% when things get
  swappy.  There are no prosesses running on this machine BTW.  It's just
  a Zope server.
  
  My Data.fs file is ~300 packed and gets to be about 1GB at the end of
  every day.  (A lot of transactions :)
  
  Zope is eating memory at the rate of 10MB every 2 minutes. Is that
  appropriate?
  
  I never noticed a slowdown until I switched to 2.1, really.
  
  I've considered writing a small python progam to compare the output of
  'free' to the Zope log, but I'd love to see if there is another way to
  nail what's eating mem.  If someone can tell me the best way to narrow
  it down from experience, I'll do it this afternoon.
  
  Hopefully,
  
  --
  Jason Spisak
  [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 )


Jason Spisak
CIO
HireTechs.com
6151 West Century Boulevard
Suite 900
Los Angeles, CA 90045
P. 310.665.3444
F. 310.665.3544

Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email
address may not be added to any commercial mail list with out my
permission.  Violation of my privacy with advertising or SPAM will
result in a suit for a MINIMUM of $500 damages/incident, $1500 for
repeats.

Title: Debug Information










  Zope 
  
  



  
  
  
  
  
  
  
  


  Contents
  Undo


  
  


  
  




  
  



Control Panel
at /Control_Panel


  
  
  


Debug Information



Zope version: Zope 2.1.1 (binary release, python 1.5.2, linux2-x86)
Python version: 1.5.2 (#10, Dec  6 1999, 12:16:27)  [GCC 2.7.2.3]
System Platform: linux2
Process ID: 2159 (5126)
Running for:  1 hour 14 min 57 sec
Top Refcounts: DateTime.DateTime.DateTime: 20559intSet.intSet: 12586OIBTree.Bucket: 8135IOBTree.Bucket: 5425BTree.Bucket: 5270IIBTree.Bucket: 4619IOBTree.BTree: 2827DocumentTemplate.DT_Util.Eval: 2168OIBTree.BTree: 1647OFS.DTMLMethod.DTMLMethod: 1548BTree.BTree: 1105ZClasses.Method.MW: 856ExtensionClass: 518DocumentTemplate.DT_In.InClass: 435ZClasses.ZClass.PersistentClass: 302DocumentTemplate.DT_With.With: 279AccessControl.User.User: 185OFS.Image.Image: 173Products.ZGadflyDA.gadfly.kjParser.ParseRule: 161DocumentTemplate.DT_Var.Var: 157ZClasses.Property.ZInstanceSheet: 135App.special_dtml.HTMLFi!
le: 133ZClasses.ZClass.ZClass: 130OFS.SimpleItem.SimpleItem: 130ZClasses.Property.ZInstanceSheets: 129AccessControl.PermissionRole.PermissionRole: 127App.Factory.Factory: 123App.Permission.Permission: 118App.PersistentExtra.Persistent: 108DocumentTemplate.VSEval.Eval: 96OFS.Folder.Folder: 93App.ImageFile.ImageFile: 89SearchIndex.UnIndex.UnIndex: 68App.Product.Product: 65Acquisition.Acquirer: 57AccessControl.PermissionMapping.PM: 52ZClasses.ZClass.ZClassSheets: 50TreeDisplay.TreeTag.Tree: 50SearchIndex.UnTextIndex.UnTextIndex: 47Products.ZCatalog.CatalogAwareness.CatalogAware: 47re.RegexObject: 46Products.ExternalMethod.ExternalMethod.ExternalM!
ethod: 42OFS.Image.File: 42Base: 41ZClasses.ZClass.ZObject: 37ZClasses.ObjectManager.ObjectManager: 37ts_regex.compile: 36ZServer.medusa.counter.counter: 36ZServer.PubCore.ZServerPublisher.ZServerPublisher: 35Missing.Missing: 35OFS.DTMLDocument.DTMLDocument: 34Acquisition.ImplicitAcquirerWrapper: 32DocumentTemplate.cDocumentTemplate.TemplateDict: 

Re: [Zope-Dev] Zope 2.1.6 Memory issue

2000-05-22 Thread Jason Spisak

R. David Murray:

Since this is a very heavily used Zope install, I am getting trashed faster
than you can say 'leakage'.

 On Mon, 22 May 2000, Jason Spisak wrote:
  i did it again, and now I'm down to 160 objects total.
  That's more liek it.
  But system memory is still dropping. I was at 173632  available (This is
  only a half our after the Zope restart BTW.  It ate 100MB in under that
  time.)  before the second pass and now I'm at 173616.
 
 I'm *very* interested in this.
 
 I have a similar setup (stock 2.1.4 + the Lexicon.py patch, no
 external database, no non-bundled Products, custom CatalogAware
 ZClass, large number of objects (~60,000).  I'm running under
 FreeBSD 3.4-STABLE.
 
 I tried the 'minimize' trick and got down to around 200 objects,
 with *no* decrease in memory used.  I'm not leaking memory as fast
 as you, but over time memory usage does go up until swapping starts
 and I'm forced to restart Zope.
 
 Also as (apparently) with you, manage_debug does *not* give
 any clues as to what is taking the memory; everything in the list
 looks normal and does not add up to the observed memory usage
 as far as I can guess.
 
 I'm glad to see someone else is observing this memory weirdness,
 I thought I was the only one.
 
 --RDM
 
I'm anxious to discover what's going on too.  It's will really be a boon
for DC to have Zope scalable to this size of ZODB and have the stability
I've come to rely on.

All my best,

Jason Spisak
CIO
HireTechs.com
6151 West Century Boulevard
Suite 900
Los Angeles, CA 90045
P. 310.665.3444
F. 310.665.3544

Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email
address may not be added to any commercial mail list with out my
permission.  Violation of my privacy with advertising or SPAM will
result in a suit for a MINIMUM of $500 damages/incident, $1500 for
repeats.

___
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 )