So, I'm writing a little toy app (a single thread web server in c#) and I'm using the awesome "heap-buddy" tool to track heap usage... and this is what I see:

[rafael@salamandra Ophion.ZServer]$ heap-buddy /tmp/zserver.pf types fullname

Type # Total AvSz AvAge BT#
string 6462 563k 89.2 0.7 663
int 14731 172k 12.0 0.0 235
object[] 1043 68k 66.8 0.4 114
byte[] 1204 62k 53.5 0.1 98
char[] 107 51k 490.9 1.7 89
System.Text.StringBuilder 1294 30k 24.0 0.1 160

about 90% of the 563k of string allocation came from log4net.... that is just plain awefull for a webserver in which every ms of waisted servicing time counts. I'm going to pursue this further an post a better analysis of the problem later, but for right now, all I can say is LAME!.

rafael | | 27 November, 10:45pm

Leave a Comment







Comment XML feeds: RSS | Atom