EMA error after running for 2 hours (Error text SocketChannel.read returned -1 (end-of-stream))
I subscribed few hundreds RIC (stock + options) for MARKET_PRICE & MARKET_BY_PRICE.
Running fine and after an hour or 2, it stopped with following message from log.
Using EMA Java 1.2.1 on windows 7.
Oct 23, 2018 10:39:18 AM com.thomsonreuters.ema.access.ChannelCallbackClient reactorChannelEventCallback
WARNING: loggerMsg
ClientName: ChannelCallbackClient
Severity: Warning
Text: Received ChannelDownReconnecting event on channel Channel_2
RsslReactor @7744ad0d
RsslChannel @2bb02195
Error Id 0
Internal sysError 0
Error Location null
Error text SocketChannel.read returned -1 (end-of-stream)
loggerMsgEnd
Oct 23, 2018 10:39:23 AM com.thomsonreuters.ema.access.ChannelCallbackClient reactorChannelEventCallback
INFO: loggerMsg
ClientName: ChannelCallbackClient
Severity: Info
Text: Received ChannelUp event on channel Channel_1
Instance Name Consumer_2_1
Component Version ads3.2.2.L1.linux.tis.rrg 64-bit
loggerMsgEnd
Oct 23, 2018 10:39:38 AM com.thomsonreuters.ema.access.LoginCallbackClient rdmLoginMsgCallback
WARNING: loggerMsg
ClientName: LoginCallbackClient
Severity: Warning
Text: RDMLogin stream state was changed to suspect with status message
username <not set>
usernameType <not set>
State: Open/Suspect/None - text: ""
loggerMsgEnd
Best Answer
-
The “SocketChannel.read returned -1 (end-of-stream)”
indicates a failure condition, often that the connection is no longer
available. Typically, the disconnection is from the server side.Server log indicates that the disconnections were due to buffer overflow condition on server side. The Buffer Overflow condition generally occurs once
Consumer application cannot keep up with the amount of data that it received, so server needs to store data in its outbound buffer and disconnect the
Consumer client once the buffer exceeds limitation.To avoid this slow consumer condition, you should first minimize
the time for processing incoming data in the callback methods i.e.
onRefreshMsg(..) and onUpdateMsg(..). Avoid accessing to database and/or other
blocking calls which typically consume significant time. The application can
also create an separated thread for data processing. For example, once the
application processes incoming events in the callback methods, it decodes data
and put it to an internal queue. The new thread then get data from the queue
and process it.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 中文论坛