-
Notifications
You must be signed in to change notification settings - Fork 625
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"fatal error: runtime: out of memory" occurs on OpenBSD #2191
Comments
That's not a bug in matterbridge. Instead, just don't use all the RAM at the same time. One way to deal with it is to compile sequentially, and not in parallel. For example, on a machine with particularly low memory I use: |
This server has 16 GiB of memory, and it's normally not over 2 GiB.
This is in action |
The compilation process seems to take (rough estimate) about 1-3 GB per thread. So if you system has 8 or more cores, then GOMAXPROCS defaults to that same "8 or more", resulting in OOM. Matterbridge really should have a better mechanism of limiting build parallelism. Can you write a PR to add appropriate warnings in the readme or log messages? |
Sorry, I can't speak English (I use an automatic translation to reply) |
Describe the bug
When running "go build" I get the error "fatal error: runtime: out of memory"
To Reproduce
Try running "go build" on OpenBSD 7.5 or 7.6
Expected behavior
Compilation is successful
Screenshots/debug logs
Environment (please complete the following information):
It compiled fine on OpenBSD 7.4 and earlier.
The text was updated successfully, but these errors were encountered: