pablo
August 22, 2025, 3:50pm
33
@yeonghyeonKo Thanks for sharing. My findings were very similar. Low entropy was causing the OS to get stuck.
I was testing with docker and binary. In both cases on a single AlamaLinux8 node. Running rngd service increased entropy on the Linux OS.
Just sharing the other GitHub issue where you made those comments for traceability.
opened 08:06AM - 07 Aug 25 UTC
bug
untriaged
Other
### Describe the bug
When running OpenSearch in a containerized environment on … virtual machines, we have observed extremely slow startup times — in some cases taking over 1–2 hours to complete initialization. Upon investigation, the root cause appears to be low system entropy, with /proc/sys/kernel/random/entropy_avail consistently showing values below 200, and sometimes even in the double digits.
use `-Djava.security.egd=file:/dev/urandom` has no effect
### Related component
Other
### To Reproduce
1、run `cat /proc/sys/kernel/random/entropy_avail` (<200, in aliyun ecs)
2、run `docker run -p 9200:9200 -p 9600:9600 -e "discovery.type=single-node" -e "OPENSEARCH_INITIAL_ADMIN_PASSWORD=<password>" opensearchproject/opensearch:3`
3、logs stuck in
```
WARNING: Using incubator modules: jdk.incubator.vector
WARNING: Unknown module: org.apache.arrow.memory.core specified to --add-opens
```
4、run `haveged -F -d 32 -w 1024 --verbose=1`
5、problem solved
### Expected behavior
Is there any way to solve this problem without relying on external programs (such as haveged)?
2 Likes