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 184187

Summary: core.ui.sampler.SamplesOutputStream.close() can take ages
Product: profiler Reporter: stefan79 <stefan79>
Component: IdeAssignee: Tomas Hurka <thurka>
Status: RESOLVED FIXED    
Severity: normal CC: AIML_Engr, akochnev, Alniks, andyr123, aquaglia, averri, bigchirv, bsbc99, Burjuy, cyrill, Danny_Wong, darren13, dgo, diwakar.kuruba, driscoll, dziquinatti, hmichel, janario, jiai, jonavogt, jtulach, kawazu428, kganfield, mhuebner, mklaehn, Montserrat, nikpet, obalyuk, ovk, petermount, pinheirolouco, pjiricka, quang4me, rburkhead, robDana, schkovich, sebglon, simpatico, ssanders, St.Ev, stefan79, stiffuser, tapehead, thurka, TobiasKranz, troodon, xantiva, xjflyttp, zegenie
Priority: P3 Keywords: PERFORMANCE
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 168043
Attachments: nps snapshot
nps snapshot
nps snapshot

Description stefan79 2010-04-14 16:10:18 UTC
This issue was reported manually by stefan79.
It already has 1 duplicates 


Build: NetBeans IDE Dev (Build 201004140201)
VM: Java HotSpot(TM) Client VM, 16.0-b13, Java(TM) SE Runtime Environment, 1.6.0_18-b07
OS: Windows XP
Maximum slowness yet reported was 118906 ms, average is 118906
Comment 1 stefan79 2010-04-14 16:11:10 UTC
Created attachment 97369 [details]
nps snapshot
Comment 2 stefan79 2010-04-14 16:19:06 UTC
I tried the following:
-) Closed NetBeans
-) Deleted the Cache-Directory (.netbeans/dev/var/Cache)
-) Started NetBeans
-) Pressed on the Profiler Button
-) After 1 Minute I pressed again at the Profiler-Button

It´s a result of http://netbeans.org/bugzilla/show_bug.cgi?id=184186
Comment 3 akochnev 2010-04-19 22:17:03 UTC
Created attachment 97673 [details]
nps snapshot

Invoked code completion on a domain object inside of a Grails project
Comment 4 Exceptions Reporter 2010-04-20 10:29:00 UTC
Created attachment 97697 [details]
nps snapshot
Comment 5 Martin Entlicher 2011-01-07 14:21:53 UTC
Noting to do with Output Window.
org.netbeans.modules.editor.completion.CompletionImplProfile initiates write of sampler data in AWT.
Defect in editor or sampler.
Comment 6 Dusan Balek 2011-01-11 16:09:12 UTC
Seems like a problem with sampling.
Comment 7 Jaroslav Tulach 2011-01-12 08:24:09 UTC
According to 
http://statistics.netbeans.org/exceptions/exception.do?id=390587
the Sample.close(), can take quite a lot of time. The close happens on AWT thread (mistake?) and is itself detected as slowness. Tomáši, what is your advice in this case? We probably need to move the long action outside of AWT. Where the thread switch shall happen?
Comment 8 Tomas Hurka 2011-06-07 12:48:52 UTC
Fixed in main in a similar way to issue #184680.

changeset:   195390:eec655dbcdd9
user:        Tomas Hurka <thurka@netbeans.org>
date:        Tue Jun 07 14:44:21 2011 +0200
summary:     bugfix #184187, invoke SelfProfiling action outside of EDT
Comment 9 Tomas Hurka 2011-06-08 07:35:37 UTC
Fixed in 7.0.1

changeset:   200344:c93941265e58
branch:      release701
user:        Tomas Hurka <thurka@netbeans.org>
date:        Tue Jun 07 14:44:21 2011 +0200
summary:     bugfix #184187, invoke SelfProfiling action outside of EDT
Comment 10 Quality Engineering 2011-06-08 14:50:24 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/eec655dbcdd9
User: Tomas Hurka <thurka@netbeans.org>
Log: bugfix #184187, invoke SelfProfiling action outside of EDT
Comment 11 Quality Engineering 2011-06-09 04:36:21 UTC
Integrated into 'releases'
Changeset: http://hg.netbeans.org/releases/rev/c93941265e58
User: Tomas Hurka <thurka@netbeans.org>
Log: bugfix #184187, invoke SelfProfiling action outside of EDT
(transplanted from eec655dbcdd90ba8d2ae49d2a6c74ec3a8f43f2b)