티스토리 뷰

netty를 사용하는 모듈과 충돌이 발생하는 경우이다. 


Elasticsearch client 초기화 시점을 앞당기거나 system property es.set.netty.runtime.available.processors 를 false로 세팅해서 해결한다. 

java.lang.IllegalStateException: availableProcessors is already set to [8], rejecting [8]

at io.netty.util.NettyRuntime$AvailableProcessorsHolder.setAvailableProcessors(NettyRuntime.java:51)

at io.netty.util.NettyRuntime.setAvailableProcessors(NettyRuntime.java:87)

at org.elasticsearch.transport.netty4.Netty4Utils.setAvailableProcessors(Netty4Utils.java:87)

at org.elasticsearch.transport.netty4.Netty4Transport.<init>(Netty4Transport.java:139)

at org.elasticsearch.transport.Netty4Plugin.lambda$getTransports$0(Netty4Plugin.java:93)

at org.elasticsearch.client.transport.TransportClient.buildTemplate(TransportClient.java:174)

at org.elasticsearch.client.transport.TransportClient.<init>(TransportClient.java:265)

at org.elasticsearch.transport.client.PreBuiltTransportClient.<init>(PreBuiltTransportClient.java:130)

at org.elasticsearch.transport.client.PreBuiltTransportClient.<init>(PreBuiltTransportClient.java:116)

at org.elasticsearch.transport.client.PreBuiltTransportClient.<init>(PreBuiltTransportClient.java:106)

at kr.bluewhale.elastic.broker.ElasticQueryThread.run(ElasticQueryThread.java:40)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

at java.lang.Thread.run(Thread.java:745)



System.setProperty("es.set.netty.runtime.available.processors", "false");


댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/12   »
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31
글 보관함