Profile Image
Jake Seo

Please advice why out server has many lettuce threads?

can you give me an advice about why out server has too many lettuce threads?

 

Report URL - https://fastthread.io/my-thread-report.jsp?p=c2hhcmVkLzIwMjIvMDMvMzEvLS10aHJlYWRfZHVtcF9wcm9ibGVtLnR4dC0tNS0zNi0x

  • toomanylettucethreads

  • outserver

Please Sign In or to post your comment or answer

Profile Image

Mahesh

Hello Jake,

 

These threads are an infrastructure resource that is expensive to create and remove so they are kept alive until the client resource is closed. The event executor is used for different jobs, such as Cluster topology refresh, and emission of metrics/event bus. A thread is not bound to a particular connection, but a connection binds to one EventLoop thread which means that one thread can be used for more than one connection.

 

You can reduce the number of threads either by setting a system property 

(-Dio.netty.eventLoopThreads=…)

or via

ClientResources.builder().ioThreadPoolSize(…).computationThreadPoolSize(…).build()

 

Got something else on mind? Post Your Question

Not the answer you're looking for? Browse other questions tagged
  • toomanylettucethreads

  • outserver