[Mono-dev] Wapi handle leaks problems

Hubert FONGARNAND informatique.internet at fiducial.fr
Wed Feb 20 03:51:33 EST 2008


   Threads WAPI handle leaks has always caused problems with ASP.NET and
MONO. In the past, there has been many bugs related to this problem...
Now, we use mono to power our intranet (more than 4000 users...).

I'm monitoring the number of wapi handles using mono --wapi=hps | wc -l

During the day, the number of WAPI handles keeps stable. It seems that
the GC collect them correctly... 
but during the night when our intranet is inactive the number of WAPI
handles grows... 
and sometimes reach the limit of 4096... And crashes the

Two question :
-> why the number of WAPI handles grows... when there's no activity on
the site (if the ASP.NET application has been very busy during the
day... it will grows faster during the night) ?

-> don't you thing that a 4096 limit for WAPI handles is too small for
big production servers? (on windows the number of handles is often

Thanks for helping me fixing this issue


I've a workaround: I use my monitoring system to send a request (that do
a GC.Collect()) on each ASP.NET apps every 5 minutes

Some graphs (without the 5 minutes ping)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20080220/8c516a5a/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: chart.php.png
Type: image/png
Size: 17368 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20080220/8c516a5a/attachment-0001.png 

More information about the Mono-devel-list mailing list