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.

Bug 205603 - High CPU usage with no apperent reason
Summary: High CPU usage with no apperent reason
Status: RESOLVED DUPLICATE of bug 207991
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 7.0.1
Hardware: All All
: P3 normal with 3 votes (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-28 12:22 UTC by compojoom
Modified: 2012-04-20 11:51 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
a snapshot while high CPU usage (24.80 KB, application/octet-stream)
2011-11-28 12:23 UTC, compojoom
Details
profiling file during high cpu usage. Product Version: NetBeans IDE 7.1 (Build 201112071828) Java: 1.6.0_26; Java HotSpot(TM) 64-Bit Server VM 20.1-b02 System: Windows 7 version 6.1 running on amd64; Cp1252; fr_CH (nb) User directory: C:\Users\stef\.n (103.20 KB, application/octet-stream)
2012-01-13 14:15 UTC, zebulon303
Details
Profile during High CPU usage. (3.09 MB, application/octet-stream)
2012-01-18 17:58 UTC, parkinos
Details

Note You need to log in before you can comment on or make changes to this bug.
Description compojoom 2011-11-28 12:22:05 UTC
the javaw.exe process uses between 50 and 70% CPU. Sometimes it drops and the IDE behaves perfectly, but then suddenly it goes up again.

Product Version = NetBeans IDE 7.0.1 (Build 201107282000)
Operating System = Windows 7 version 6.1 running on intel64bit
Java; VM; Vendor = 1.6.0_26 / 1.7
Runtime = Java HotSpot(TM) 64-Bit Server VM 20.1-b02
Comment 1 compojoom 2011-11-28 12:23:39 UTC
Created attachment 113574 [details]
a snapshot while high CPU usage
Comment 2 compojoom 2011-11-28 12:25:40 UTC
The same thing happens with 7.1 beta
Comment 3 Tomas Mysik 2011-11-28 13:25:26 UTC
I see one (perhaps?) suspicious thing:

nu.validator.htmlparser.impl.CoalescingTreeBuilder.accumulateCharacters()	38996 ms (13,2%) for 63 invocations

Marku, can you have a look, please? Thanks.
Comment 4 zebulon303 2012-01-13 14:15:21 UTC
Created attachment 114875 [details]
profiling file during high cpu usage.
Product Version: NetBeans IDE 7.1 (Build 201112071828)
Java: 1.6.0_26; Java HotSpot(TM) 64-Bit Server VM 20.1-b02
System: Windows 7 version 6.1 running on amd64; Cp1252; fr_CH (nb)
User directory: C:\Users\stef\.n

More data to help. I was just editing a file (php) and saving
Comment 5 parkinos 2012-01-18 17:58:26 UTC
Created attachment 115051 [details]
Profile during High CPU usage.

Having a similar problem with HIGH CPU usage making the IDE unusable.

I was merely adding some code and formatting the existing code.  IDE was so slow it was taking about 20 seconds to delete a single newline character.

I should note that the project that I'm working on is quite large.

Product Version: NetBeans IDE 7.1 (Build 201112071828)
Java: 1.6.0_16; Java HotSpot(TM) Client VM 14.2-b01
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
Comment 6 Artwick 2012-02-02 16:36:00 UTC
I had the same problem.
Closing the Task-Window solved it.

see also: 
http://netbeans.org/bugzilla/show_bug.cgi?id=205603#c5
Comment 7 DePo 2012-02-22 07:47:22 UTC
On Windows 7 64-bit CPU usage can be reduced by running Netbeans in compatibility mode (XP SP3). Still high memory usage, but CPU is not so much as before.
Luck.
Comment 8 Marek Fukala 2012-04-20 11:51:10 UTC
>nu.validator.htmlparser.impl.CoalescingTreeBuilder.accumulateCharacters()   
>38996 ms (13,2%) for 63 invocations

This method is called very often during parsing/lexing so if there's no heap memory and GC runs heavily, then it may seem to consume all the time. 

The main reason is likely the lack of heap memory.

I believe it has been already fixed by the changes done to the issue 207991 - Large project hangs Netbeans 7.1 indefinitely.

*** This bug has been marked as a duplicate of bug 207991 ***