Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 242125 - Poor editor performance [scrolling - lag when a min. file is loaded]
Poor editor performance [scrolling - lag when a min. file is loaded]
Product: platform
Classification: Unclassified
Component: JDK Problems
Macintosh Mac OS X
: P3 with 1 vote (vote)
Assigned To: Antonin Nebuzelsky
Depends on:
  Show dependency treegraph
Reported: 2014-02-19 23:46 UTC by YannisDR
Modified: 2015-06-29 19:16 UTC (History)
0 users

See Also:
Issue Type: DEFECT

Salfsampler showing performance issues during examining a minified file (527.71 KB, application/octet-stream)
2014-02-25 18:52 UTC, YannisDR
Small selfsampler file (254.09 KB, application/octet-stream)
2014-02-25 19:28 UTC, YannisDR

Note You need to log in before you can comment on or make changes to this bug.
Description YannisDR 2014-02-19 23:46:08 UTC
Scrolling is very hard, almost unusable. Additionally, when a dense document such as min.js is loaded the editor freezes my workspace.

This case is very much like the following case:
>> Bug 237724 - Poor editor performance with Java 7 and retina display on OS X <<
I would say almost a duplicate with the exception that I do not have a retina display machine as described into that bug (Bug 237724).

Using another IDE such as Eclipse, there is no any performance hindrance.

I would upload a video, but I think the ones uploaded in bug 237724 cover up the problem I face sufficiently.

MacBookPro 17-inch, Early 2011
Processor  2.2 GHz Intel Core i7
Memory     16 GB 1333 MHz DDR3
Graphics   AMD Radeon HD 6750M 1024 MB / 17.1-inch (1920 x 1200)
Product Version: NetBeans IDE 7.4 (Build 201310111528)
Updates:         NetBeans IDE is updated to version NetBeans 7.4 Patch 2
Java:            1.7.0_51; Java HotSpot(TM) 64-Bit Server VM 24.51-b03
Runtime:         Java(TM) SE Runtime Environment 1.7.0_51-b13
System:          Mac OS X version 10.7.5 running on x86_64; UTF-8; en_US (nb)
User directory:  /Users/.~~./Library/Application Support/NetBeans/7.4
Cache directory: /Users/.~~./Library/Caches/NetBeans/7.4

SCREENCAST here:  (2 minutes)
Comment 1 YannisDR 2014-02-20 00:25:46 UTC
New Screencast link (previous got deleted accidentally):

Note: sound is muted intentionally.
Comment 2 Jiri Prox 2014-02-20 15:44:04 UTC
Can you please profile the ide?

(There is action Profile IDE which can profile the running IDE and attach the captured snapshot to the selected issue)
Comment 3 Milutin Kristofic 2014-02-24 15:26:11 UTC
Can you please provide ide, it can find where can be problem with performance.
Comment 4 YannisDR 2014-02-24 19:02:32 UTC
I am new and I am trying to find the profiling process you suggest me doing. Unfortunately, NetBeans' guide doesn't helps a lot:

1) There is no Java sample folder in New Project's wizard, nor installing the Java Development Kit enables such a thing.

2) Using keywords in the `help` bar, nothing can be found. "Profile", "profiler", "calibration", "monitor" keywords do not reproduce any results. Additionally, I cannot find anything like: 
- Advanced Commands > Run Profiler Calibration from the Profile menu
- Choose Profile > Profile Main Project from the main menu

Can you please describe the process of profiling IDE having in your mind you speak to a beginner?
Comment 5 Milutin Kristofic 2014-02-25 10:27:34 UTC this is good tutorial how to profile netbeans and report performance issue.
Comment 6 YannisDR 2014-02-25 18:52:19 UTC
Created attachment 145580 [details]
Salfsampler showing performance issues during examining a minified file

Contains about a minute of profiling the IDE.
Comment 7 YannisDR 2014-02-25 19:28:41 UTC
Created attachment 145582 [details]
Small selfsampler file

Contains few seconds of profiling, and a cumulative stack depth indicating "3,091".
Comment 8 Milutin Kristofic 2014-02-26 14:15:29 UTC
I am sorry, this looks to similar issue as in #237724 ... I see that you don't have Retina, but in both samples I see that AWT-Thread is slow down by 

sun.java2d.opengl.OGLRenderQueue$QueueFlusher.flushNow()	52.954372	59,393 ms (53%)	11.0 ms

This is JDK Problem. Eclipse has its own GUI implementation, so they don't use java2d libraries. I cannot fix this in Netbeans Editor.
Comment 9 Milutin Kristofic 2014-02-26 17:54:45 UTC
JDK Problem. Already discussed in Bug #237724
Comment 10 YannisDR 2014-02-26 18:04:18 UTC
This topic should be set at a higher or same priority class with the "already discussed" topic which is P2 not P3, same as the reported bug at Oracle:

whoever has this problem too, vote there.

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo