GC memory fragmentation

Heromyth bitworld at qq.com
Wed Nov 3 06:26:49 UTC 2021


On Wednesday, 14 April 2021 at 12:47:22 UTC, Heromyth wrote:
> On Sunday, 11 April 2021 at 09:10:22 UTC, tchaloupka wrote:
>> Hi,
>> we're using vibe-d (on Linux) for a long running REST API 
>> server and have problem with constantly growing memory until 
>> system kills it with OOM killer.
>>
>
> The Hunt Framework is also suffering from this. We are trying 
> to make a simple example to illustrate it.

The bug has been fixed now[1]. It's because that a moudle named 
ArrayList wrapped the Array in std.container.array. We use a 
dynamic array instead.

We are not sure why this happens.

[1] 
https://github.com/huntlabs/hunt-extra/commit/903f3b4b529097013254342fdcfac6ba5543b401


More information about the Digitalmars-d-learn mailing list