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 47626 - [40cat] OOME after resolving conflict
Summary: [40cat] OOME after resolving conflict
Status: RESOLVED WORKSFORME
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 4.x
Hardware: Macintosh Mac OS X
: P1 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2004-08-21 08:20 UTC by deadpoet
Modified: 2004-10-25 13:10 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Output captured from the Console (7.75 KB, text/plain)
2004-08-21 08:26 UTC, deadpoet
Details

Note You need to log in before you can comment on or make changes to this bug.
Description deadpoet 2004-08-21 08:20:36 UTC
I create a new project using "Java Project with Existing Sources". 
Resolved the test-sources folder conflict  due to a defect (BugID 
47609). Then add all the jar files needed for the new project 
including the JUnit jar. After that the whole IDE freezes.
Comment 1 deadpoet 2004-08-21 08:26:23 UTC
Created attachment 17007 [details]
Output captured from the Console
Comment 2 Marian Mirilovic 2004-08-21 09:36:33 UTC
there is OutOfMemoryException 

Cheong,
could you tell us more informations ?  Build number, JDK (or attach
you message.log file), RAM , have you changed Xmx, Xms .... ?
Comment 3 deadpoet 2004-08-21 10:47:58 UTC
Oops, so sorry. My environment is NB 4.0Beta1, OSX 10.3.5, Java 1.4.2_05-141, 2GB of 
ram. I wanted to set to a larger memory  but now NB 4.0 OSX doesn't come with the 
launcher and i dont't know how to do it now.

I tried to do a Ctrl-/ but doesn't seems to be able to force a dump. I encountered these 
freezes  about 3 -4 times in  total in the past using the last Q Build just before the Beta1. 
They all occur immediately after i try to create a new project from existing sources and 
resolving the test-sources folder conflict and adding my external jar files.  After i kill 
NB4.0  and re-run it, i had to resolve the test-sources conflict and setup the external jar 
files again.

Hope this helps.
Comment 4 Jesse Glick 2004-08-21 18:01:06 UTC
No particular reason to think this is projects-related; adding JARs to
the classpath is more likely to consume a lot of memory due to
classpath scanning. But without steps to reproduce and a memory
profiler, one can only guess.
Comment 5 Antonin Nebuzelsky 2004-08-25 13:51:54 UTC
How many JARs do you have? How many java files in them?

Isn't this issue in fact the following two issues combined? Please,
see issue 47910 and issue 47870 and let us know. Thanks.
Comment 6 deadpoet 2004-08-25 16:28:44 UTC
I have a total of 17 jars which total up to 685 classes. Is there a better way to count the 
classes in the jar file? I had to do it manually.
Comment 7 Antonin Nebuzelsky 2004-08-25 17:19:05 UTC
Hmm, it is not too much. Should not cause OOME from classpath scanning
and parsing.

Milane, please, could you try reproducing this and finding more
details about it? Thanks.
Comment 8 Milan Kubec 2004-08-26 12:25:22 UTC
Perhaps disapointing but I haven't managed to reproduce the problem.
No more deatils. Sorry.
Comment 9 deadpoet 2004-08-26 17:14:25 UTC
Is there any way i can force a dump while the IDE appears to be frozen? I think the ctrl-/ is 
suppose to do the job, but i dont seems to  be able to do that. It happened to me about 3
-4 times from the pre Beta1 and Beta1 build.

I am using Mac OSX 10.3.5, java 1.4.2_05, NB Beta1
Comment 10 Jesse Glick 2004-08-27 03:28:43 UTC
Ctrl-\ not Ctrl-/, and in the terminal window you start NB from, not
in the app itself. (Definitely works on Unix, but I don't know about
Macs.)
Comment 11 Jesse Glick 2004-10-21 04:44:09 UTC
No thread dump provided for a long time, closing.
Comment 12 Jiri Kovalsky 2004-10-25 13:10:54 UTC
This issue was reported by NetCAT program member.