ElasticSearch 1.7.3 crashed and doesn't restart - no logs

Hi,

I'm not sure if this is because we're trying to run Elasticsearch in strace or if this is the issue but this error occurs:

[pid 25261] write(2, "Java HotSpot(TM) 64-Bit Server VM warning: ", 43) = 43
[pid 25261] write(2, "INFO: os::commit_memory(0x000000031f330000, 19877658624, 0) failed; error='Cannot allocate memory' "..., 109) = 109
[pid 25261] write(2, "\n", 1)           = 1
[pid 25261] write(1, "#\n", 2)          = 2
[pid 25261] write(1, "# There is insufficient memory for the Java Runtime Environment to continue.\n", 77) = 77
[pid 25261] write(1, "# Native memory allocation ", 27) = 27
[pid 25261] write(1, "(mmap) failed to map ", 21) = 21
[pid 25261] write(0, "# There is insufficient memory for the Java Runtime Environment to continue.\n", 77) = 77

I suggest you check what you've set ES_HEAP_SIZE to or whatever you're setting as -Xmx and -Xms. From the strace it shows:

[pid 25260] execve("/usr/lib/jvm/java-8-oracle//bin/java", ["/usr/lib/jvm/java-8-oracle//bin/java", "-Xms19g", "-Xmx19g",

I'd confirm you have sufficient amount of memory for this heap size or try reducing your heap size.

1 Like