SmppClient SubmitSm Memory Leak - Objects Not Released (v2.9.35)
Posted: Mon Nov 17, 2025 3:12 pm
Hi everyone,
I've identified a potential memory leak in the Inetlab.SMPP client library
when working with SubmitSm PDU creation.
Issue:
- Creating SubmitSm objects or using SMS.ForSubmit() does not properly release
memory after the objects are disposed or go out of scope.
- Memory profiler shows retained object references that prevent garbage collection.
- Problem is consistent across v2.9.35 and older versions I've tested.
Impact:
In high-message-throughput applications, this causes continuous memory growth
and eventual application slowdown or crash.
Workaround Needed:
Does anyone know if:
1. There's an explicit cleanup method beyond Dispose()?
2. This is a known issue with a planned fix?
3. An alternative method to create SubmitSm without memory retention?
Any help or similar experiences welcome. Happy to share profiler snapshots if needed.
I've identified a potential memory leak in the Inetlab.SMPP client library
when working with SubmitSm PDU creation.
Issue:
- Creating SubmitSm objects or using SMS.ForSubmit() does not properly release
memory after the objects are disposed or go out of scope.
- Memory profiler shows retained object references that prevent garbage collection.
- Problem is consistent across v2.9.35 and older versions I've tested.
Impact:
In high-message-throughput applications, this causes continuous memory growth
and eventual application slowdown or crash.
Workaround Needed:
Does anyone know if:
1. There's an explicit cleanup method beyond Dispose()?
2. This is a known issue with a planned fix?
3. An alternative method to create SubmitSm without memory retention?
Any help or similar experiences welcome. Happy to share profiler snapshots if needed.