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 240307 - org.netbeans.modules.nbform.palette.BeanInstaller.processJavaFile: LowPerformance took 25656 ms.
Summary: org.netbeans.modules.nbform.palette.BeanInstaller.processJavaFile: LowPerform...
Status: NEW
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: issues@guibuilder
Depends on:
Reported: 2014-01-11 21:28 UTC by Exceptions Reporter
Modified: 2014-01-13 14:42 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 203755

nps snapshot (544.44 KB, application/nps)
2014-01-11 21:28 UTC, Exceptions Reporter

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2014-01-11 21:28:00 UTC
Build: NetBeans IDE 7.4 (Build 201310111528)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.0-b62, Java(TM) SE Runtime Environment, 1.8.0-ea-b120
OS: Mac OS X

User Comments:
GUEST: Copy and Paste Files

GUEST: Two observations while desigining a GUI using Matisse:

1) Leaks memory at about the rate of 5-10 MB per 5 seconds, even when idle. (When NetBeans is NOT running there is no observable memory leakage).
2) Suddenly hangs while writing a snapshot

Model Name:	Mac mini
  Model Identifier:	Macmini3,1
  Processor Name:	Intel Core 2 Duo
  Processor Speed:	2.53 GHz
  Number of Processors:	1
  Total Number of Cores:	2
  L2 Cache:	3 MB
  Memory:	4 GB
  Bus Speed:	1.07 GHz
  Boot ROM Version:	MM31.00AD.B00
  SMC Version (system):	1.35f1
  Serial Number (system):	YM0081J69G6
  Hardware UUID:	62264975-6BA5-5495-AB3D-3F56CE96AD0E

OS X 10.7.5

Maximum slowness yet reported was 33907 ms, average is 29781
Comment 1 Exceptions Reporter 2014-01-11 21:28:12 UTC
Created attachment 143841 [details]
nps snapshot
Comment 2 Tomas Pavek 2014-01-13 14:42:24 UTC
If a java file (from project explorer) is in clipboard then when selecting a container in a GUI form tries to determine if the file in clipboard can be a JavaBean -- to enable the Paste action. The check for JavaBean requires java source features so can be blocked by an ongoing parsing/indexing (which is the case reported here). This is not a suitable operation to run synchronously for action enabling.

Practically this this probably does not happen often, i.e. that the user would copy a file, open a GUI form, and have IDE busy with parsing -- all that at the same moment.