title: Armeria Thread Leak
body: <p>We are using armeria at work. We recently launched a new service into production and are finding that there is a thread leak somewhere. I am trying to identify the source. It looks like every time we make a call to any grpc endpoint new threads are launched which are not stopping / getting cleaned up. I tried to reproduce this locally and I am seeing this too. Although I have a feeling what I am seeing locally might be different to what we are seeing in production.
  When I hit an endpoint locally I can see it launch a new thread which just stays like below -
  armeria-eventloop-nio is the thread name. How come there is a new event loop thread created for every request made? I feel that we are doing something right. Could you help us by pointing us in the right direction please?</p>
  <p>[![Armeria Threads for my service running locally][1]][1]</p>
  <p>I downloaded the <a href="https://github.com/line/armeria-examples/tree/master/grpc" rel="nofollow noreferrer">grpc armeria example</a> and when I run that I see the same thing happening
  [![Armeria threads for the grpc example][2]][2]</p>
  <p>How come there is a new thread created for every request that doesn't get cleared up.
  [1]: <a href="https://i.stack.imgur.com/kf6EB.png" rel="nofollow noreferrer">https://i.stack.imgur.com/kf6EB.png</a>
  [2]: <a href="https://i.stack.imgur.com/D2KHN.jpg" rel="nofollow noreferrer">https://i.stack.imgur.com/D2KHN.jpg</a></p>