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.
I have a fairly large project (about 400 java classes in the project and another one to two thousand supporting classes in jar files) and when I try to go from java class to java class in the editor by clicking on one tab and then another, a three second delay can be seen. Doing this exact same thing on the exact same files in the exact same project on the exact same machine right afterward but using Eclipse, the delay is less than a second.
Note that this isn't just a problem with toggling between java classes in the editor. This same delay shows up when you toggle from another application to Netbeans. For example you could have Netbean's help up on top of part of Netbeans, and say, Textpad up in front of them both. If you minimize Textpad, the Netbean's help shows up immediately, but the Netbeans IDE takes several seconds to finally refresh. Here is some info that may be of help: Product Version: NetBeans IDE Dev (Build 200710170000) Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b05 System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)
Could you please do a few (5-10) thread dumps while the IDE is frozen? This might be very helpful. Thanks. http://wiki.netbeans.info/wiki/view/GenerateThreadDump
Note that going from a tab with a java class to a tab with a .txt file is MUCH slower than going from java to java. I've noticed other problems with respect to performance for .txt files as well, so there is something going on here. The size of the .txt file doesn't seem to make too much difference as even a 150 line file causes these types of issues.
What is the memory footprint of the IDE? And what is your HW, especially the amount of memory? Does clicking the memory bar (ie. forcing full garbage collection) make any difference? Could you please make a few thread dumps as suggested by jlahoda? Thanks. Also, there are some performance tips on the wiki: http://wiki.netbeans.org/wiki/view/NetBeansUserFAQ#section-NetBeansUserFAQ-Performance
Created attachment 51303 [details] Thread dump
Memory footprint is 170 with a high of 319. I tried forcing garbage collection but it didn't make any difference with respect to speed. Attaching thread dumps as requested
So both this and issue 119415 have the same root problem and that is slow filesystem access during the tab switch, closing as dup. BTW: is the slow text file inside a project or standalone? *** This issue has been marked as a duplicate of 119415 ***
For the record, there already is a bug about slow switching between Java files: issue #101027.
The test file is inside the project.