EMA TRCC OmmMemoryExhaustionException
Hi,
I'm testing my C++ EMA TRCC application on Linux and periodically I get the following exception while posting (via OmmConsumer::submit) messages (PostMsg):
loggerMsg
TimeStamp: 2019/03/01 04:19:50.731
ClientName: Consumer_1_1
Severity: Error
Text: Internal Error. Failed to allocate RsslTunnelStreamBuffer in TunnelItem::submitSubItemMsg( RsslMsg* ).
loggerMsgEnd
I use UserDispatch model and I suspect that due to periodical data rate spikes on my side I submit too many messages before OmmConsumer::dispatch call. I tried to increase (from 5000 to 10000) GuaranteedOutputBuffers configuration parameter but it didn't help. Is there any way to handle such memory issues?
UPDATE:
If solicitAsck mode is used for posting it seems that API doesn't free internal buffers (for messages) until it receive appropriate ACK from server (or timeout). If the server is slow in sending ACKs or Internet connection is used (network delays are possible) this might cause the growth of already sent messages waiting for ACK.
Thanks
Best Answer
-
When calling the submit method of the tunnel stream, this method gets a buffer from TunnelStreamRequest.guaranteeOutputBuffers, encodes the data to it, and puts the encoded buffer to an internal queue waiting to be dispatched by a dispatcher thread. The application needs to dispatch in order to send data to the network.
The dispatcher thread gets the encoded buffer from the queue, encodes it to the buffer from Channel.guaranteeOutputBuffers and then sends it to the network.
In summary, TunnelStreamRequest.guaranteeOutputBuffers is used by the ETA Value-Added Reactor, and the buffers are put into the internal queue. Channel.guaranteeOutputBuffers is used by the ETA library to send data to the network.
To get more information, we need to review the code or contact the development team for internal implementation. Therefore, please submit a case to the API support team via Contact Premium Support .
If you don't see this option, please contact your colleague who has RDC subscription to submit a case on your behalf.
0
Answers
-
I tried to workaround this issue by reducing (from default 15000ms down to 5ms) PostAckTimeout configuration parameter. I was expecting that API will generate NACK and additionally it will remove cached message that wait for aknowlegment from the server, but surprisingly the change of PostAckTimeout did do anything. It simply doesn't work, I didnt get any NACKs even with PostAckTimeout=5ms (which must be guaranteed NACKs for almost all posted messages on Internet connection).
0 -
For a tunnel stream, you also need to set guaranteedOutputBuffers of TunnelStreamRequest.
TunnelStreamRequest tsr;
tsr.classOfService(cos).domainType(MMT_SYSTEM).name("Seikan").serviceName("DDS_TRCE");
tsr.guaranteedOutputBuffers(5000);0 -
Thank you for response. I didn't notice that TunnelStreamRequest has such setting and I'll let you know if it help after testing. Could you please explain how these parameters are correlated (global GuaranteedOutputBuffers and individual per Tunnel stream GuaranteedOutputBuffers)?
0 -
Thank you for complete explanation. Testing with increased TunnelStreamRequest.guaranteeOutputBuffers showed no issues.
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 684 Datastream
- 1.4K DSS
- 615 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 249 ETA
- 554 WebSocket API
- 37 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 275 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.9K Refinitiv Data Platform
- 643 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 26 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 192 TREP Infrastructure
- 228 TRKD
- 915 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 90 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛