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 244034 - Stupidly high CPU usage in Netbeans 8.0
Summary: Stupidly high CPU usage in Netbeans 8.0
Status: CLOSED INCOMPLETE
Alias: None
Product: ide
Classification: Unclassified
Component: Performance (show other bugs)
Version: 8.0
Hardware: Macintosh Mac OS X
: P3 normal with 1 vote (vote)
Assignee: urostr
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-23 15:14 UTC by leewilson86
Modified: 2018-02-10 23:11 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot of high memory use (87.24 KB, image/png)
2014-04-23 15:14 UTC, leewilson86
Details
high cpu usage (505.82 KB, image/tiff)
2015-02-17 20:14 UTC, urostr
Details
netbeans profile (181.80 KB, application/octet-stream)
2015-02-17 20:15 UTC, urostr
Details
profiler snapshot (11.24 KB, application/octet-stream)
2015-02-17 20:18 UTC, urostr
Details
log restored from the time machine backup (154.49 KB, application/octet-stream)
2015-02-18 15:52 UTC, urostr
Details
NetBeans Profiler Data (27.50 KB, application/octet-stream)
2015-04-02 12:43 UTC, ITDev
Details
high CPU usage (30.42 KB, image/jpeg)
2017-11-01 06:16 UTC, suryaeko
Details

Note You need to log in before you can comment on or make changes to this bug.
Description leewilson86 2014-04-23 15:14:07 UTC
Created attachment 146914 [details]
Screenshot of high memory use

This is getting way beyond a joke now.

I have used Netbeans since version 6.* and there have been constant issues with high memory usage on Windows and on Mac.

Will you please just get it sorted.  You should know what it is which is causing this memory leak... or are you too lazy to actually do anything about it?

I am seriously considering changing IDEs now, please get it resolved.

A screenshot has been attached to show proof of high CPU usage.

Just so you know the specs of the machine which this is running on are:

iMac 27-inch mid 2011
OSX 10.9.2
Processor 2.7 GHz Intel Core i5
Memory 20 GB 1333 MHz DDR3

This also happens on my Macbook which is of a very similar spec.

Thanks
Comment 1 Ondrej Vrabec 2014-04-23 17:45:25 UTC
(In reply to leewilson86 from comment #0)
> Will you please just get it sorted.  You should know what it is which is
> causing this memory leak... or are you too lazy to actually do anything
> about it?
Yeah, we do not know what the cause is.
> A screenshot has been attached to show proof of high CPU usage.
I do not understand, are you talking about high CPU usage or memory usage? Please choose one of them and:
1) if you have problems with memory, generate a heap dump (http://wiki.netbeans.org/FaqMemoryDump)
2) if you're talking about CPU, attach a profiler snapshot which will most likely reveal why NetBeans occupies too much CPU (http://wiki.netbeans.org/FaqProfileMeNow)
Comment 2 Ondrej Vrabec 2014-04-25 06:07:35 UTC
reopen when you have the heap dump or profiler snapshot
Comment 3 urostr 2015-02-17 20:14:47 UTC
Created attachment 152038 [details]
high cpu usage
Comment 4 urostr 2015-02-17 20:15:39 UTC
Created attachment 152039 [details]
netbeans profile
Comment 5 urostr 2015-02-17 20:16:25 UTC
I'm also experiencing high CPU usage with NB 8.0.2 running in background.
Comment 6 urostr 2015-02-17 20:18:51 UTC
Created attachment 152040 [details]
profiler snapshot
Comment 7 Ondrej Vrabec 2015-02-18 13:32:41 UTC
i don't see any thread doing anything in your snapshots. Passing to performance to check if i am right or wrong.
Comment 8 Tomas Hurka 2015-02-18 14:23:02 UTC
Right, it looks like NetBeans is not taking excessive amount of CPU time in Java code. Can you attach messages.log file? Thanks.
Comment 9 urostr 2015-02-18 15:52:25 UTC
Created attachment 152062 [details]
log restored from the time machine backup
Comment 10 urostr 2015-02-18 15:59:51 UTC
Comment on attachment 152039 [details]
netbeans profile

If you sort the selfsampler.npss by total cpu time descending you can see that most of the time was spent in the org.netbeans.modules.masterfs.watcher.macosx.OSXNotifier$1.run()	0.0	0.000 ms (0%)	0.000 ms	91,937 ms	91,937 ms
Comment 11 Tomas Hurka 2015-02-19 06:38:22 UTC
Thanks for the messages.log. Unfortunately it does not explain your high CPU usage. We need more info. Please take a new profiler snapshot (http://wiki.netbeans.org/FaqProfileMeNow), when you see the problem and attach it to this issue together with messages.log file. Thanks.
Comment 12 ITDev 2015-04-02 12:43:21 UTC
Created attachment 152999 [details]
NetBeans Profiler Data

Same problem here with 8.0.2.
NetBeans uss 100% CPU time of one core all the time. I've attached the IDE profiler data.
Comment 13 Tomas Hurka 2015-04-10 14:50:11 UTC
(In reply to ITDev from comment #12)
> Created attachment 152999 [details]
> NetBeans Profiler Data
> 
> Same problem here with 8.0.2.
> NetBeans uss 100% CPU time of one core all the time. I've attached the IDE
> profiler data.
This looks like a different problem. I filed it separately as issue #251760.
Comment 14 damiangallagher 2017-01-25 14:08:55 UTC
Netbeans V8.1 Idle in the background using 50% processing power and pushing the CPU fan so hard I wanted to cut my ears off with a blunt knife. 

HP i7 - 12gb Ram.

So I noticed the fan starts to get louder and louder on my PC.  I never hear the fan like that.  It was starting to hack me off so decided to find what was going down.  PerfMon exposes Netbeans using 50% processing power.

The last thing I looked at was the Services tab in NB 8.1.. looking through the Maven Repo. Anyway I left netbeans open and carried on with some other work when the fan noise started getting louder. 
  

Killed Netbeans and fan slowed down.

Peace from the far east.. of England. 

bye.
Comment 15 Tomas Hurka 2017-02-14 08:22:00 UTC
Please do not reopen old issue, which is unrelated to your report. File the new bug report instead. Thanks.
Comment 16 suryaeko 2017-11-01 06:16:32 UTC
Created attachment 165380 [details]
high CPU usage
Comment 17 leewilson86 2017-11-01 06:55:13 UTC
I originally opened this ticket a few years ago, and it is interesting to see that the issue is still not resolved.

If this is frustrating you all, I have a possible solution.

ABANDON NETBEANS... move to another IDE.

I have done this, and the issues are resolved! My computer now moves along nicely without the fans blowing like mad!

My IDE of choice now is Jetbrain’s PHPStorm, plus one or two other of their IDEs.

Never had a problem with them. The only downside is, that you do have to pay for a subscription to their software. But considering the time you will save and how much more superior Jetbrain IDEs are compared to NETBEANS, the move is worth it.

They do a fantastic Java IDE too for you Java developers: IntelliJIdea.