Memory leak in Python

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Kent Johnson

    #16
    Re: Memory leak in Python

    diffuser78@gmai l.com wrote:[color=blue]
    > Sure, are there any available simulators...si nce i am modifying some
    > stuff i thought of creating one of my own. But if you know some
    > exisiting simlators , those can be of great help to me.[/color]


    Comment

    • Serge Orlov

      #17
      Re: Memory leak in Python

      diffuser78@gmai l.com wrote:[color=blue]
      > I ran simulation for 128 nodes and used the following
      >
      > oo = gc.get_objects( )
      > print len(oo)
      >
      > on every time step the number of objects are increasing. For 128 nodes
      > I had 1058177 objects.
      >
      > I think I need to revisit the code and remove the references....b ut how
      > to do that. I am still a newbie coder and every help will be greatly
      > appreciated.[/color]

      The next step is to find out what type of objects contributes to the
      growth most of all, after that print several object of that type that
      didn't exist on iteration N-1 but exist on iteration N

      Comment

      • darshan.purandare@gmail.com

        #18
        Re: Memory leak in Python

        Either of it would do, I am creating a discrete time simulator.

        Comment

        • Stephen Kellett

          #19
          Re: Memory leak in Python

          In message <1147357496.710 958.164370@g10g 2000cwb.googleg roups.com>,
          Serge Orlov <Serge.Orlov@gm ail.com> writes[color=blue]
          >The next step is to find out what type of objects contributes to the
          >growth most of all,[/color]

          Shame you aren't on Windows, as Python Memory Validator does all of
          this.
          [color=blue]
          >after that print several object of that type that
          >didn't exist on iteration N-1 but exist on iteration N[/color]

          And this, but for garbage collection generations.

          Stephen
          --
          Stephen Kellett
          Object Media Limited http://www.objmedia.demon.co.uk/software.html
          Computer Consultancy, Software Development
          Windows C++, Java, Assembler, Performance Analysis, Troubleshooting

          Comment

          Working...