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 81941 - Performance of Project Rename, 5+ minutes
Summary: Performance of Project Rename, 5+ minutes
Status: RESOLVED DUPLICATE of bug 162718
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker with 1 vote (vote)
Assignee: Jesse Glick
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2006-08-04 14:32 UTC by Charlie Hunt
Modified: 2010-03-30 22:32 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Charlie Hunt 2006-08-04 14:32:53 UTC
Not sure this is the right Component / Subcomponent for this bug?  Please re-
assign if needed.

The performance of a project rename took over 5 minutes to complete and while it 
was performing the project rename the IDE was completely blocked (unusable/not 
respond to any input) until it completed some 5 minutes later.  Also noticed the 
disk drive was getting pounded on during the entire 5+ minites it was executing 
the project rename.  Don't understand why it would need to pound on my disk 
drive for 5+ minutes along why it would take 5+ minutes to do a project rename.

To reproduce this issue, follow these steps.

1.) Check out the glassfish-corba source from CVS at 
    glassfish-corba.dev.java.net.
2.) Open the project once the CVS check out has completed. Fwiw, This is a 
    free form project.  Note: It will take a few seconds for the classpath 
    scanning to complete, (this is a large project).
3.) Right click on the project name "Java CORBA Development" in the Projects 
    window and select "Build Project".
4.) When the project has completed building, again right click on the project
    name in the Projects window and select "Compile all tests".
5.) When the tests have completed compilation, LEFT click on the project name
    in the Projects window, wait for the project name to highlighted, change 
    the name of the project from "Java CORBA Development" to something different 
    such as, "MyGlassFishCorba". In the Rename  Project dialog, also check the
    option to "Also Rename Project Folder" and press the "Rename" button.
6.) Go make yourself a cup of coffee, go check your e-mail, etc. When you come
    back the IDE will likely still be working on the project rename along with
    still pounding on the hard disk. :-]
Comment 1 Milan Kubec 2006-10-20 08:48:56 UTC
We will take a look at it.
Comment 2 thor 2006-11-22 13:18:15 UTC
The project/Rename function is behaving incorrectly on a grand scale.

It's actually taking several orders of magnitude longer than it should ( my 
150MB project which is hosted on a network drive has been stuck in rename for 
almost half an hour now ).

What Rename is doing:
* It is _copying_ the project between the two directories <oldname> and 
<newname>

What Rename SHOULD be doing:
* Clean up
* Close all files from project that are open
* Call the operating system function *RENAME* to rename the project directory

The first can take hours on a large directory

The latter can take a few seconds.

Please amend.

Thank you :)
Comment 3 _ rkubacki 2006-11-23 14:36:14 UTC
I think that the biggest problem here is that we still run slowly in network
configuration. So it would be good to compared how long it takes in local env.
Comment 4 Lukas Hasik 2008-04-10 21:41:52 UTC
moving opened issues from TM <= 6.1 to TM=Dev
Comment 5 Antonin Nebuzelsky 2010-03-29 14:10:12 UTC
Change of default owner.
Comment 6 Jesse Glick 2010-03-30 22:32:24 UTC
In 6.9 it should be doing a simple folder rename.

*** This bug has been marked as a duplicate of bug 162718 ***