New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with NettyRuntime$AvailableProcessorsHolder: number of available processors #6956
Comments
This is not a Netty problem. You either need to ensure in your application that the Elasticsearch client is initialized first, or set the system property |
@jasontedor |
Ensures that the ES client does not try to set the number of processors when the client initializes. it could be already set at inside the same JVM which raises an exception. Although this setting is just an upper limit to prevent too many threads on machines with lot of cores (>32), this is not relevant for our tests here. netty/netty#6956
Ensures that the ES client does not try to set the number of processors when the client initializes. it could be already set at inside the same JVM which raises an exception. Although this setting is just an upper limit to prevent too many threads on machines with lot of cores (>32), this is not relevant for our tests here. netty/netty#6956
Ensures that the ES client does not try to set the number of processors when the client initializes. it could be already set at inside the same JVM which raises an exception. Although this setting is just an upper limit to prevent too many threads on machines with lot of cores (>32), this is not relevant for our tests here. netty/netty#6956
I am getting this exception with Elasticsearch java Transport client v. 6.2.4 if I don't set the system property: |
Still getting this exception with Elasticsearch 6.4.2 as well. Setting the system property like @porunov mentioned above fixes the issue -- however, this is indeed a hack that could be avoid by checking for existing value before setting the # of processors in the transport client's initialization. |
spring-boot-starter-data-redis&spring-boot-starter-data-elasticsearch still getting this problem now. And setting |
@jasontedor any idea ? |
It's just a hack, but I didn't find any elegant solutions |
Actual behavior
Exception is thrown when both Redis/lettuce & Elasticsearch clients try to set number of available processors on netty.
Stacktrace
Netty version
4.1.12.Final
JVM version (e.g.
java -version
)java version "1.8.0_102"
Java(TM) SE Runtime Environment (build 1.8.0_102-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.102-b14, mixed mode)
OS version (e.g.
uname -a
)Darwin Kernel Version 16.4.0
The text was updated successfully, but these errors were encountered: