Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Memory Leak is obvious and can be fixed

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

    Memory Leak is obvious and can be fixed

    Just use Memory Profiler and you will see it. Steps to reproduce:
    1. Run NinjaTrader.
    2. Take shapshot #1.
    3. Open the any Chart with 1 bar only.
    4. Close the chart.
    5. Waite ~ 15 minutes.
    6. Force Garbage Collection.
    7. Take snapshot #2
    8. Look at "new" created objects.

    The opinion of your techical support is wrong:

    >Also: .NET 2.0 is a garbage collection system, meaning although NT properly release >memory, you will not see an immediate decrease of memory footprint on task manager, >since the .NET runtime could decide to keep this freed memory under its management. >There is no way an application could control that.

    Application CAN control that!
    IF your developers can't do it TNEN hire me (I will do it at least for chart objects).

    #2
    Statement below stands:
    >> .NET 2.0 is a garbage collection system, meaning although NT properly release memory, you will not see an immediate decrease of memory footprint on task manager, since the .NET runtime could decide to keep this freed memory under its management

    That's how garbage collection system works. Please consult MS docs for details.

    However, we isolated a couple of resource leaks in NT6.5 which will fixed with NT7.

    Comment


      #3
      If I run a strategy overnight, my computer runs very slow the next morning until NT is restarted.

      Is anyone using a memory manager like RAM Boost it keep NT from slowing down?

      RJay
      RJay
      NinjaTrader Ecosystem Vendor - Innovative Trading Solutions

      Comment


        #4
        Garbage collection does *not* imply no memory leaks. It is still possible, particularly with event based programming, to create an application that will leak memory even when it is managed (i.e., garbage is collected periodically).

        Is it ever possible in a managed system to leak memory when you make sure that all handles, things that implement IDispose are disposed? Would there be cases where some variables are left out?

        Comment


          #5
          [That's how garbage collection system works. Please consult MS docs for details.]

          I can see in profiler how garbage collection system works and it works fine.
          But also I can see that the program has something that isn't being disposed of properly and something is blocking the GC from disposing of it.

          [However, we isolated a couple of resource leaks in NT6.5 which will fixed with NT7.]

          Finally you are implicitly agreed that it is the defect. And what is the priority of this defect?
          Do you know that just one not disposed reference can keep all ChartConrol’s data from disposing it by GC.
          That’s what we have in NinjaTrader now. And the Profiler proves that.
          Do you mean that you aren’t going to fix this problem in v.6.5?

          Comment


            #6
            Will addressed the memory leaks we isolated for NT7.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by NullPointStrategies, Yesterday, 05:17 AM
            0 responses
            62 views
            0 likes
            Last Post NullPointStrategies  
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            134 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            75 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            45 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            50 views
            0 likes
            Last Post TheRealMorford  
            Working...
            X