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 124454 - VERY slow file indexing at each startup.
Summary: VERY slow file indexing at each startup.
Status: RESOLVED DUPLICATE of bug 124444
Alias: None
Product: ruby
Classification: Unclassified
Component: Platform (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: Torbjorn Norbye
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2007-12-26 11:40 UTC by ajasja
Modified: 2008-01-11 14:54 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot of slow indexing (6.40 KB, image/png)
2007-12-26 11:42 UTC, ajasja
Details
Screenshot of slow indexing (6.78 KB, image/png)
2007-12-26 11:43 UTC, ajasja
Details
Screenshot of slow indexing (6.83 KB, image/png)
2007-12-26 11:44 UTC, ajasja
Details
layer-stamp.txt (15.33 KB, text/plain)
2007-12-26 11:45 UTC, ajasja
Details
lookup-stamp.txt (9.68 KB, text/plain)
2007-12-26 11:46 UTC, ajasja
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ajasja 2007-12-26 11:40:25 UTC
Every time I start the Netbeans Ruby IDE the IDE spends about 15 min indexing my projects and, unfortunately, also all
library files. It spends most of the time in jruby-1.0.3\lib\ruby\1.8
(And the IDE won’t exit during this time so it has to be killed) 

The problem appeared about two weeks ago, but I don’t remember exactly at what build number. 
(It appeared about the same time I started to use the auto_update script. I just extract the new zip over the existing
folder (with forced override) so that I don’t lose installed plugins.)

Product Version: NetBeans Ruby IDE 20071225172709 
Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b06 
System: Windows XP version 5.1 running on x86; Cp1250; sl_SI (nbrubyide) 
Userdir: C:\Documents and Settings\ajasja\Application Data\.nbrubyide\dev
Comment 1 ajasja 2007-12-26 11:42:30 UTC
Created attachment 54504 [details]
Screenshot of slow indexing
Comment 2 ajasja 2007-12-26 11:43:13 UTC
Created attachment 54505 [details]
Screenshot of slow indexing
Comment 3 ajasja 2007-12-26 11:44:35 UTC
Created attachment 54507 [details]
Screenshot of slow indexing
Comment 4 ajasja 2007-12-26 11:45:45 UTC
Created attachment 54508 [details]
layer-stamp.txt
Comment 5 ajasja 2007-12-26 11:46:14 UTC
Created attachment 54509 [details]
lookup-stamp.txt
Comment 6 ajasja 2007-12-26 12:13:51 UTC
The auto_update script has nothing to do with this bug. I just installed Build #5916 (Product Version: NetBeans Ruby IDE
20071226092219) in a fresh folder, but it still indexes the library files.
Comment 7 Torbjorn Norbye 2007-12-26 17:58:08 UTC
Hi there,
I recently rev'ed the schema version for the index database, so a single re-index needed to be performed. BUT, (a) it
sounds like it's not using the pre-indexed databases for most of your gems, and more importantly, it's happening not
just once but every time?

Would you mind trying to start NetBeans with a different userdir, and see if it happens more than once?
netbeans --userdir /tmp/test

Comment 8 ajasja 2007-12-31 15:48:07 UTC
Hello!
Sorry for the late reply, I had a nasty case of the stomach flu.

If I run the IDE with a fresh user dir then the slow indexing at startup does not occur (not even once).
But I get this exception at startup http://www.netbeans.org/issues/show_bug.cgi?id=124535 and if I try to open a context
menu on any project node (in the projects view) I get this exception
http://www.netbeans.org/issues/show_bug.cgi?id=124534 (and no context menu).

I tried deleting var folder in my normal userdir (and running the IDE without the --userdir option), but it indexed
everything on the first run and got stuck in jruby-1.0.3\lib\ruby\1.8 on the second run.

Best regards and a happy new year!
Comment 9 ajasja 2007-12-31 16:56:42 UTC
I figured something out: if I change the platform of the (main) project to the Built-in JRuby (1.0.3) then the slow
indexing at startup does not occur (it only reindexes all project files).

But if I try to run the project I get "Missing the Rails 2.0.2 gem..." and I can't install any gems for that platform.
But I guess that's another issue:)

Comment 10 Martin Krauskopf 2008-01-02 15:50:39 UTC
Might be dupe of issue 124444?
Comment 11 ajasja 2008-01-07 21:54:08 UTC
It probably is. I also wiped my user dir and now everything works fine again:) 
Comment 12 Petr Jiricka 2008-01-11 14:54:29 UTC
Ok, marking as duplicate of 124444.

*** This issue has been marked as a duplicate of 124444 ***