Thread overview
dmd, vibe.d RAM usage when compiling.
Jul 11, 2017
SrMordred
Jul 11, 2017
Cym13
Jul 11, 2017
Andre Pany
July 11, 2017
I never notice this before, but i tried to put a basic hello world from vibe.d (like the one that are in the dlang front page examples now), into the most basic instance on google cloud (with 600mb of RAM) and the compilation returned
"Killed
dmd failed with exit code 137."

So I look at the RAM usage and saw that when compiling (with dub) it uses 550mb+.

So i´m unable to put hello world to work.

Aren´t this number a bit too high for a basic example?


July 11, 2017
On Tuesday, 11 July 2017 at 16:04:52 UTC, SrMordred wrote:
> I never notice this before, but i tried to put a basic hello world from vibe.d (like the one that are in the dlang front page examples now), into the most basic instance on google cloud (with 600mb of RAM) and the compilation returned
> "Killed
> dmd failed with exit code 137."
>
> So I look at the RAM usage and saw that when compiling (with dub) it uses 550mb+.
>
> So i´m unable to put hello world to work.
>
> Aren´t this number a bit too high for a basic example?

They're expected sadly. It's known that D's common style and especially templates quickly leads to huge memory usage. There is work in progress to mitigate the issue such as reducing the size of symbols within the binary but it's not available for the moment.
July 11, 2017
On Tuesday, 11 July 2017 at 16:04:52 UTC, SrMordred wrote:
> I never notice this before, but i tried to put a basic hello world from vibe.d (like the one that are in the dlang front page examples now), into the most basic instance on google cloud (with 600mb of RAM) and the compilation returned
> "Killed
> dmd failed with exit code 137."
>
> So I look at the RAM usage and saw that when compiling (with dub) it uses 550mb+.
>
> So i´m unable to put hello world to work.
>
> Aren´t this number a bit too high for a basic example?

https://github.com/rejectedsoftware/vibe.d/issues/1787

Same issue on Cloud Foundry;)

Single file compilation is slow but a worksround.

Kind regards
André