# Elasticsearch exited unexpectedly

**URL:** <https://discuss.elastic.co/t/elasticsearch-exited-unexpectedly/334718>\
**Category:** Elasticsearch\
**Created:** [May 30, 2023, 7:13pm UTC](https://discuss.elastic.co/t/elasticsearch-exited-unexpectedly/334718 "2023-05-30T19:13:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Long\_Nguyen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/long_nguyen/32/87276_2.png) [@Long\_Nguyen](https://discuss.elastic.co/u/Long_Nguyen)\
**Post date:** [May 30, 2023, 7:13pm UTC](https://discuss.elastic.co/t/elasticsearch-exited-unexpectedly/334718/1 "2023-05-30T19:13:11Z")

</div>

Hello,

I have a similar problem to this [post](https://discuss.elastic.co/t/failed-to-start-elasticsearch/317304). My problem is a bit different since I managed to start Elasticsearch the day before (before shutting it down). I have verified that all permission settings are correct.

Here are the logs I have:

gc.log.20:

```auto
> [2023-05-30T18:54:20.411+0000][26721][gc,init] CardTable entry size: 512
> [2023-05-30T18:54:20.415+0000][26721][gc] Using G1

```

gc.log.21:

```auto
> [2023-05-30T19:03:32.948+0000][27267][gc,init] CardTable entry size: 512
> [2023-05-30T19:03:32.953+0000][27267][gc] Using G1
> [2023-05-30T19:03:32.958+0000][27267][gc,init] Version: 18.0.1.1+2-6 (release)
> [2023-05-30T19:03:32.958+0000][27267][gc,init] CPUs: 16 total, 16 available
> [2023-05-30T19:03:32.958+0000][27267][gc,init] Memory: 15883M
> [2023-05-30T19:03:32.958+0000][27267][gc,init] Large Page Support: Disabled
> [2023-05-30T19:03:32.958+0000][27267][gc,init] NUMA Support: Disabled
> [2023-05-30T19:03:32.958+0000][27267][gc,init] Compressed Oops: Enabled (Zero based)
> [2023-05-30T19:03:32.958+0000][27267][gc,init] Heap Region Size: 2M
> [2023-05-30T19:03:32.958+0000][27267][gc,init] Heap Min Capacity: 8M
> [2023-05-30T19:03:32.958+0000][27267][gc,init] Heap Initial Capacity: 250M
> [2023-05-30T19:03:32.958+0000][27267][gc,init] Heap Max Capacity: 3972M
> [2023-05-30T19:03:32.958+0000][27267][gc,init] Pre-touch: Disabled
> [2023-05-30T19:03:32.958+0000][27267][gc,init] Parallel Workers: 13
> [2023-05-30T19:03:32.958+0000][27267][gc,init] Concurrent Workers: 3
> [2023-05-30T19:03:32.958+0000][27267][gc,init] Concurrent Refinement Workers: 13
> [2023-05-30T19:03:32.958+0000][27267][gc,init] Periodic GC: Disabled
> [2023-05-30T19:03:32.958+0000][27267][gc,metaspace] CDS archive(s) mapped at: [0x0000000800000000-0x0000000800baf000-0x0000000800baf000), size 12251136, SharedBaseAddress: 0x0000000800000000, ArchiveRelocationMode: 0.
> [2023-05-30T19:03:32.959+0000][27267][gc,metaspace] Compressed class space mapped at: 0x0000000800c00000-0x0000000840c00000, reserved size: 1073741824
> [2023-05-30T19:03:32.959+0000][27267][gc,metaspace] Narrow klass base: 0x0000000800000000, Narrow klass shift: 0, Narrow klass range: 0x100000000
> [2023-05-30T19:03:33.029+0000][27267][gc,heap,exit] Heap
> [2023-05-30T19:03:33.029+0000][27267][gc,heap,exit] garbage-first heap total 260096K, used 3316K [0x0000000707c00000, 0x0000000800000000)
> [2023-05-30T19:03:33.029+0000][27267][gc,heap,exit] region size 2048K, 1 young (2048K), 0 survivors (0K)
> [2023-05-30T19:03:33.029+0000][27267][gc,heap,exit] Metaspace used 53K, committed 128K, reserved 1114112K
> [2023-05-30T19:03:33.029+0000][27267][gc,heap,exit] class space used 1K, committed 64K, reserved 1048576K

```

gc.log.22:

```auto
> [2023-05-30T19:03:33.078+0000][27288][gc,init] CardTable entry size: 512
> [2023-05-30T19:03:33.082+0000][27288][gc] Using G1
> [2023-05-30T19:03:33.150+0000][27288][gc,init] Version: 18.0.1.1+2-6 (release)
> [2023-05-30T19:03:33.150+0000][27288][gc,init] CPUs: 16 total, 16 available
> [2023-05-30T19:03:33.150+0000][27288][gc,init] Memory: 15883M
> [2023-05-30T19:03:33.150+0000][27288][gc,init] Large Page Support: Disabled
> [2023-05-30T19:03:33.150+0000][27288][gc,init] NUMA Support: Disabled
> [2023-05-30T19:03:33.150+0000][27288][gc,init] Compressed Oops: Enabled (Zero based)
> [2023-05-30T19:03:33.150+0000][27288][gc,init] Heap Region Size: 4M
> [2023-05-30T19:03:33.150+0000][27288][gc,init] Heap Min Capacity: 7944M
> [2023-05-30T19:03:33.150+0000][27288][gc,init] Heap Initial Capacity: 7944M
> [2023-05-30T19:03:33.150+0000][27288][gc,init] Heap Max Capacity: 7944M
> [2023-05-30T19:03:33.150+0000][27288][gc,init] Pre-touch: Disabled
> [2023-05-30T19:03:33.150+0000][27288][gc,init] Parallel Workers: 13
> [2023-05-30T19:03:33.150+0000][27288][gc,init] Concurrent Workers: 3
> [2023-05-30T19:03:33.150+0000][27288][gc,init] Concurrent Refinement Workers: 13
> [2023-05-30T19:03:33.150+0000][27288][gc,init] Periodic GC: Disabled
> [2023-05-30T19:03:33.150+0000][27288][gc,metaspace] CDS archive(s) mapped at: [0x0000000800000000-0x0000000800baf000-0x0000000800baf000), size 12251136, SharedBaseAddress: 0x0000000800000000, ArchiveRelocationMode: 0.
> [2023-05-30T19:03:33.150+0000][27288][gc,metaspace] Compressed class space mapped at: 0x0000000800c00000-0x0000000840c00000, reserved size: 1073741824
> [2023-05-30T19:03:33.150+0000][27288][gc,metaspace] Narrow klass base: 0x0000000800000000, Narrow klass shift: 0, Narrow klass range: 0x100000000
> [2023-05-30T19:03:33.219+0000][27288][gc,heap,exit] Heap
> [2023-05-30T19:03:33.219+0000][27288][gc,heap,exit] garbage-first heap total 8134656K, used 8110K [0x000000060f800000, 0x0000000800000000)
> [2023-05-30T19:03:33.219+0000][27288][gc,heap,exit] region size 4096K, 2 young (8192K), 0 survivors (0K)
> [2023-05-30T19:03:33.220+0000][27288][gc,heap,exit] Metaspace used 53K, committed 128K, reserved 1114112K
> [2023-05-30T19:03:33.220+0000][27288][gc,heap,exit] class space used 1K, committed 64K, reserved 1048576K 

```

Any help would be greatly appreciated! Thanks.

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [May 30, 2023, 7:24pm UTC](https://discuss.elastic.co/t/elasticsearch-exited-unexpectedly/334718/2 "2023-05-30T19:24:17Z")

</div>

It is not clear what your issue is, can you give more context? You just shared a couple of logs without any context.

Also, share Elasticsearch logs, not just the gc logs.

---

<div class="post-metadata">

**Author:** ![Long\_Nguyen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/long_nguyen/32/87276_2.png) [@Long\_Nguyen](https://discuss.elastic.co/u/Long_Nguyen)\
**Post date:** [May 30, 2023, 7:32pm UTC](https://discuss.elastic.co/t/elasticsearch-exited-unexpectedly/334718/3 "2023-05-30T19:32:58Z")

</div>

Hi,

Thanks for the reply.  
I'm running a Red Hat Enterprise Linux environment. Elasticsearch version 8.3.0. I used this command to obtain the tar.gz file:  
`wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.3.0-linux-x86_64.tar.gz`

As for the log output, when I run `./bin/elasticsearch`, i get this:

```auto
> ./bin/elasticsearch
> warning: ignoring JAVA_HOME=/usr/lib/jvm/java-11-openjdk-11.0.15.0.9-2.0.1.el7_9.x86_64/; using bundled JDK
> 
> ERROR: Elasticsearch exited unexpectedly

```

Is there any other Elasticsearch logs that I do not know about?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 27, 2023, 7:33pm UTC](https://discuss.elastic.co/t/elasticsearch-exited-unexpectedly/334718/4 "2023-06-27T19:33:35Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
