Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
set MALLOC_ARENA_MAX to a lower dynamic value to prevent OOM
The default behavior is 8x the number of detected CPUs . As Cloud Foundry typically uses large host machines with smaller containers, and the Java process is unaware of the difference in allocated CPUs, the numbers are way off. This often leads to high native memory usage, followed by a cgroup OOM killer event. We go with Heroku's recommendation of lowering to a setting of 2 for small instances and grow larger linearly with memory. References: - cloudfoundry/java-buildpack#163 - https://devcenter.heroku.com/articles/testing-cedar-14-memory-use - cloudfoundry/java-buildpack#320
- Loading branch information