-
Notifications
You must be signed in to change notification settings - Fork 142
Description
🐛 Memory Leak: LSEG .Net SDK objects not released after OmmConsumer uninitialization
Description
We are using Refinitiv .Net SDK in a service built on ASP.NET Core.
Following the examples provided, we create an OmmConsumer, subscribe to approximately 30,000 snapshot datapoints, and register a client to process incoming messages.
After all datapoints are received and processed, we uninitialize the consumer and all created objects were disposed. These objects are properly garbage collected and removed from memory.
However, a large number of internal objects from the LSEG.* namespaces remain in memory and are not garbage collected.
This process is repeated multiple times in response to incoming requests from an API endpoint. After each operation, the amount of memory occupied by LSEG.* objects increases significantly and is never freed, suggesting a potential memory leak within the SDK.
Steps to Reproduce
- Create an
OmmConsumerfollowing the SDK examples. - Subscribe to ~30,000 snapshot datapoints.
- Process all received messages.
- Uninitialize the consumer and dispose of all created objects.
- Monitor memory usage before and after each iteration.
Expected Behavior
All resources associated with OmmConsumer and related LSEG.* objects should be released after uninitialization, allowing memory to be reclaimed by the garbage collector.
Actual Behavior
Memory usage continues to grow after each operation.
LSEG.* objects remain in memory and are not collected by the GC, resulting in continuously increasing memory consumption.
Environment
"LSEG.Eta.Core" Version="3.4.0"
"LSEG.Eta.ValueAdd" Version="3.4.0"
"LSEG.Eta.Ansi" Version="3.4.0"
"LSEG.Eta.AnsiPage" Version="3.4.0"
"LSEG.Ema.Core" Version="3.4.0"
- SDK version: 3.4.0
- **.NET version: 9