Setup:
Digital Ocean droplet with 4GB memory
Magento 2.4.1
Elasticsearch 7.6.0
Installed according to Craig’s YT video
Elasticsearch gets killed periodically:
Aug 17 14:43:49 digital-ocean-server systemd[1]: Started Elasticsearch.
Aug 19 21:04:10 digital-ocean-server systemd[1]: elasticsearch.service: Main process exited, code=killed, status=9/KILL
Aug 19 21:04:10 digital-ocean-server systemd[1]: elasticsearch.service: Failed with result ‘signal’.
Aug 20 06:44:10 digital-ocean-server systemd[1]: Starting Elasticsearch…
Aug 20 06:44:11 digital-ocean-server elasticsearch[1117612]: OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
Aug 20 06:44:32 digital-ocean-server systemd[1]: Started Elasticsearch.
Aug 20 21:05:08 digital-ocean-server systemd[1]: elasticsearch.service: Main process exited, code=killed, status=9/KILL
Aug 20 21:05:08 digital-ocean-server systemd[1]: elasticsearch.service: Failed with result ‘signal’.
Aug 21 07:39:36 digital-ocean-server systemd[1]: Starting Elasticsearch…
Aug 21 07:39:37 digital-ocean-server elasticsearch[1176273]: OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
Aug 21 07:39:56 digital-ocean-server systemd[1]: Started Elasticsearch.