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 268456 - NetBeans sometimes very slow saving a java file
Summary: NetBeans sometimes very slow saving a java file
Status: NEW
Alias: None
Product: ide
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: issues@ide
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-10 21:36 UTC by mclaborn
Modified: 2016-10-10 22:55 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (15.00 KB, text/plain)
2016-10-10 21:36 UTC, mclaborn
Details
Self profling snapshot as described (54.62 KB, application/x-netbeans-profiler)
2016-10-10 21:37 UTC, mclaborn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mclaborn 2016-10-10 21:36:12 UTC
Product Version = NetBeans IDE 8.2 (Build 201609300101)
Operating System = Linux version 4.4.0-38-generic running on amd64
Java; VM; Vendor = 1.8.0_102
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.102-b14

Reproducibility: Happens sometimes, but not always

NB is sometimes VERY slow saving an updated java source file. Almost all of my projects, including the one I was working on that prompted this ticket, have Compile on Save = true. In this case, I made a change and pressed Ctrl + S to save the file.  It took approximately 30 seconds before the UI thread was responsive again or the tab changed from bold to normal font, indicating that the save was complete.  I've noticed that once NB is in this slow mode that it happens at every / almost every file save. Restarting NB clears the problem for a while. 

I will shortly attach a self profiler snapshot. The profiling was started immediately before saving the file and stopped as soon as the UI was responsive again afterwards.
Comment 1 mclaborn 2016-10-10 21:36:17 UTC
Created attachment 162442 [details]
IDE log
Comment 2 mclaborn 2016-10-10 21:37:01 UTC
Created attachment 162443 [details]
Self profling snapshot as described
Comment 3 mclaborn 2016-10-10 22:55:54 UTC
System uses very high CPU when the slowness is going on.