[tahoe-lafs-trac-stream] [tahoe-lafs] #1729: memory leak in allmydata.test.test_web

tahoe-lafs trac at tahoe-lafs.org
Tue May 22 21:23:16 UTC 2012


#1729: memory leak in allmydata.test.test_web
------------------------+-------------------------
     Reporter:  zooko   |      Owner:
         Type:  defect  |     Status:  new
     Priority:  normal  |  Milestone:  undecided
    Component:  code    |    Version:  1.9.1
   Resolution:          |   Keywords:  test memory
Launchpad Bug:          |
------------------------+-------------------------

Comment (by warner):

 There are four test classes in test_web: Web, !IntroducerWeb, Util,
 and Grid. I ruled out Util and !IntroducerWeb (running them for
 several minutes in a row has a flat memory footprint). Running Grid
 by itself uses a bunch but seems to peak at 78M VMSize after about
 2 or 3 passes. Running Web by itself consumes more and more memory.

 I'm pretty sure this is due to the "all_contents" class-level dictionary
 in {{{allmydata.test.common.FakeCHKFileNode}}} and
 {{{FakeMutableFileNode}}}. I'll look into parametizing that with a
 container which can be discarded between test runs.

-- 
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/1729#comment:1>
tahoe-lafs <https://tahoe-lafs.org>
secure decentralized storage


More information about the tahoe-lafs-trac-stream mailing list