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 220071 - IDE never gets past startup
Summary: IDE never gets past startup
Status: RESOLVED WORKSFORME
Alias: None
Product: php
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords: PERFORMANCE, REGRESSION
Depends on:
Blocks:
 
Reported: 2012-10-14 16:50 UTC by sackbut
Modified: 2012-11-02 03:56 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (43.68 KB, text/plain)
2012-10-14 16:50 UTC, sackbut
Details
Netneabs IDE 7.3 beta scanning prohects at start up (271.42 KB, application/octet-stream)
2012-10-28 15:26 UTC, sackbut
Details
Netbeans 7.2 IDE log (42.26 KB, text/plain)
2012-10-29 15:38 UTC, sackbut
Details
Profile Netneabs 7.2 at startup (438.43 KB, application/octet-stream)
2012-10-30 19:16 UTC, sackbut
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sackbut 2012-10-14 16:50:41 UTC
Product Version = NetBeans IDE 7.3 Beta (Build 201210011125)
Operating System = Windows 7 version 6.1 running on x86
Java; VM; Vendor = 1.6.0_20
Runtime = Java HotSpot(TM) Client VM 16.3-b01

The process "Checking for external changes becomes "suspended" immediately after loading the IDE. The "local synchronisation" process is still running 20 minutes after loading the IDE. There are 12 PHP projects in the IDE each with an average of 20 source files, each with about 200 lines of code. In 7.2 this all takes about 20 seconds.
Comment 1 sackbut 2012-10-14 16:50:48 UTC
Created attachment 125940 [details]
IDE log
Comment 2 sackbut 2012-10-15 11:17:37 UTC
It took just over two hours before the local synch and external changes tasks completed. I closed the IDE down and re-opened it. The synch and external changes processes took the same time - just over two hours.

Whilst it is doing this it's not happy to save documents - get a message warning that local copy is in progress. As I use the local copy to copy my source to the server this is a problem.
Comment 3 Marian Mirilovic 2012-10-25 11:24:16 UTC
Could you please share the projects with us ? (even using private email address). Are your projects located on local HDD, or somewhere in the network ? ....Thanks in advance.
Comment 4 Tomas Mysik 2012-10-26 14:09:04 UTC
AFAIK no change in this area in PHP for NB 7.3 but I can be wrong. Please, create a performance snapshot [1] during the scanning (I guess 1 minute or so should be fine), attach it to this issue and reopen it. Also please answer the questions from the comment #3.

Thanks a lot for your cooperation.
[1] http://wiki.netbeans.org/FitnessViaPartnership
Comment 5 sackbut 2012-10-28 15:26:32 UTC
Created attachment 126682 [details]
Netneabs IDE 7.3 beta scanning prohects at start up

Profiler file requested by Tomas Mysik 26th October 2012
Comment 6 Tomas Mysik 2012-10-29 10:06:18 UTC
Could you please attach the same profiler snapshot for your NB 7.2 (where it takes much less time)? Please attach the IDE log for NB 7.2 as well.

Also, are there any differences in the IDE or project setup? E.g. versioning system in NB 7.3 which is not available in NB 7.2 or similar.

Thanks a lot for your cooperation.
Comment 7 sackbut 2012-10-29 15:38:43 UTC
Created attachment 126732 [details]
Netbeans 7.2 IDE log

Could not find where 7.2 keeps its' ide log so copied from output window and pasted into editor to save as text
Comment 8 sackbut 2012-10-30 19:16:32 UTC
Created attachment 126801 [details]
Profile Netneabs 7.2 at startup

Tomas:

Here's the profile log for my Netbeans 7.2 at start up
Comment 9 Tomas Mysik 2012-10-31 08:46:22 UTC
Thanks a lot, we will have a look at it.
Comment 10 Tomas Mysik 2012-10-31 10:29:04 UTC
From the snapshot from NB 7.3:

nearly the whole time is spent in the java.io.File.exists() method (32 second for file delete and another 32 seconds for file create). So, the culprit here is the slow filesystem. The weird thing is that it works for you with NB 7.2. So, just to be sure:

- in NB 7.3, you simply opened the _same_ projects as in NB 7.2 - right?
- these projects - are they on local or network discs?
- could you please try to start NB 7.3 with a clean userdir [1] but please do NOT import your settings from NB 7.2. Then, please open your projects.

Please, reopen this issue and answer my questions.

Thanks a lot for your cooperation.
[1] http://wiki.netbeans.org/FaqAlternateUserdir
Comment 11 Tomas Mysik 2012-10-31 10:31:04 UTC
BTW I just tried to simulate this issue with Mediawiki project (1927 files) - after reopening, the local synchronization took about 20 seconds (7 seconds for delete and 13 seconds for copy).

Product Version: NetBeans IDE Dev (Build 20121031-ff9271ac9f05)
Java: 1.6.0_35; Java HotSpot(TM) 64-Bit Server VM 20.10-b01
Runtime: Java(TM) SE Runtime Environment 1.6.0_35-b10
System: Linux version 3.6.3-030603-generic running on amd64; UTF-8; cs_CZ (nb)
Comment 12 Tomas Mysik 2012-10-31 10:33:26 UTC
One more idea - you could start NB with no opened project. Then, open your projects, one by one (wait for the end of the local synchronization) - does the local synchronization take long time for all your projects? Or does it take long only for some of them?

Thanks.
Comment 13 sackbut 2012-10-31 18:30:08 UTC
To answer your questions:

When I installed 7.3 it asked me if I wanted to import 7.2 projects and I said Yes.

The projects are on a network share

I'll remove 7.3 then re-install it but not import any projects, but add them one by one

More later !

(In reply to comment #10)
> From the snapshot from NB 7.3:
> 
> nearly the whole time is spent in the java.io.File.exists() method (32 second
> for file delete and another 32 seconds for file create). So, the culprit here
> is the slow filesystem. The weird thing is that it works for you with NB 7.2.
> So, just to be sure:
> 
> - in NB 7.3, you simply opened the _same_ projects as in NB 7.2 - right?
> - these projects - are they on local or network discs?
> - could you please try to start NB 7.3 with a clean userdir [1] but please do
> NOT import your settings from NB 7.2. Then, please open your projects.
> 
> Please, reopen this issue and answer my questions.
> 
> Thanks a lot for your cooperation.
> [1] http://wiki.netbeans.org/FaqAlternateUserdir
Comment 14 sackbut 2012-10-31 18:33:35 UTC
Not sure whether you prefer top posting or bottom.... I prefer top, so that latest stuff is there

I'll try this and let u know what happens

It seems to take a long time for them all - about 2 and a half hours in total and CPU is up around 80% during this time so machine not much use

KT

(In reply to comment #12)
> One more idea - you could start NB with no opened project. Then, open your
> projects, one by one (wait for the end of the local synchronization) - does the
> local synchronization take long time for all your projects? Or does it take
> long only for some of them?
> 
> Thanks.
Comment 15 sackbut 2012-10-31 21:01:43 UTC
OK - I figured it out and I've been wasting your time and mine.

I started with a clean install of 7.3 and added projects one by one. The 6th one brought 7.3 to it's knees. But it was OK in 7.2. I had not worked on this project (it's an online shop selling midi files) for over two years so I went back to my notes and found that I had marked a folder - the one containing 2500 mp3 files at nearly 700Mb - to be ignored. Sure enough - there it was in 7.2 marked "ignore". When I did the same in 7.3 it's OK.

So there it is - nothing wrong with your wonderful IDE - just my crappy memory.

KT

(In reply to comment #14)
> Not sure whether you prefer top posting or bottom.... I prefer top, so that
> latest stuff is there
> 
> I'll try this and let u know what happens
> 
> It seems to take a long time for them all - about 2 and a half hours in total
> and CPU is up around 80% during this time so machine not much use
> 
> KT
> 
> (In reply to comment #12)
> > One more idea - you could start NB with no opened project. Then, open your
> > projects, one by one (wait for the end of the local synchronization) - does the
> > local synchronization take long time for all your projects? Or does it take
> > long only for some of them?
> > 
> > Thanks.
Comment 16 Tomas Mysik 2012-11-01 05:06:14 UTC
Great to hear that it works for you now!

(In reply to comment #13)
> The projects are on a network share

Please notice that such environment will _always_ be slower (even much slower) than local HDD. If you can avoid it, please do so.

Thank you for your coopeartion.
Comment 17 Jaroslav Tulach 2012-11-01 16:14:35 UTC
(In reply to comment #15)
> I had marked a folder - the one containing 2500
> mp3 files at nearly 700Mb - to be ignored. Sure enough - there it was in 7.2
> marked "ignore". When I did the same in 7.3 it's OK.

One question for Tomáš remains: Why the ignored folder setting is not imported from 7.2?
Comment 18 Tomas Mysik 2012-11-02 03:56:38 UTC
(In reply to comment #17)
> One question for Tomáš remains: Why the ignored folder setting is not imported
> from 7.2?

No idea - this info is part of project.properties so there should not be any problem. However reported as issue #221307.

@reporter: Could you please attach project.properties file of the problematic project here? But first please verify that there is no private information in it.

Thanks a lot.