Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-19543

Extremely high memory consumption in Clang backend

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • Qt Creator 4.9.0-beta1
    • Qt Creator 4.5.1, Qt Creator 4.8.0
    • C/C++/Obj-C++ Support
    • None
    • Windows 7
    • f6b8302efdcf62677fbf35873ac8b42d485868b6 (qt-creator/qt-creator/master)

      The Clang code model consumes much memory.

      Opening many source files one after the other brings memory consumption to enormous levels. In the attached screenshot you can see it has reached 12.6GB!

      All I did was to open the Include Hierarchy of a common header, then I opened each file and if it did not use the included class, I deleted the include line. After about 30-40 files the machine started swapping endlessly and became impossible to use (I have 16GB RAM).

        1. clang-leak.png
          72 kB
          Orgad Shaneh
        2. clangbackend-memory.tar.gz
          0.3 kB
          Aaron Barany
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            kosjar Nikolai Kosjar
            orgads Orgad Shaneh
            Votes:
            5 Vote for this issue
            Watchers:
            14 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes