CLR consumes too much memory RRS feed

  • Вопрос

  • Hi,

    I've written C# application that parses and loads records from file to B-tree, allocated in memory.

    When I load file (size 32MB on HDD) into this structure, I get more than 8 GB of RAM used by this process.

    Number of B-tree nodes: ~ 10 Million nodes

    In realization of B-Tree I used (dotnet) arrays. No "overhead-allocation" inside all arrays used.

    But memory increases dramatically ((((((.


    It seems to me that GC.Collect() will help me.

    But is it the only solution????


    Thanks in advance.

    • Перемещено Tagore Bandlamudi 3 октября 2010 г. 0:54 MSDN Forums consolidation (От:Форум по .NET Framework)
    14 декабря 2009 г. 15:58