Re: Memory doesn't release (from collections)

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Brian Mitchell (MagellanTX_at_hotmail.com)
Date: 01/08/05


Date: Sat, 8 Jan 2005 00:35:18 -0600

Yes, you can use gc.collect but no matter I let the program sit for 2 hours
and it still didn't free the memory. I even set a breakpoint to make sure
the class was set to nothing.

"Dave" <dave(delete_this)@miraclecatDELETETHISTOO.com> wrote in message
news:u8MMmkU9EHA.2568@TK2MSFTNGP10.phx.gbl...
> is there a way to "force" garbage collection?
>
> "Marina" <someone@nospam.com> wrote in message
> news:uCvk9OQ9EHA.3828@TK2MSFTNGP09.phx.gbl...
>> Just because an object is eligible for garbage collection, doesn't mean
>> it
>> gets garbage collected right away.
>>
>> When the garbage collector decides to run, then anything eligible will
>> get
>> collected. Until then it will sit there taking up memory.
>>
>> "Brian Mitchell" <MagellanTX@hotmail.com> wrote in message
>> news:usSjbFQ9EHA.3120@TK2MSFTNGP12.phx.gbl...
>> > Hello, I am using several queue collections to store some data (about
>> 20,000
>> > entries split across 2 collections). When I view the process in the
>> Windows
>> > task manager I can see the memory increasing when the collections start
> to
>> > fill. However, when I stop the thread and clear the queues (and set the
>> > instance to nothing) the memory does not drop at all.
>> >
>> > Am I doing something wrong?
>> >
>> > Thanks!!
>> >
>> >
>>
>>
>
>



Relevant Pages

  • Re: Alternatives to C: ObjectPascal, Eiffel, Ada or Modula-3?
    ... My problem with it is the lack of a garbage collection. ... pretty much have memory bugs, ... Modern GCs are much faster than older ones, ... Concurrent GCs exist, nevermind GCs that play fairly nicely with concurrent application code. ...
    (comp.programming)
  • Re: Article of interest: Python pros/cons for the enterprise
    ... from many articles and postings across the internet memory management ... There are other downsides to garbage collection, ... not the way it goes in practice nowadays, ...
    (comp.lang.python)
  • Re: Waking up sleeping Java applications
    ... collection and Windows memory management. ... application is running a large garbage collection and is mostly swapped ...
    (comp.lang.java.programmer)
  • Re: C vs C++ in Embedded Systems?
    ... >>the garbage collection system be able to find every pointer that it needs ... >>ensuring that all pointer variables actually point to allocated memory. ... references, by definition, in these languages. ...
    (comp.arch.embedded)
  • Re: C++ Garbage Collector on VMS?
    ... Boehm GC, afaict, is very popular among such ... or how it relates to what you are doing in lisp. ... about the Boehm GC nor what triggers its doing a garbage collection ... definitions and pointers were given "memory" from a free area. ...
    (comp.os.vms)