I have exactly the same issue with Opensearch 2.4.0 on x86_64 architectures. I’ve really no idea why opensearch is being killed, I’ve enabled docker debug mode, check syslog, … and no clue of what’s happening
OK found why I got this 143 code, it was in fact linked to the performance analyser startup failure as a configuration file (performance-analyzer.properties) was missing. And so if the performance analyzer can’t be started then opensearch is automatically killed by the startup script.
Has anyone seen this that has a fix or at least give me some pointers how to figure it out? The pod is in crashloop starting up. I’ve been trying to figure out how to get more logs using the helm values yaml , but no luck yet.
$ kubectl logs -f opensearch-cluster-master-0
Disabling execution of install_demo_configuration.sh for OpenSearch Security Plugin
Enabling OpenSearch Security Plugin
Killing opensearch process 10
OpenSearch exited with code 143
Performance analyzer exited with code 1
When I try and run the docker image locally, the only file in the logs folder is the performce-analyzer.log with the following.
uintx InitialCodeCacheSize=4096 is outside the allowed range [ 65536 ... 18446744073709551615 ]
Improperly specified VM option 'InitialCodeCacheSize=4096'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
But I don’t know why this would make the main process fail.
OK, it was the performce-analyzer killing the pod. How can I override the bad settings in the PA_AGENT_JAVA_OPTS when running docker without building my own image?
For the ARM image, the PA -XX:InitialCodeCacheSize= is set totally wrong. BUG