# ES with high "total\_opened"

**URL:** https://discuss.elastic.co/t/es-with-high-total-opened/56060
**Category:** Elasticsearch
**Created:** [July 21, 2016, 5:53am UTC](https://discuss.elastic.co/t/es-with-high-total-opened/56060 "2016-07-21T05:53:57Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Ravi\_Shanker\_Reddy](https://avatars.discourse-cdn.com/v4/letter/r/a5b964/32.png) [@Ravi\_Shanker\_Reddy](https://discuss.elastic.co/u/Ravi_Shanker_Reddy)
#### Post date: [July 21, 2016, 5:53am UTC](https://discuss.elastic.co/t/es-with-high-total-opened/56060/1 "2016-07-21T05:53:57Z")

</div>

I am using nodeJS & perl clients to connect to ES. While reading the definitive guide of ES I found that my ES shows

Node -1  
`"transport": { "server_open": 13, "rx_count": 235417, "rx_size_in_bytes": 550972690, "tx_count": 235342, "tx_size_in_bytes": 67642574 }, "http": { "current_open": 2, "total_opened": 150136 },`

Node - 2  
`"transport": { "server_open": 13, "rx_count": 235418, "rx_size_in_bytes": 67642574, "tx_count": 235337, "tx_size_in_bytes": 550972690 }, "http": { "current_open": 1, "total_opened": 5 },`

I revised my code once again. I am opening a connection to connect but not closing it anywhere. How to close these connections after completion.

Node API  
`var elasticClient = new elasticsearch.Client({ host: config.EsConfig.hosts, log: 'info' });`

---

<div class="post-metadata">

### Author: ![javanna](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/javanna/32/4698_2.png) [@javanna](https://discuss.elastic.co/u/javanna)
#### Post date: [July 28, 2016, 1:44pm UTC](https://discuss.elastic.co/t/es-with-high-total-opened/56060/2 "2016-07-28T13:44:10Z")

</div>

Hi , the high number of http.total\_opened seems to indicate that you are not using persistent connections. Weird that it happens on one node only. Are you maybe pointing to only that one node from one of the clients you are sending requests from? Our language clients (perl and js as well) ship with support for persistent connections so I would be surprised to hear that they are causing this to be honest.

---

<div class="post-metadata">

### Author: ![Ravi\_Shanker\_Reddy](https://avatars.discourse-cdn.com/v4/letter/r/a5b964/32.png) [@Ravi\_Shanker\_Reddy](https://discuss.elastic.co/u/Ravi_Shanker_Reddy)
#### Post date: [August 1, 2016, 11:00am UTC](https://discuss.elastic.co/t/es-with-high-total-opened/56060/3 "2016-08-01T11:00:49Z")

</div>

I am using nodeJS client to connect to my ES. In that node client I mentioned my two node IP to share the load. But why one of the ES node having mode total opened. Can you guide me how to use `persistent connections`

---

<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 5, 2017, 10:31pm UTC](https://discuss.elastic.co/t/es-with-high-total-opened/56060/4 "2017-07-05T22:31:16Z")

</div>


