Ughhhh. This thread is IMHO not a good advert for EFS.
I’m glad (and I admit a little surprised) a workaround was found without any code changes anywhere.
$ /usr/share/elasticsearch/jdk/bin/java -XX:+UnlockExperimentalVMOptions -XX:+PrintFlagsFinal -version 2>/dev/null | wc -l
601
I also massively underestimated how many -XX options the java (openjdk) command line would support.
Signing off this thread …