monocle icon indicating copy to clipboard operation
monocle copied to clipboard

🚨 docker-compose up fails on macos for exessive memory

Open georgettica opened this issue 4 years ago • 6 comments

that was on the api component

exe:macroscope from monocle-0.1.2.0 and exe:monocle-api from monocle-0.1.2.0).
The build process was killed (i.e. SIGKILL). The typical reason for this is
that there is not enough memory available (e.g. the OS killed a process using
lots of memory).

second run gave

cabal: Failed to build bloodhound-0.17.0.0 (which is required by
exe:macroscope from monocle-0.1.2.0 and exe:monocle-api from monocle-0.1.2.0).
The build process was killed (i.e. SIGKILL). The typical reason for this is
that there is not enough memory available (e.g. the OS killed a process using
lots of memory).

running on macos 16" (non-m1)

georgettica avatar Oct 27 '21 22:10 georgettica

docker vm resources Screen Shot 2021-10-28 at 1 34 17

georgettica avatar Oct 27 '21 22:10 georgettica

related to https://github.com/change-metrics/monocle/pull/696

georgettica avatar Oct 27 '21 22:10 georgettica

Hey @georgettica , it seems like the memory requirements are missing from the doc, it should indicate that building the image needs more than 2GB of memory.

TristanCacqueray avatar Oct 28 '21 01:10 TristanCacqueray

4Gi did the trick, but now all of my processes (aside of ES) are crashing

docker-compose ps
          Name                        Command                  State                    Ports
-----------------------------------------------------------------------------------------------------------
monocle_api_1              monocle-api --port 9898          Exit 1
monocle_crawler-legacy_1   monocle --elastic-conn ela ...   Exit 1
monocle_crawler_1          macroscope                       Exit 1
monocle_elastic_1          /tini -- /usr/local/bin/do ...   Up (healthy)   0.0.0.0:9200->9200/tcp, 9300/tcp
monocle_web_1              /bin/sh -c /bin/start.sh         Exit 1

georgettica avatar Oct 28 '21 17:10 georgettica

Had this issue while running the tool locally with docker-compose up.

Setting

    mem_limit: 8G
    mem_reservation: 4G

for api and crawler helped. 4G mentioned above was not enough.

dc-up42 avatar May 04 '22 14:05 dc-up42

I think also this is not tested on each commit, so we might also need to add automation regarding min mem required

georgettica avatar May 04 '22 18:05 georgettica