Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-1525

JsonBuffer can exhaust memory

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor - P4 Minor - P4
    • None
    • 2.2
    • Json
    • None

    Description

      The JsonBuffer class, when wrapping a TextReader, will consume memory equal to the total number of characters consumed from the TextReader. This could cause problems in several scenarios:

      • A mongoimport-like scenario, where a single file contains many JSON documents and a single JsonReader is used to read them all
      • A really large JSON document (though in most situations you'd need space proportional to the size of the document anyway)

      Attachments

        Activity

          People

            Unassigned Unassigned
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: