When running a server side app with 1000+ subscriptions, profiling from VisualVM shows that number of instances of some internal objects for eg com.reuters.rfa.internal.rwf.RwfTypedBuffer keep increasing (into millions) and don't get garbage collected for some reason. We're trying out a few scenarios with larger Java heap sizes to see if the issue persists but curious if anyone has seen this behavior? Version of JRFA is 8.0.0.L2.
This is normally due to your application logic not being fast enough.
What happens is that RFA has a background thread which reads messages from the network. It puts these messages into an internal queue where they sit until your application processes them (i.e your application calls the dispatch() method on your event queue). This internal queue is by default unbounded.
In other words: you are simply not calling dispatch() often enough and events are piling up. This will continue until you get an OutOfMemory error. Increasing the heap will be treating the symptom, not the cause.
Hope you can use the above.