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.
Created attachment 92098 [details] OSX sample of Netbeans process After I use the PHP edition of Netbeans 6.8RC1 for a while, CPU usage suddenly shoots to 100% or higer, and the app becomes very slow (though it still responds to everything eventually). There's no single action I can pinpoint this behavior to.. I'm attaching a sample from the OSX activity monitor, figured it may help.
Could you please take threaddump while running into this? http://wiki.netbeans.org/GenerateThreadDump
Reassigning.
Yes, please, create _several_ thread dumps, reopen this issue and attach them. Thanks.
Hi, I'm reopening this bug as I am experiencing the same issues, but on Linux. I am working on a symfony project and am experiencing this bug. The UI grinds to a halt after 4 - 6 hrs of usage. It seems to me that it happens faster when I work with symfonys fluent interfaces (f.x. lime_test). Also, another indicator is that code completion stops working after a while.
As I already wrote earlier, please, attach _several_ thread dumps [1] after the IDE gets slow. Without this, there's nothing we can do because we don't know where the problem could be. Thanks. [1] http://wiki.netbeans.org/GenerateThreadDump
Created attachment 92256 [details] Threaddump of NB hang when creating a new YML file. Ok, sorry for not adding a threaddump. I'll add threaddumps each time NB hangs the next few days. One thing: My problem is on Linux. Is it ok to use the same bug or should I create a new one?
Created attachment 92259 [details] jstack thread dump 1
Created attachment 92260 [details] jstack thread dump 2
Created attachment 92261 [details] jstack thread dump 3
Created attachment 92262 [details] jstack thread dump 4
Created attachment 92263 [details] jstack thread dump 5
Here are my thread dumps. I can confirm that code completion stops working (it hangs on the text 'Scanning in progress...'. Also, the contents of the code navigator don't update when switching working files (though its title does). Hope this helps!
> One thing: My problem is on Linux. Is it ok to use the same bug or should I > create a new one? One issue is OK.
Could you please attach histogram [1] when the IDE is slow? Thanks a lot for your cooperation. [1] jmap -histo <pid>
Created attachment 92272 [details] jmap -histo <pid>
It looks like a memory leak... Would it be possible to get a heap dump [1]? A problem could be that the generated file will be likely too big (even compressed) to be able to attach it to this issue. Do you have a possibility to upload it somewhere (e.g. Dropbox?) and provide a link, please? Thanks a lot. [1] jmap -dump:format=b <pid>
Heh, that's quite the understatement ;) That command generated a file of about 550MB! I zipped it up (making it 83 MB) and put it here: http://files.sanderbouwhuis.com/netbeans/heapdump.zip
I would like to fix this issue for 68 patch 1. I would like to confirm that disabling introduce hint will help. So, please go to Tools->Options->Editor->Hints->PHP and then disable the hint "Introduce Hint". As a result the reported problem should disappear - please confirm, thank
Well, confirming something like that is hard since it shows up with unpredictable intervals, but I've been using Netbeans (6.8 final) for about 6 hours now without this problem, so I think it's a safe bet that hints are indeed causing this :) I'll update if the problem reappears, but for now it seems to be gone with this workaround..
Created attachment 92707 [details] new histogram with hints disabled OK scratch that, I just ran into the same problem again, even with hints disabled. I'm attaching a new histogram and I also created a new heap dump in the same folder as the previous one (37 MB, expands to 206 MB): http://files.sanderbouwhuis.com/netbeans/heapdump2.zip
*** Bug 180030 has been marked as a duplicate of this bug. ***
(In reply to comment #21) > *** Bug 180030 has been marked as a duplicate of this bug. *** Hi, I am experiencing very similar or almost the same problem. I tried disabling "introduce hints" but without any effect. I created a dump, which is attached. I also found how to invoke this error at any time. I can provide the PHP project which causes this error (it's a symfony project) and a short video (http://screencast.com/t/N2U3ZWE2) of how to get the error (project was just reopened and fresh netbeans). Please let me know what is needed more.
Created attachment 93713 [details] Thread dump
Frantisek, if you can to provide the project then please do it, thanks
*** Bug 180375 has been marked as a duplicate of this bug. ***
Created attachment 93964 [details] jstack of Netbeans after hanging I too have been experiencing 100% CPU utilization with Netbeans which results in the UI becoming unresponsive. This started with version 6.8 and has gotten noticeably worse with version 6.8.1. I can reproduce the probably consistently by attempting to rename a variable in a PHP function by pressing Control-R . On my machine (Ubuntu 9.10, 32-bit) this will always cause the issue to occur. I have attached a jstack. Also here is my system info: Product Version = NetBeans IDE 6.8 (Build 200912041610) (#ec9be6a6486c) Operating System = Linux version 2.6.31-19-generic running on i386 Java; VM; Vendor = 1.6.0_15; Java HotSpot(TM) Client VM 14.1-b02; Sun Microsystems Inc. Runtime = Java(TM) SE Runtime Environment 1.6.0_15-b03 Java Home = /usr/lib/jvm/java-6-sun-1.6.0.15/jre System Locale; Encoding = en_US (nb); UTF-8
Created attachment 93965 [details] Thread dump of Netbeans after hanging
Integrated into 'main-golden', will be available in build *201002090200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/a28716ade492 User: Radek Matous <rmatous@netbeans.org> Log: #178133 - 6.8RC1 (With PHP) becomes slow for no obvious reason
Fixed: http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/a28716ade492 User: Radek Matous <rmatous@netbeans.org> Log: #178133 - 6.8RC1 (With PHP) becomes slow for no obvious reason
@bsander@netbeans.org: could you, please, verify this fix? Just download new build from http://bertram.netbeans.org/hudson/job/PHP-build/ and check if you still face the same error. Then close as verified or reopen, please. Thanks a lot!!
Hi, I've tested the new build and the problem seems to be fixed and suggestions works fine right now.
Unfortunately, it's not. I downloaded Build #1363 (2010-02-10_09-04-24) this morning and imported my project. This issue has reappeared twice in the last 2 hours, so unfortunately this isn't fixed yet. I've uploaded a new heapdump to http://files.sanderbouwhuis.com/netbeans/heapdump-1363.tbz (~20MB). I did re-enable the "Introduce Hint" option by the way, it had been turned off since being proposed as a possible workaround in comment #18.
same problem for me, using netbeans with symfony - after 1-2 minutes netbeans uses 100% cpu and gets extremly slow. stacktrace attached
Created attachment 94806 [details] stacktrace after hanging (100% cpu usage) stacktrace after hanging (100% cpu usage) - editor can still be used, but extremly slow, process couldn't be closed with close button.
Please, _always_ provide info about your NB version (Help > About). Thanks.
netbeans version 6.8 (see also stacktrace line 1) thx
(In reply to comment #36) > netbeans version 6.8 In such case, feel free to try NB 6.9 Milestone 1 or our latest development version, it could (and should, we hope) be fixed now.
*** Bug 178271 has been marked as a duplicate of this bug. ***
http://hg.netbeans.org/main/rev/28309ea359d8 hopefully fixed, please try with the latest build and verify or reopen, please
Yeah, looks like this is fixed now!