# Connection Failure Elasticsearch

**URL:** <https://discuss.elastic.co/t/connection-failure-elasticsearch/185503>\
**Category:** Elasticsearch\
**Created:** [June 12, 2019, 7:51pm UTC](https://discuss.elastic.co/t/connection-failure-elasticsearch/185503 "2019-06-12T19:51:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dr\_Ramin\_Sadr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dr_ramin_sadr/32/48008_2.png) [@Dr\_Ramin\_Sadr](https://discuss.elastic.co/u/Dr_Ramin_Sadr)\
**Post date:** [June 12, 2019, 7:51pm UTC](https://discuss.elastic.co/t/connection-failure-elasticsearch/185503/1 "2019-06-12T19:51:59Z")

</div>

I much appreciate if anyone can help me  
**Elastic search comes up and crashes and I get**  
**curl: (7) Failed to connect to 127.0.0.1 port 9200: Connection refused**

**Status Looks OK:**

elasticsearch.service - Elasticsearch  
Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendor preset: enabled)  
Active: active (running) since Wed 2019-06-12 12:47:10 PDT; 5s ago  
Docs: [http://www.elastic.co](http://www.elastic.co)  
Main PID: 20461 (java)  
Tasks: 22 (limit: 19660)  
Memory: 740.6M  
CGroup: /system.slice/elasticsearch.service  
└─20461 /usr/lib/jvm/java-9-openjdk-amd64/bin/java -Xms512m -Xms512m -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -Des.networkaddress.cache.ttl=60 -Des.networkaddress.cache.negati

Jun 12 12:47:10 ubuntu-19 systemd[1]: Started Elasticsearch.  
Jun 12 12:47:10 ubuntu-19 elasticsearch[20461]: OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.  
Jun 12 12:47:11 ubuntu-19 elasticsearch[20461]: Exception in thread "main" 2019-06-12 12:47:11,489 main ERROR No Log4j 2 configuration file found. Using default configuration (logging only errors to the console), or user programmatically prov

**I cannot decode the log, but that looks OK to me:**

[2019-06-12T19:42:28.999+0000][20288][gc,heap,coops] Heap address: 0x000000055a800000, size: 9816 MB, Compressed Oops mode: Zero based, Oop shift amount: 3  
[2019-06-12T19:42:29.074+0000][20288][safepoint] Application time: 0.0014075 seconds  
[2019-06-12T19:42:29.074+0000][20288][safepoint] Total time for which application threads were stopped: 0.0000567 seconds, Stopping threads took: 0.0000164 seconds  
[2019-06-12T19:42:29.188+0000][20288][safepoint] Application time: 0.1139118 seconds  
[2019-06-12T19:42:29.188+0000][20288][safepoint] Total time for which application threads were stopped: 0.0000947 seconds, Stopping threads took: 0.0000191 seconds  
[2019-06-12T19:42:29.216+0000][20288][safepoint] Application time: 0.0270995 seconds  
[2019-06-12T19:42:29.216+0000][20288][safepoint] Total time for which application threads were stopped: 0.0001000 seconds, Stopping threads took: 0.0000344 seconds  
[2019-06-12T19:42:29.231+0000][20288][safepoint] Application time: 0.0148457 seconds  
[2019-06-12T19:42:29.231+0000][20288][safepoint] Total time for which application threads were stopped: 0.0000740 seconds, Stopping threads took: 0.0000156 seconds  
[2019-06-12T19:42:29.523+0000][20288][safepoint] Application time: 0.2924986 seconds  
[2019-06-12T19:42:29.523+0000][20288][safepoint] Total time for which application threads were stopped: 0.0001686 seconds, Stopping threads took: 0.0000191 seconds  
[2019-06-12T19:42:30.524+0000][20288][safepoint] Application time: 1.0008998 seconds  
[2019-06-12T19:42:30.524+0000][20288][safepoint] Total time for which application threads were stopped: 0.0000923 seconds, Stopping threads took: 0.0000258 seconds  
[2019-06-12T19:42:33.101+0000][20288][safepoint] Application time: 2.5767293 seconds  
[2019-06-12T19:42:33.101+0000][20288][safepoint] Total time for which application threads were stopped: 0.0001512 seconds, Stopping threads took: 0.0000309 seconds  
[2019-06-12T19:42:44.689+0000][20288][gc,heap,exit] Heap  
[2019-06-12T19:42:44.689+0000][20288][gc,heap,exit] par new generation total 460096K, used 73641K [0x000000055a800000, 0x0000000579b30000, 0x0000000579b30000)  
[2019-06-12T19:42:44.689+0000][20288][gc,heap,exit] eden space 409024K, 18% used [0x000000055a800000, 0x000000055efea458, 0x0000000573770000)  
[2019-06-12T19:42:44.689+0000][20288][gc,heap,exit] from space 51072K, 0% used [0x0000000573770000, 0x0000000573770000, 0x0000000576950000)  
[2019-06-12T19:42:44.689+0000][20288][gc,heap,exit] to space 51072K, 0% used [0x0000000576950000, 0x0000000576950000, 0x0000000579b30000)  
[2019-06-12T19:42:44.689+0000][20288][gc,heap,exit] concurrent mark-sweep generation total 13120K, used 0K [0x0000000579b30000, 0x000000057a800000, 0x00000007c0000000)  
[2019-06-12T19:42:44.689+0000][20288][gc,heap,exit] Metaspace used 16791K, capacity 17456K, committed 17664K, reserved 1064960K  
[2019-06-12T19:42:44.689+0000][20288][gc,heap,exit] class space used 1834K, capacity 2044K, committed 2048K, reserved 1048576K

---

<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:** [July 10, 2019, 8:03pm UTC](https://discuss.elastic.co/t/connection-failure-elasticsearch/185503/2 "2019-07-10T20:03:02Z")

</div>

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