grpc / grpc-java

The Java gRPC implementation. HTTP/2 based RPC
https://grpc.io/docs/languages/java/
Apache License 2.0
11.26k stars 3.79k forks source link

How to close the netty thread named grpc-default-worker-ELG? #11355

Open litst opened 3 days ago

litst commented 3 days ago

We are using grpc client in hive which is a long running process, but seems there are many threads named grpc-default-worker-ELG won't close even if the task is done. How can I close these?

kannanjgithub commented 3 days ago

When you create NettyClientTransport what values are you passing for keepAliveTimeInNanos, keepAliveTimeoutInNanos and keepAliveWithoutCalls, especially the last one.

litst commented 2 days ago

When you create NettyClientTransport what values are you passing for keepAliveTimeInNanos, keepAliveTimeoutInNanos and keepAliveWithoutCalls, especially the last one.

keepAliveWithoutCalls is false, also there are many file descriptor about eventfd, timerfd won't be released.