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

Extremely high memory consumption in Clang backend

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • 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)

    Description

      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).

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes