# Questions about ES Performance optimization, can anyone help me?

**URL:** <https://discuss.elastic.co/t/questions-about-es-performance-optimization-can-anyone-help-me/94312>\
**Category:** Elasticsearch\
**Created:** [July 24, 2017, 10:59am UTC](https://discuss.elastic.co/t/questions-about-es-performance-optimization-can-anyone-help-me/94312 "2017-07-24T10:59:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![xiaodong.hu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/xiaodong.hu/32/20370_2.png) [@xiaodong.hu](https://discuss.elastic.co/u/xiaodong.hu)\
**Post date:** [July 24, 2017, 10:59am UTC](https://discuss.elastic.co/t/questions-about-es-performance-optimization-can-anyone-help-me/94312/1 "2017-07-24T10:59:59Z")

</div>

Hello, I'm testing indexing performance about es.

under these conditions :

1. ES 5.4.0 , a single node cluster.

2. -Xmx17179869184 -XX:MaxDirectMemorySize=17179869184

3. use \_bulk api, 500docs per request.

4. 20 clients of jmeter.

5. path.data:  
/data2/zdh/elasticsearch/data,/data3/zdh/elasticsearch/data,/data4/zdh/elasticsearch/data,/data5/zdh/elasticsearch/data,/data6/zdh/elasticsearch/data,/data7/zdh/elasticsearch/data,/data8/zdh/elasticsearch/data,/data9/zdh/elasticsearch/data,/data10/zdh/elasticsearch/data,/data11/zdh/elasticsearch/data

6. index named test with 12 shards.

7. disk infos.  
 ![](https://us1.discourse-cdn.com/elastic/original/3X/7/5/7574c39e33237e7cf6244506652d670efb433889.png)

8. memory info  
 ![](https://us1.discourse-cdn.com/elastic/original/3X/4/9/49b1f5b33d458cd950d91a1026c28348cbf75c18.png)

9. cpu about 48 processors, top info:  
 ![](https://us1.discourse-cdn.com/elastic/original/3X/c/a/ca1a8b997bffdadc0b612acb20c617f34d02d6a0.png)

**results:**  
I use Jconsole to watch es, and I found lots of threads blocked at TranslogWriter.add()

 ![](https://us1.discourse-cdn.com/elastic/original/3X/0/0/00234085e45136c3678defef545569a8d80a81d6.png)

and I found the memory used by off-heap is only 1G:

 ![](https://us1.discourse-cdn.com/elastic/original/3X/0/6/065e4a6d1deb2f2ff27983933909b44dfe175d58.png)

**Is that OK?**

and the IO:

 ![](https://us1.discourse-cdn.com/elastic/original/3X/4/8/485b04ef95e6206304c1f70ef2f388e98dd0d597.png)  
at one moment , just one or two hard disk are busy, the others are idle. I do't know why.

thread pool about bulk:

> "thread\_pool" : {  
> "bulk" : {  
> "threads" : 32,  
> "queue" : 88,  
> "active" : 32,  
> "rejected" : 325,  
> "largest" : 32,  
> "completed" : 165387  
> }

memery usage of jvm: 37%

**I think the disk is not been fully used , Is there anything I can do to optimize the performance? thank you.**

---

<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:** [August 21, 2017, 11:00am UTC](https://discuss.elastic.co/t/questions-about-es-performance-optimization-can-anyone-help-me/94312/2 "2017-08-21T11:00:15Z")

</div>

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