GC: Memory keeps growing

Chris via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Apr 17 03:43:59 PDT 2015


On Thursday, 16 April 2015 at 18:51:25 UTC, Kagamin wrote:
> On Wednesday, 15 April 2015 at 12:03:49 UTC, Chris wrote:
>> There might be some low-hanging fruit there. However, before I 
>> change anything, maybe you guys have some suggestions.
>
> See if switching to 64-bit mode changes anything.

64bit is the default. I've monitored the program for a while and 
it seems that it is not growing indefinitely. It might go up from 
10 MB to 20 MB, but then it is happy with 20 MB for ages. It 
might even go down to 14 MB again, only to increase to 16 or 18 
MB later. It's a bit weird.

I analyzed it step by step but I couldn't find a culprit. 
Sometimes it stays constant for ages like 15.2 MB no matter what 
I put through it. Then I put one word through it and it goes up 
to 15.4 MB. It's a bit odd. However, I don't know the exact 
behavior of the GC, but it's a good time to start looking into it.


More information about the Digitalmars-d-learn mailing list