Half-Blood Programmer

Analysis on a #SNMP Library Memory Leak Report with JetBrains dotMemory

A few days ago, I got a report on possible #SNMP memory leak. The report itself contains very useful information, so that I was confident on reproducing it,

https://sharpsnmplib.codeplex.com/workitem/7277

Today, I added two test cases in the code base,

https://github.com/lextm/sharpsnmplib/commit/914a74ab6041d5b8198b60325ddf4da9c0853c88

and then use JetBrains dotMemory Unit to execute it following this guide,

https://www.jetbrains.com/dotmemory/unit/help/Comparing_Snapshots0.html

JetBrains has made the steps very intuitive, so that I can compare the two snapshots easily to see which new objects were created when 100 requests were sent and ended with exceptions.

However, all new objects come from either JetBrains unit test executor, NUnit, or dotMemory Unit framework, and none comes from #SNMP Library.

I think I will play with dotMemory more in the future, as it turns out to be a very useful piece of software with unit testing integration.