The sequence of logs shared in the OP are not consistent with the shutdown being caused by the OOM killer. The OOM killer sends a SIGKILL which causes immediate process exit, not a graceful shutdown. You don’t get any log messages in that case, the process just dies. If you were running it from the command line then sometimes you get the one-word message Killed on the last line, and an exit code of 137.
The logs in the OP are also not consistent with a Java OOM exception. That tends to be rather visible in the logs and again doesn’t go through the full stopping and closing sequence seen here.
It is unclear whether all of the shutdowns in question involve those log messages or whether @sathish12 just happened to pick an outlier. But all the ones that say stopping and closing are graceful shutdowns.
Note that if you run Elasticsearch from the console using & and then close the console then I expect the process will shut down like this. That’d be my first suspicion.