Open jiekun opened 1 year ago
BTW 80M works totally fine in my Ubuntu16.04 VM.
Memory usage of those applications can be stabilized at around 180-200 MiB (even if I raise the limit to 1 GiB, to see if there is a memory leak or something similar) on my laptop.
It's still hard to predict how they acquire memory in other OS/environments, I think the better way is to add a few sentences in README.md
so that our readers won't feel frustrated at their first deployment (chapter02)
I think it's fine to re-open this issue https://github.com/PacktPublishing/Cloud-Native-Observability/issues/19. I am using Macbook Pro M1 16' with Ventura 13.2.1.
It seems the example application is consuming more resources than expected. They are easy to exit due to OOM.
I think it's more likely to be the issue of the M1 processor and arm64/amd64. The application itself should be fine enough to be an example.
So it might be better to demonstrate the known issue in
README.md
in chapter02, and lift the memory limit a little bit higher.docker version
```bash ➜ chapter02 git:(main) ✗ docker version Client: Cloud integration: v1.0.31 Version: 20.10.24 API version: 1.41 Go version: go1.19.7 Git commit: 297e128 Built: Tue Apr 4 18:21:21 2023 OS/Arch: darwin/arm64 Context: default Experimental: true Server: Docker Desktop 4.18.0 (104112) Engine: Version: 20.10.24 API version: 1.41 (minimum version 1.12) Go version: go1.19.7 Git commit: 5d6db84 Built: Tue Apr 4 18:17:07 2023 OS/Arch: linux/arm64 Experimental: false containerd: Version: 1.6.18 GitCommit: 2456e983eb9e37e47538f59ea18f2043c9a73640 runc: Version: 1.1.4 GitCommit: v1.1.4-0-g5fd4c4d docker-init: Version: 0.19.0 GitCommit: de40ad0 ```docker compose version
```bash ➜ chapter02 git:(main) ✗ docker compose version Docker Compose version v2.17.2 ```