No More Heavy RAM Memory Consumption: Apply These 3 Secret Techniquesby@aspecto
1,023 reads
1,023 reads

No More Heavy RAM Memory Consumption: Apply These 3 Secret Techniques

by Aspecto3mMarch 29th, 2021
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Docker Desktop on Mac allocates by default only 2GB of RAM to all containers in total. Each typescript service was using ~600MB of RAM out of the total 2GB available for all containers. The price to pay here is a longer compilation time. Instead of using tsc, it is possible to compile the code with tsc and monitor file changes with nodemon. If you want to run code in production that was already compiled and tested in the CI, you can only benefit from setting this option.

Company Mentioned

Mention Thumbnail
featured image - No More Heavy RAM Memory Consumption: Apply These 3 Secret Techniques
Aspecto HackerNoon profile picture
Aspecto

Aspecto

@aspecto

Distributed Tracing Powered by OpenTelemetry

Share Your Thoughts

About Author

Aspecto HackerNoon profile picture
Aspecto@aspecto
Distributed Tracing Powered by OpenTelemetry

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
L O A D I N G
. . . comments & more!