Bug 83597 - Java search regularly hangs on "indexing files"
Summary: Java search regularly hangs on "indexing files"
Status: RESOLVED DUPLICATE of bug 80118
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Linux-GTK
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-25 06:19 EST by Mary Ellen Foster CLA
Modified: 2005-03-14 16:47 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mary Ellen Foster CLA 2005-01-25 06:19:51 EST
Quite often, eclipse stops being able to do any sort of Java-based search. The
symptom is always the same: the dialogue box just sits there forever. If I
choose "Details", then the status will be "Searching - N files to index" (N
varies; at the moment it's 1, but I've also seen other small numbers like 4 and
so on there).

Once eclipse gets into this state, no Java-based search will ever work again; I
have to do file-based searches instead (which always work). Closing and
reopening the project in question does nothing -- in fact, I just tried that,
and now it's saying "19 files to index" an still not completing. I generally
have to close and re-open eclipse to get Java searches to work again.

I can't tell what's going on when this happens, and nothing appears to go into
the .metadata/.log file or anything. Is there something further I can do to help
track this down, the next time it happens?

Eclipse 3.1M4
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)
Linux-GTK (based on Red Hat 9, but with many packages updated)
Comment 1 Frederic Fusier CLA 2005-01-25 07:57:04 EST
I see you're running eclipse using a Sun 1.5.0-b64 VM...
Can you make a try with a Sun 1.4.2 VM and let us know if this problem still occurs?
(FYI, Eclipse 3.1 targets:
http://www.eclipse.org/eclipse/development/eclipse_project_plan_3_1.html#TargetOperatingEnvironments)
Comment 2 Erez Tison CLA 2005-02-07 05:49:13 EST
this happens to me as well when running under Windows with JDK 1.4.2_03

try the following workaround which works for me: in the Java Search tab of the 
Search dialog, define a Working Set includes the source code scope you'd like 
to search and use it instead of the default Workspace scope, do this by using 
the Working Set radio button

Comment 3 Erez Tison CLA 2005-02-07 06:02:17 EST
one more comment: I sometimes had an "Out Of Memory" errors following the 
searhing problem described above, I changed my -vmargs settings and it seems 
that the search is now working fine

my settings are:
-vmargs -Xverify:none -XX:+UseParallelGC -XX:PermSize=20M -XX:MaxNewSize=32M -
XX:NewSize=32M -Xmx256m -Xms256m
Comment 4 Frederic Fusier CLA 2005-03-14 16:47:42 EST
Seems to be a duplicate as changing VM args solve the problem

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