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 48854 - [perf] Platform Wizard opens (and navigates in dirstructure) terribly slow (it Looks in: /)
Summary: [perf] Platform Wizard opens (and navigates in dirstructure) terribly slow (i...
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Platform (show other bugs)
Version: 4.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2004-09-10 15:41 UTC by dmladek
Modified: 2006-03-24 10:25 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
c. 3 FTDs (48.14 KB, text/plain)
2004-09-10 15:44 UTC, dmladek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dmladek 2004-09-10 15:41:55 UTC
Product Version       = NetBeans IDE Dev (Build
200409091800)
  Operating System      = Linux version
2.4.22-1.2115.nptl running on i386
  Java; VM; Vendor      = 1.5.0-rc; Java
HotSpot(TM) Client VM 1.5.0-rc-b63; Sun
Microsystems Inc.
  Java Home             = /usr/local/java/jdk1.5.0/jre
  System Locale; Encod. = cs_CZ (nb); ISO-8859-2
  Home Dir; Current Dir = /usr/local/home/delphym;
/usr/local/forte/forte3/NBdev-last/netbeans/bin
  IDE Install; User Dir =
/usr/local/home/delphym/NBdev-last/platform4;
/usr/local/home/delphym/.netbeans/dev
-------------------------------------------------------------------------------

I've never used it before, so I don't its
performance. But it's almost unusable becasue of
it's terrible response.

I'm attaching 2 FTDs created when Java Platform
Manager is open and I'm adding the Platform..


Reproduction:
=============
1) Main Menu->Tools->Java Platform Manager
2) Click Add Platform ... button
The Add Java Platform Wizard occurs...but it's
grey and seems like IDE freez..
After several seconds (maybe minutes) it started
to "Look in: /" root folder.

I don't know if this is the default folder where
to Look in, but it's horrible.

Luckyly it remember lastly opened dir, so when
invoking it again it's much faster.

On Solaris it's hangs just for few second but on
linux it's very bad:-(
Comment 1 dmladek 2004-09-10 15:44:58 UTC
Created attachment 17550 [details]
c. 3 FTDs
Comment 2 dmladek 2004-09-10 15:50:07 UTC
I don't see any problem why listing dir structure of / root dir in
JFileChooser might take so long :-/

Normal ls -la / takes less then 1 sec:
[delphym@localhost nbbuild]$ date ;ls -la / > /dev/null; date
Pá zář 10 16:48:07 CEST 2004
Pá zář 10 16:48:07 CEST 2004


BTW: there was similar issue for another wizard which by default open
in "/" root folder and then it's been changed to open in $HOME
Comment 3 dmladek 2004-09-10 15:50:38 UTC
I think it's rather P2 then P3
Comment 4 Petr Hrebejk 2004-09-14 15:29:31 UTC
> I don't see any problem why listing dir structure of / root dir in
> JFileChooser might take so long :-/

do you use automount for e.g. /net
Comment 5 dmladek 2004-09-14 15:34:21 UTC
>do you use automount for e.g. /net
Yes, I do.
Other (native apps) like Konquer in KDE, bash, mc don't have problems to
list "/" dir even thought I'm using automount.
It lasts long only when doing cd/ls /net/$some_host
Comment 6 Tomas Zezula 2004-09-27 12:53:12 UTC
This is a problem of automount folder, the only workaround is to
change the default location from / to eg. (/usr/ or ~)
Comment 7 Tomas Zezula 2004-09-28 15:22:29 UTC
Checking in
platform/src/org/netbeans/modules/java/platform/wizard/LocationChooser.java;
/cvs/java/platform/src/org/netbeans/modules/java/platform/wizard/LocationChooser.java,v
 <--  LocationChooser.java
new revision: 1.18; previous revision: 1.17
done
Comment 8 Jiri Prox 2005-07-12 11:24:46 UTC
Verified in 4.2 (200507110943)