# PreBuiltTransportClient :available processors value \[30\] did not match current value \[45\], IllegalStateException

**URL:** <https://discuss.elastic.co/t/prebuilttransportclient-available-processors-value-30-did-not-match-current-value-45-illegalstateexception/157036>\
**Category:** Elasticsearch\
**Created:** [November 16, 2018, 11:14am UTC](https://discuss.elastic.co/t/prebuilttransportclient-available-processors-value-30-did-not-match-current-value-45-illegalstateexception/157036 "2018-11-16T11:14:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![eramitsinha](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eramitsinha/32/35032_2.png) [@eramitsinha](https://discuss.elastic.co/u/eramitsinha)\
**Post date:** [November 16, 2018, 11:14am UTC](https://discuss.elastic.co/t/prebuilttransportclient-available-processors-value-30-did-not-match-current-value-45-illegalstateexception/157036/1 "2018-11-16T11:14:04Z")

</div>

Hi,

I am using ES 5.6.10 :

My ES Tcp Client component resides on multiple JVM, so multiple instances Of TranpsortClient send request to Elastic Search cluster.

**I am seeing following IllegalStateException:**  
[http-nio-31078-exec-20] PreBuiltTransportClient :available processors value [30] did not match current value [45]  
java.lang.IllegalStateException: available processors value [30] did not match current value [45]  
at org.elasticsearch.transport.netty4.Netty4Utils.setAvailableProcessors(Netty4Utils.java:96)  
at org.elasticsearch.transport.netty4.Netty4Transport.(Netty4Transport.java:140)  
at org.elasticsearch.xpack.security.transport.netty4.SecurityNetty4Transport.(SecurityNetty4Transport.java:72)

**I was referring:**

> [@Getting availableProcessors is already set to \[1\], rejecting \[1\] IllegalStateException exception](https://discuss.elastic.co/t/getting-availableprocessors-is-already-set-to-1-rejecting-1-illegalstateexception-exception/103082):
>
> Hi I am using transport client to connect to the elastic search cluster and getting this exception java.lang.RuntimeException: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.IllegalStateException: availableProcessors is already set to [1], rejecting [1] at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:821) at org.eclipse.jetty.ser…

Since I have multiple instances of Transport client and no other utilities which can invoke Netty, so should I set following:

es.set.netty.runtime.available.processors to false

Thanks,  
Amit

---

<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:** [December 14, 2018, 11:14am UTC](https://discuss.elastic.co/t/prebuilttransportclient-available-processors-value-30-did-not-match-current-value-45-illegalstateexception/157036/2 "2018-12-14T11:14:08Z")

</div>

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