Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
Qt Creator 4.6.1
-
None
-
Linux, clang 5.0.1
Description
Clangbackend uses a lot of memory. This was already reported and some issues where closed because of an fix / improvement in the memory usage.
I noticed that the memory usage is related with the amount of opened files by clangbackend. After saving a file in QtCreator multiple times (due to editing), almost all header files remain allocated multiple times and the memory usage increases quickly to several gigabytes. The project itself is relatively small but it uses several libraries / header files.
Files opened by clangbackend at QtCreator startup after waiting for clangbackend to complete its task. Used memory around 0.5G
Files opened by clangbackend after working some minutes (saving often with Ctrl+S). Used memory 1.5G
Here the single headers are loaded (mapped) 13 times (over 3 GB):
Attachments
Issue Links
- relates to
-
QTCREATORBUG-15449 Sometime I cannot save an header file with clang code model
- Closed