• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

B9 IBGateway connection issue and memory leak

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    B9 IBGateway connection issue and memory leak

    After upgrading to NT8B9, I'm getting an issue each night with the IBGateway connection where it fails to re-establish the account data connection after the exchange resets around 10:30 MST.

    I get literally thousands of these message until I manually disconnect and re-connect the gateway:

    2016-02-28 22:30:34:005 (IB Gateway) IB.Adapter.OnError: id=-1 errorCode='Resubscribe2AccountData' errorMessage='API client has been unsubscribed from account data.'

    In one case where I didn't notice, NT ended up running out of memory and crashing. I've been monitoring the memory usage, and I do see a gradual and steady increase after this happens. Note, I did not see this behavior in prior beta releases.

    This is happening with the recommended IB Gateway version 954. But, after I first converted to B9 I was still running TWS 950.2 and I had the same issue.
    Attached Files

    #2
    I am unable to reproduce this when I disconnect from the internet > wait for a full disconnect message from IB Gateway > then reconnect to the internet.

    If you follow these steps are you able to reproduce the memory leak? Or does this only occur at the same time every day?
    Patrick G.NinjaTrader Customer Service

    Comment


      #3
      It generally happens around the same time every night. The scenario you describe where you disconnected the internet isn't really an issue from what I can tell.

      Where I have the problem is when the "ConnectionLost" status triggers and I assume the NT connection loss logic kicks in and NT is able to restore the connection within a few seconds. BUT... for some reason it is unable to restore the account data subscription. So I guess you could say it's partially connected or something like that.

      Anyway... as a workaround solution, I created a simple script to detect the ConnectionLost status and then force a full disconnect, wait a minute, then perform a new connect. Although this isn't ideal, it has solved my problem for now at least and I haven't had any memory issues since.

      Let me know if you need more information.

      Comment


        #4
        I am glad to hear you have found a work-around via programming. I am still unable to replicate this behavior, however, I will keep track of your report and if other users begin to experience similar memory crashes which I can reproduce we will revisit this.
        Patrick G.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by vevbarrq, Today, 12:11 AM
        0 responses
        1 view
        0 likes
        Last Post vevbarrq  
        Started by johnnybegoode, Yesterday, 10:16 PM
        0 responses
        3 views
        0 likes
        Last Post johnnybegoode  
        Started by reedstickets, Yesterday, 07:53 PM
        0 responses
        9 views
        0 likes
        Last Post reedstickets  
        Started by Atilla, Yesterday, 04:05 PM
        0 responses
        28 views
        0 likes
        Last Post Atilla
        by Atilla
         
        Started by Displacer, Yesterday, 02:57 PM
        2 responses
        17 views
        0 likes
        Last Post Displacer  
        Working...
        X