Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • Elektron /
  • EMA /
avatar image
Question by EvgeniyK · Mar 01, 2019 at 07:53 AM · ema c++exceptiontrcc

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

People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

4 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by jirapongse.phuriphanvichai · Mar 11, 2019 at 02:52 AM

@evgeniyk

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.


buffer.png (10.4 KiB)
premium.png (27.8 KiB)
Comment

People who like this

0 Show 1 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
EvgeniyK · Mar 11, 2019 at 03:17 PM 0
Share

@jirapongse.phuriphanvichai

Thank you for complete explanation. Testing with increased TunnelStreamRequest.guaranteeOutputBuffers showed no issues.

avatar image
Answer by EvgeniyK · Mar 07, 2019 at 06:29 AM

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).

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
REFINITIV
Answer by jirapongse.phuriphanvichai · Mar 07, 2019 at 10:51 PM

@evgeniyk

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);
Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
Answer by EvgeniyK · Mar 08, 2019 at 10:18 AM

@jirapongse.phuriphanvichai

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)?

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
8 People are following this question.

Related Questions

EMA Developer's Guide, Where Do I find it?

EMA TRCC C++ - Error Text Initialization timed out.

EMA TRCC disconnect handling

Exception in Access/Impl/Thread.cpp

In com.thomsonreuters.ema.examples.training.consumer.series100.example130__MarketPrice__UserDisp - consumer.java class

  • Feedback
  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Careers
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Calais
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRIT
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • World-Check Data File
  • Explore
  • Tags
  • Questions
  • Badges