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 171510 - Cannot open OpenJDK as project with existing sources (OOME)
Summary: Cannot open OpenJDK as project with existing sources (OOME)
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P2 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-04 15:57 UTC by Oleg Khokhlov
Modified: 2009-09-15 12:34 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
thread dump (11.15 KB, text/plain)
2009-09-04 15:58 UTC, Oleg Khokhlov
Details
attaching messages.log with exceptions (26.94 KB, application/x-compressed)
2009-09-07 15:12 UTC, Oleg Khokhlov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Oleg Khokhlov 2009-09-04 15:57:48 UTC
Tried to create big java project (OpenJDK) as project with existing sources and NB was completely frozen after some time
(during scanning). No OOMEs.

Product Version: NetBeans IDE Dev (Build 200909030951)
Java: 1.6.0_13; Java HotSpot(TM) Client VM 11.3-b02
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)
Comment 1 Oleg Khokhlov 2009-09-04 15:58:14 UTC
Created attachment 87128 [details]
thread dump
Comment 2 Vitezslav Stejskal 2009-09-07 10:20:31 UTC
I'm sorry, but the dump shows nothing. No activity, no deadlock, it doesn't even contain the 'Parsing & Indexing Loop'
thread. If this is reproducible please try again and use Profile Me! and attach the profiler snapshot here. It may also
be useful to run the IDE with -J-Dorg.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.level=FINE and attach it
here. Thanks
Comment 3 nleck 2009-09-07 10:31:14 UTC
I just attached a stack dump to bug#165137 where the IDE just locked up and needed to be killed. 
Comment 4 Oleg Khokhlov 2009-09-07 15:11:45 UTC
I have 2Gb of RAM on my machine and if I run nb with default memory settings I get OOMEs during scanning of this
project. And IDE is still somehow responsible (although slow).
If I set -J-Xmx1024m - it completely hangs after some time and no 'exception' signs in IDE. But in messages.log there
are a lot of exceptions.
Comment 5 Oleg Khokhlov 2009-09-07 15:12:26 UTC
Created attachment 87223 [details]
attaching messages.log with exceptions
Comment 6 David Strupl 2009-09-07 16:18:58 UTC
The exact steps to reproduce with a fresh checkout of OpenJDK and fresh install of NetBeans would be nice.
Comment 7 Vitezslav Stejskal 2009-09-08 10:10:20 UTC
Let's wait for Dusan to analyze this. IIRC we used to be able to index openJDK project with -Xmx256m. From your log I
can see that the IDE used -Xmx409m, which IMO should be enough.
Comment 8 Jiri Prox 2009-09-08 14:21:20 UTC
The OOME is throw also when opening OpenJDK as freefrom project
Comment 9 Jan Lahoda 2009-09-15 11:46:18 UTC
I was able to open OpenJDK project (jdk/make/netbeans/j2se) with -J-Xmx192m after this patch:
http://hg.netbeans.org/main-silver?cmd=changeset;node=3001175f7fd0
Comment 10 Dusan Balek 2009-09-15 12:34:14 UTC
Fixed in the current dev build.

http://hg.netbeans.org/main-silver?cmd=changeset;node=3001175f7fd0