This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I am working on a large C/C++ project and using netbeans for it. Every now and then netbeans fires up parser and goes totally nonresponsive for more than 10 minutes or so. It utilizes more than 100% CPU on a Ubuntu machine with 16 cores and cloggs up all the 8 Gig memory. Unbelievably bad performance, I am having tough time and seriously thinking of switching IDE. Attaching the threaddump, and pasting the output of top command. 21231 sumansah 18 -2 1333m 738m 18m S 668 3.1 2:16.95 java 19621 sumansah 18 -2 195m 17m 9968 S 4 0.1 0:02.74 gnome-terminal
The threaddump would be good. Also try using profile me feature and submit CPU snapshot. Thanks http://wiki.netbeans.org/FitnessViaPartnership Reassigning to cnd
How large is your project? (number of source/header files) Seems you have forgot to attach mentioned thread dump. Can you try with fresh userdir and without importing settings from prev NB? About trying utilizing 6 cores from your 16 - you have max 1600% CPU :-) You can restrict usage of cores with startup parameter -J-Dcnd.modelimpl.parser.threads=2 Btw, why do you think about eating 8Gb. in your output top shows 1Gb used by NB
Can you try Tools->Options->C++->Highlighting and uncheck "Reparse of file change" Thanks, Vladimir
Created attachment 93066 [details] threaddump errr, I actually added the thread dump during bug filing also. For some reason, it was not uploaded may be. I am attaching it again...
>How large is your project? (number of source/header files) I am afraid I can't divulge that information. Its quite a big project regarding the software of a large equipment manufacturer. >Seems you have forgot to attach mentioned thread dump. sorry about that. I did browsed the path of the threaddump, but for some reason it wasn't attached. I have attached it again. >Can you try with fresh userdir and without importing settings from prev NB? I have created fresh userdir and checked out the code from svn several times, with no improvement of performance. >About trying utilizing 6 cores from your 16 - you have max 1600% CPU :-) really, that good. But still the performance of netbeans is horrible, and I often have to just sit idle for 10 mins waiting for netbeans to stop parsing. >Can you try Tools->Options->C++->Highlighting and uncheck "Reparse of file >change" I actually tried that yesterday, and it seems to somewhat improve the situation a little bit, not in a drastic way though. >Btw, why do you think about eating 8Gb. in your output top shows 1Gb used by NB probably the instance when I took the dump, it was 1 GB, but it also happened that the whole machine crashed due to "out of memory" problem, and all there running was a couple instances of netbeans from a couple of users. And by a couple, I literally mean a couple, not a dozen or so.
We have fixed some performance and memory issues in 6.9 Can you evaluate daily build, please? http://bits.netbeans.org/download/trunk/nightly/latest/ + use -J-Dcnd.modelimpl.parser.threads=4 to reduce number of parser threads
editor has some problems now => use -J-Dorg.netbeans.editor.linewrap=false to disable instability
(In reply to comment #6) > We have fixed some performance and memory issues in 6.9 > Can you evaluate daily build, please? > http://bits.netbeans.org/download/trunk/nightly/latest/ > > + use -J-Dcnd.modelimpl.parser.threads=4 to reduce number of parser threads I have used the nightly build for several weeks and the performance was not good at all. The indexing seems to kick up whenever it detects some activity in the editor (result was, there wasn't any parsing when I was not doing anything, and it started parsing whenever I tried to do some coding, completely stopping me from doing anything). I tried to bear with it for some period of time, and then gave up. Switched to eclipse. The performance is splendid, indexes very intelligently, without any blocking effect on the IDE. Happy with it. Sorry guys, but just couldn't continue with Netbeans when I had to wait for it to respond 50% of my work time. best wishes...
Hi, Thanks for help anyway. What were the "indexing" messages? Is it "Checking for external changes" or "Parsing project" or "Scanning project"? Thanks, Vladimir.
(In reply to comment #9) > Hi, > Thanks for help anyway. > What were the "indexing" messages? > Is it "Checking for external changes" or "Parsing project" or "Scanning > project"? > > Thanks, > Vladimir. Hi, The indexing message was "Parsing project". Best, Sumanta