C# EMA Interactive Provider High memory consumption

Options
moez.rebai
moez.rebai Newcomer
edited July 29 in EMA

I m trying to build a Net core intercative provider using EMA, all works fine and i m able to respond to incoming requests, however, the process memory is nearly 1Gb after launching the application, I tried to reduce the :

ItemCountHint : 200

But memory is still high nearly 670Mb, without any request.

Well I tried to do some load tests with 5000 Rics, it works and all requests are processed, however, memory is almost 1350Mb, which is really high.

When profiling memory I can see

😥 650Mb in Gen2 which is maybe the necessary memory for EMA allocation for 5000 requests

😴 600Mb for non managed memory : cannot explain this

😔 We have 1M ItemInfo object instance ( a lot for what i need to use in my provider maybe maximum is 10000 Rics)

Would you please advice me if there's something to optimize or tell me if this is the normal baseline of EMA C#

Memory.png Capture.PNG

Answers