Unable to get rid of garbage

I'm trying to download loads of snapshots, but after that's done I can't seem to clean up my apps memory.

When looking into this with a memory analyzer, I see that all references to 'com.reuters.rfa.internal.session.omm.OMMSubReqMsg' are kept in memory.

Can this be because of the internal watchlist? And if so, is there any way to prevent subscriptions from going into this watchlist, or limit the size of it?

Best Answer

  • Dear @Irmo,

    Unfortunately, I haven't experienced this problem using the scenario given yet (20000 items subscription). I tried to replicate the problem with RFA Java version 7.6.0.E9 and used JavaVisualVM as the tool.

    Please see the picture attached:

    image

    Referring to the test result, the interesting object should be com.reuters.rfa.internal.session.omm.OMMSubReqMsgData rather than com.reuters.rfa.internal.session.omm.OMMSubReqMsg object.

    Here there are my additional questions:

    - What's the RFA version using when you encountered this problem?

    - Can you replicate this problem using a newer version of RFA Java such as 8.0.1.E3?

    - Do you have a heapdump result that reflects this problem?