Bug 144891 - kdevvelop using excessive memory when importing PHP 5.2.1 as a standard C application with custom makefiles
Summary: kdevvelop using excessive memory when importing PHP 5.2.1 as a standard C ap...
Status: RESOLVED WORKSFORME
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: CPP (old) (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-30 21:26 UTC by Aaron Williams
Modified: 2008-05-26 09:11 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aaron Williams 2007-04-30 21:26:31 UTC
Version:           unknown (using KDE 3.5.6 "release 64.1" , openSUSE )
Compiler:          Target: x86_64-suse-linux
OS:                Linux (x86_64) release 2.6.18.8-0.1-default

When I attempted to import php 5.2.1 as an existing project with the project type Generic C Application (Custom Makefiles) Kdevelop consumes an excessive amount of memory. I saw it hit over 5GB of virtual memory while importing with 1.6GB resident then it dropped down to around 380MB after it finished.  My computer is a 3.2GHz Pentium 4 with 2GB of RAM.  The computer was quite sluggish and paging like crazy, with top showing wait consistently over 90%.

After I imported the project and the memory dropped back down, just opening the project import dialog caused the memory usage to shoot up to 2.7GB.

After I quit KDevelop and restarted it and re-opened the project memory usage is around 380MB.

For the most part this is the standard PHP with the PAM extension added, however configure, libtool, the Makefile and php_config.h were edited since the target is an embedded system requiring cross compilation.  I am not using KDevelop for building but only for editing, ctags and grep.

This is repeatable since I gave up the first time I tried importing and killed kdevelop partway through.  The second time I decided to let it grind away and it eventually finished.
Comment 1 Aaron Williams 2007-04-30 21:35:38 UTC
Sorry for the typo in the summary... Konqueror was duplicating characters while my system was paging like crazy.  Some additional info:

The php tree is mounted over NFS if that makes any difference.
Comment 2 Jens Dagerbo 2007-05-01 13:05:29 UTC
Please check what version you are running (Help->About).
Comment 3 Aaron Williams 2007-05-01 22:29:22 UTC
I am using kdevelop 3.3.5 running in KDE 3.5.6 (release 64.1 openSUSE).
Comment 4 Jens Dagerbo 2007-05-02 02:40:57 UTC
Then please try the latest release (3.4.0). It could be that the problem you're seeing is gone. Some of those cases were fixed, others not.
Comment 5 Amilcar do Carmo Lucas 2007-05-02 11:19:45 UTC
Or even better, try KDevelop 3.4.0.2 it is available for ALL suse versions and architectures from our download page:
http://www.kdevelop.org/
Comment 6 Andreas Pakulat 2008-05-26 09:11:00 UTC
I can't reproduce this and the original reporter hasn't done any update since more than a year. Closing.