Bug 418219 - Parsing entire project eats tons of memory
Summary: Parsing entire project eats tons of memory
Status: REPORTED
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: CPP (Clang-based) (other bugs)
Version First Reported In: git master
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-26 13:20 UTC by Maciej Cencora
Modified: 2020-02-26 13:20 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maciej Cencora 2020-02-26 13:20:49 UTC
SUMMARY
During parsing of entire medium-sized projects (~8K source and header files) KDevelop process increases its RSS memory usage from ~300MBs to ~10GBs.

STEPS TO REPRODUCE
1. Open not yet parsed project
3. Watch memory usage in "System Monitor"

OBSERVED RESULT
Memory usage constantly increases during background parsing of every TU. Memory is freed only after ~1 minute after the background parsing of whole project is finished.

EXPECTED RESULT
Memory used during background parsing of given TU should be released almost immediately after parsing of given TU is done, not after parsing of whole project is finished.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Ubuntu 18.04
(available in About System)
KDE Plasma Version: 5.12.9
KDE Frameworks Version: 5.44.0
Qt Version: 5.9.5

ADDITIONAL INFORMATION