Trying to run build OpenSearch from upstream on Fedora and I repeatedly run into SWAP file exhaustion and the build process is killed by the system.
Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
A fresh content from
$ git log -n 1 --oneline e44b3f1993d (HEAD -> main, origin/main, origin/HEAD) [Remote Store] Clear feature flag set during unit test runs (#7523)
$ uname -a Linux fedora 6.2.7-200.fc37.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Mar 17 16:16:00 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
$ java --version openjdk 11.0.18 2023-01-17 OpenJDK Runtime Environment (Red_Hat-22.214.171.124.10-1.fc37) (build 11.0.18+10) OpenJDK 64-Bit Server VM (Red_Hat-126.96.36.199.10-1.fc37) (build 11.0.18+10, mixed mode, sharing)
Describe the issue:
$ .gradlew clean build --continue
After ~10 minutes the swap file gets filled quite quickly from 1G to 4G and about 1-2 minutes later it grows from 4G to 8G. At this point the system kills the build.
The following is a screenshot of gradle output around the 8G swap size. Perhaps one (or more) of these tests is the root cause?
As you can see the swap is completely full.
Anyone has experience with this? Shall I try to expand the swap space or use machine with more RAM?
$ free -h total used free shared buff/cache available Mem: 27Gi 1.4Gi 24Gi 0.0Ki 1.2Gi 25Gi Swap: 8.0Gi 1.1Gi 6.9Gi