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 270872 - NetBeans is not responsive enough to work with (Java 8 issue?)
Summary: NetBeans is not responsive enough to work with (Java 8 issue?)
Status: RESOLVED WORKSFORME
Alias: None
Product: ide
Classification: Unclassified
Component: Performance (show other bugs)
Version: 8.2
Hardware: PC Linux
: P2 normal (vote)
Assignee: Tomas Hurka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-13 21:27 UTC by blade106
Modified: 2017-07-29 13:50 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
NetBeans messages.log (46.34 KB, text/x-log)
2017-06-13 21:27 UTC, blade106
Details
NPS file (36.96 KB, application/octet-stream)
2017-06-13 21:27 UTC, blade106
Details
CPU spike (7.43 KB, image/png)
2017-06-13 21:28 UTC, blade106
Details
NPSS from NetBeans 8.0.2 (120.81 KB, application/octet-stream)
2017-06-13 21:37 UTC, blade106
Details

Note You need to log in before you can comment on or make changes to this bug.
Description blade106 2017-06-13 21:27:08 UTC
Created attachment 164532 [details]
NetBeans messages.log

I've just upgraded to NetBeans 8.2 (was on 8.0.2 until today). The whole IDE isn't responsive, I've tried Oracle Java too with no luck, so I switch back to OpenJDK 8.

I've disabled «auto-scanning of sources», no luck.

Now the scenario:
- let NetBeans start and run until CPU shows very little usage
- start sampling
- change tab (switch from one PHP file to another)
- wait for the CPU to go down again
- stop sampling

Attachments:
- selfsampler
- CPU during the tab switch (~15 sec)
- Netbeans log

Note that I've set Xms to 1024, and Xmx took the same value. I don't think that's an issue, my IDE was not better with default of Xms to 32m.

NetBeans 8.0.2 is slower too since this installation, so that may be related to an upgrade of Java 7 to Java 8. However I can't explain why NB is so slow under Java 8, it should be faster... or at least responsive, even with few lags, but for now it's not usable at all.
Comment 1 blade106 2017-06-13 21:27:36 UTC
Created attachment 164533 [details]
NPS file
Comment 2 blade106 2017-06-13 21:28:02 UTC
Created attachment 164534 [details]
CPU spike
Comment 3 blade106 2017-06-13 21:37:26 UTC
Created attachment 164535 [details]
NPSS from NetBeans 8.0.2

It seems that NetBeans 8.0.2 slows down on the exact same Java class: File Watcher. But I can't figure it out what the class does or what is wrong with it...
Comment 4 blade106 2017-06-13 21:48:05 UTC
Switched back to OpenJDK 7 (1.7.0_131) from OpenJDK 8 (8u131 so it should be 1.8.0_131), and NB 8.0.2 is fine again. But I can't run NB 8.2 anymore, because it depends on Java 8...
Comment 5 blade106 2017-07-29 13:50:15 UTC
I was running Debian 8 (Jessie), and just upgraded to Debian 9 (Stretch). I did this because I've setup another computer directly on Debian 9 and NB was working fine (with openjdk-8-jdk).

And now the problem's gone.

A friend told me it could be because of Java 64 bits that sometimes fallbacks to 32 bits.

I'm closing this.