Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • TREP APIs /
  • RFA /
avatar image
Question by wajdi.benslimane · Jan 22, 2019 at 04:13 AM · RFAJtrep rfaeventqueuesynchronization

How to perform many subscription to a session, synchronously?

Hello,

I am migrating my application from RFA 7.0.0 to RFA 7.6.1.

But I am facing a problem with the eventQueue : its size is getting bigger and bigger until I get OutOfMemoryException. It is strange because with RFA 7.0.0 ( and JDK5), we did not have this issue.

In the examples of RFA, I found this MDSubscribeSyncDemo example. But this one is performing a snapshot subscription, which is not what I need. Does someone has an idea How to perform many subscription to a session, synchronously?

Did anyone faced this OutOfMemory exception caused by the eventQueue?

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 umer.nalla · Jan 22, 2019 at 07:10 AM

Hi @wajdi.benslimane

In terms of the example you mention, the command line parameter -itemName can take a comma separated list of RICs. The code then iterates through the list and requests each item synchronously.

The subscribeSync method is a blocking method which will not return until an image or close status event is received and is only intended for snapshot subscriptions.

If you want to make streaming subscriptions then you can use the asynchronous technique as demonstrated in the similar MDSubDemo example.

However, please note that the MarketData interface is legacy and if you are planning to rewrite applications then you should use the newer OMM based interfaces and even consider rewriting your code using the Java Elektron Message API (EMA) which is part of the Elektron SDK. EMA is an ease of use layer which is typically much easier to learn, develop and maintain - and will also continue to benefit from enhancements in the future.

With regards your OutOfMemory issue I recommend you open a ticket with our support team who can help perform any required in depth diagnostic.

Comment
wajdi.benslimane

People who like this

1 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 wajdi.benslimane · Jan 22, 2019 at 09:00 AM

Hi @Umer Nalla

Thank you for your answer.

For now, we are not planning to rewrite the application. We are migrating from FRA 7.0.0 to RFA 7.6.1 and we suppose that this will be enough to connect to new TREP3 servers.

Do you think it is enough?

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 umer.nalla · Jan 22, 2019 at 11:06 AM

Hi @wajdi.benslimane

As long your TREP 3.0 servers are configured to support legacy data formats, then this should suffice. Your Market Data team should be able to confirm.

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 Gurpreet · Jan 22, 2019 at 11:29 AM

@wajdi.benslimane in addition to excellent suggestions provided above, the underlying reason for out of memory, is most likely that your consumer is not processing the new events fast enough. Try to optimize the event dispatch loop (processEvent).

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 >
10 People are following this question.

Related Questions

Does a completion event close the EventQueue supplied or terminates the consumer, as it were?

IndexOutOfBoundsException publishing a large RFA SymbolList

Different response for item not available

Issue using service groups to return realtime or delayed data depending on user access

Question regarding Rest services

  • 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