Post

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.

Today, I added two test cases in the code base, and then use JetBrains dotMemory Unit to execute it following this guide.

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.

© Lex Li. All rights reserved. The code included is licensed under CC BY 4.0 unless otherwise noted.
Advertisement

© - Lex Li. All rights reserved.

Using the Chirpy theme for Jekyll.

Last updated on April 19, 2024