[Mono-list] mono process - high number of threads

Andres knocte at gmail.com
Wed Nov 23 17:08:24 UTC 2016


On Wednesday, November 23, 2016 11:04 PM, Rubén de Alba wrote:
> I'm testing a server process running with mono under heavy load.
>
> The server app handles the max number of threads that are available to
> handle client requests (32) and I can assure you that no new threads are
> created from our C# code.
>
> However, I see that the number of threads used by the mono process
> doesn't stop growing (from 15 to 241 after 2 hours of execution time)
>
> I use 'ps -o nlwp <pid>' to monitor the process threads.
>
> Could you explain me why this is happening?
>
> Is there any way to see if mono is launching new threads itself and why?
>
> Rubén.

There are many methods in .NET BCL which spawn ThreadPool threads, maybe 
you're using some of them.




More information about the Mono-list mailing list