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 239942

Summary: Slow code completion
Product: javascript Reporter: jcreyf
Component: EditorAssignee: jcreyf
Status: REOPENED ---    
Severity: normal CC: jcreyf
Priority: P4    
Version: 8.0   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: Profiler output for a slow code completion
IDE logs
Profiler output for another slow code completion
IDE logs

Description jcreyf 2014-01-03 06:02:32 UTC
[ BUILD # : 201401020002 ]
[ JDK VERSION : 1.7.0_25 ]

I've been concentrating on JavaScript development and am getting quite a few
silent "slow code completion detection" warnings.
It can take up to 7 seconds for a completion to finish.
I'm not seeing these delays in Netbeans 7.4, so I assume this is related to new
development.
Comment 1 Vladimir Riha 2014-01-03 07:52:25 UTC
Please attach some profiling snapshots (see [1]) during the slow autocompletion. Thank you in advance 




[1] http://wiki.netbeans.org/FaqProfileMeNow
Comment 2 jcreyf 2014-01-07 01:21:37 UTC
Created attachment 143649 [details]
Profiler output for a slow code completion
Comment 3 jcreyf 2014-01-07 01:23:47 UTC
Created attachment 143650 [details]
IDE logs

IDE logs leading up to profile output in bug239942_SlowCodeCompletion_1.npss
Comment 4 jcreyf 2014-01-07 01:27:17 UTC
Created attachment 143651 [details]
Profiler output for another slow code completion

I had installed a fresh Netbeans daily build (201401060002) and apparently forgot to configure the proxy server for the first profiler snapshot.  Not sure if that makes a difference, but I decided to fix the proxy settings, bounce the IDE and try again.
This profiler output is for a new slowness warning without network connectivity issues.
Comment 5 jcreyf 2014-01-07 01:28:34 UTC
Created attachment 143652 [details]
IDE logs

These IDE logs map to the profiler output in bug239942_SlowCodeCompletion_2.npss
Comment 6 jcreyf 2014-01-07 01:37:48 UTC
Hi Vladimir,

I've updated to daily build 201401060002.
This build seems better with fewer slowness reports.
I captured occurrences in the profiler and attached both the profiler output and IDE logs.

I work in 2 different locations.  One where I need to go through a proxy server to get onto the internet and another where I have direct access.
I had forgotten to flip the proxy server settings in the IDE when I captured the first issue, so I decided to fix the setting and bounce the IDE.  Then I captured the 2nd slowness occurrence and attached the files for that too.

As I said, I seem to be getting fewer warnings in this build.
I'll use it for a couple days and will update the ticket if the situation changes.

Thanks,
Jo