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 206261

Summary: Code completion is unworkable slow
Product: editor Reporter: pvdissel
Component: Completion & TemplatesAssignee: Dusan Balek <dbalek>
Status: RESOLVED INCOMPLETE    
Severity: normal CC: dstrupl, issues, mmirilovic
Priority: P1 Keywords: PERFORMANCE
Version: 7.1   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description pvdissel 2011-12-12 11:27:00 UTC
Product Version = NetBeans IDE 7.1 RC2 (Build 201111302200)
Operating System = Linux version 3.0.0-13-generic running on amd64
Java; VM; Vendor = 1.7.0_147-icedtea
Runtime = OpenJDK 64-Bit Server VM 21.0-b17

I'm running a java maven project with about ~100 modules/projects with about 60,000 files total, and it used to work fine with Netbeans 7.0 and 7.1 beta, but since 7.1RC1 it's totaly unworkable to have all modules opened. All code related features like code-completion and refactoring take ages and often result in a short freeze of whole netbeans, then it takes a "snapshot...", and then there's still no auto-completion nor refactoring (depending on what I was trying to do).

I need to have the whole project opened, otherwise Netbeans will not take all classes/files into account in it's actions.

I'm running on  8 GB of ram, SSD and Quad-core,:
~$ cat /proc/cpuinfo 
processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 37
model name	: Intel(R) Core(TM) i5 CPU       M 540  @ 2.53GHz
stepping	: 5
cpu MHz		: 1199.000
cache size	: 3072 KB
physical id	: 0
siblings	: 4
core id		: 0
cpu cores	: 2
apicid		: 0
initial apicid	: 0
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 popcnt aes lahf_lm ida arat dts tpr_shadow vnmi flexpriority ept vpid
bogomips	: 5054.82
clflush size	: 64
cache_alignment	: 64
address sizes	: 36 bits physical, 48 bits virtual

So hardware is fast enough.
Comment 1 Dusan Balek 2012-01-02 11:02:56 UTC
Could you please create a profiler snapshot and attach it to the issue? Thanks.
Comment 2 pvdissel 2012-01-02 11:05:15 UTC
(In reply to comment #1)
> Could you please create a profiler snapshot and attach it to the issue? Thanks.

Can you redirect me to an explanation on how to create such a profiler snapshot?
Comment 3 Dusan Balek 2012-01-02 12:21:11 UTC
Invoke 'Profile the IDE' action (via 'Alt+Shift+Y' or the icon in the IDE toolbar). Then invoke code completion (or any other action that you consider to be slow) followed by another 'Profile the IDE' action after it finishes. The snapshot should be automatically generated, so save it and attach to the issue. Thanks.
Comment 4 Petr Cyhelsky 2013-02-13 15:31:58 UTC
Can ANYONE please attach the requested information? Is this issue still valid? It has 4 votes so I assume there is someone to whom this also happens...