title: CPU Usage gradually increases in dotnet core webservice
body: <p>I have a .net Core web service which seems to slowly increase its cpu usage.
  meaning at the first day it won't go past 10%, the second day it can go up to 20% and so on.</p>
  
  <p>Using the <code>TOP</code> command in linux, all my webservices seems to sometime be shown there (probably when a request is made) and afterward disappear.
  This specific process after running for a while just stays there constantly consuming cpu even when no request has been made.</p>
  
  <p>the API still working fine, it seems like there are some threads that just keeps hanging and consuming cpu. last time I checked I had 5 threads that consumed 3-4% cpu and didn't die for some reason.
  My guess is that in some specific scenario a thread just stays alive consuming cpu.</p>
  
  <p>The app runs on ubuntu machine, my first step was trying to create a dump file with ProcDump so I can analyze those threads and maybe find where they are hanging.
  ProcDump generates a huge 21gb file, which trying to analyze with lldb throws out of memory exception. even tried transferring it to a windows machine to debug with windbg , no help there as it couldn't open the file.</p>
  
  <p>As there is no specific exception or anything I can't really share any piece of code as I have no idea where the issue is... just kind a hoping for some suggestion that might help me get to a solution or at least understand where the problem is.</p>
  
  <p>Thanks a lot for reading, cheers</p>