Uploaded image for project: 'netconf'
  1. netconf
  2. NETCONF-88

Memory leak when mounting/unmounting devices

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • netconf
    • None
    • Operating System: All
      Platform: All

    • 4514

    Description

      When a device is mounted on NETCONF through RESTCONF, a bunch of memory is leaked. Initially it is about 0.9 MB but with each "mount" request the leak increases by about 8 KB. The "initial" leak caused by a first device mount depends on total mount operations executed and is not affected by device unmounts.

      Additionally, device unmounts also leak memory but they don't add anything to the amount leaked by each mount. The amount of memory leaked by a device unmount depends on the count of devices currently mounted: When only one device is present and it is deleted, the leaked memory is roughly 300 KB. For each 100 devices mounted at the time of the deletion unmount, the leak increases by roughly 800 KB.

      To reproduce the basic form of the leak use the attached script. It mounts and then unmounts a device and reports memory leaked so far and memory leaked by the last mount/unmount pair and whether any errors encountered. You can specify a repeat count on the commandline which defaults to 1.

      This bug is present in both, Lithium and Beryllium.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            rovarga Robert Varga
            jbehran@cisco.com Jozef Behran
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: