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 201009 - NetBeans becomes very slow sometimes
Summary: NetBeans becomes very slow sometimes
Status: RESOLVED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.0.1
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords: PERFORMANCE
: 202188 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-08-16 16:10 UTC by Marian Petras
Modified: 2011-10-18 09:54 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Result of self-profiling the IDE (28.56 KB, application/octet-stream)
2011-08-16 16:10 UTC, Marian Petras
Details
screenshot of the profiler with suspicious hot spots (302.88 KB, image/png)
2011-08-16 16:12 UTC, Marian Petras
Details
IDE log (167.61 KB, text/plain)
2011-08-16 16:13 UTC, Marian Petras
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marian Petras 2011-08-16 16:10:08 UTC
Created attachment 110014 [details]
Result of self-profiling the IDE

Sometimes, NetBeans becomes very slow, performing long-lasting actions after every interaction with it (expanding nodes in the Projects view, switching between windows, etc.). According to the profiler snapshot (attached), this seems related to the diff sidebar.

I had several 14 Git-versioned projects open. Not all of these projects have the same Git root folder - there are at least two Git root folders used.

I also have approx 40-50 files opened, all of them coming from the Git-versioned projects. I also have one debugging session active, locally attached to a process using the shared memory connector.

Technical data (brief, the rest is in the attached messages.log):

  Windows XP 32-bit, SP 3
  NetBeans 7.0.1
  JDK 1.6.0_26

  Git module versions:  
     org.netbeans.libs.git/1 [0.2.1 release70-au-50-on-20110802]
     org.netbeans.modules.git [0.2.12.42.1 release70-au-50-on-20110802]

Sorry if this is a duplicate. Bugzilla seems to be unusable (not returning any results) both from my home and from my work place.
Comment 1 Marian Petras 2011-08-16 16:12:26 UTC
Created attachment 110015 [details]
screenshot of the profiler with suspicious hot spots
Comment 2 Marian Petras 2011-08-16 16:13:44 UTC
Created attachment 110016 [details]
IDE log
Comment 3 Ondrej Vrabec 2011-08-30 09:53:46 UTC
Marian, could you look into your Temp folder and let me know how many files/folders you have there? Diff creates a temp file in Temp\vcs-generated-tempfolder and after a while deletes the whole folder. So it may be that since you have tons of files in Temp then after vcs-generated-tempfolder is deleted, FS gets crazy.
BTW, looking at the annotations for DiffSidebar the author of deleteTempFolder is mpetras ;-)
Comment 4 Ondrej Vrabec 2011-09-01 09:56:20 UTC
Let's create vcs temp files under a single vcs folder in /tmp (as we already do in versioning.utils)
Comment 5 Ondrej Vrabec 2011-09-01 09:57:47 UTC
fix: http://hg.netbeans.org/core-main/rev/d4142a0f80b3
Comment 6 Ondrej Vrabec 2011-10-18 09:54:34 UTC
*** Bug 202188 has been marked as a duplicate of this bug. ***