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 48185 - [40cat] Build project - OutOfMemory
Summary: [40cat] Build project - OutOfMemory
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 4.x
Hardware: PC Windows ME/2000
: P2 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2004-08-30 17:01 UTC by meliandra
Modified: 2004-08-31 14:13 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description meliandra 2004-08-30 17:01:11 UTC
[ BUILD # : 200408191357 ]
[ JDK VERSION : J2SE 1.5.0 ]

That's the result of build project.

The system is out of resources.
Consult the following stack trace for details.

java.lang.OutOfMemoryError
	<<no stack trace available>>
BUILD FAILED (total time: 31 seconds)
Comment 1 Marian Mirilovic 2004-08-31 07:13:32 UTC
meliandra,

please provide more informations !

What was your workflow before OOME, is it 100 % reproducible, try to
run Garbage Collector and try the same action again - is it
reproducible, you HW description (RAM, ....) ?

Thanks for report
Comment 2 meliandra 2004-08-31 08:56:00 UTC
I started the ide.
Then I selected build project.
My project consist of ~1600 classes.
CPU 2,4 GHz, 1 GB RAM
I haven't change any ide memory settings.

I can "build" the whole project if I change the target directory.
Yesterday I've installed the new q-build and forgot to change the
target directory. So Netbeans compiled everything. Today I noticed
this and changed it. Now I get compilation errors. So it seems that
there's a problem if you compile a huge number of classes.

For your information
 - There a call regarding performance during starting Netbeans. It
takes over ten minutes on my machine.
 - I have also a lot of jars and compiled classes  (24,000) without
sources in my classpath. 

Comment 3 Jesse Glick 2004-08-31 14:13:08 UTC
OK, for very large individual compilations - i.e. when you have a
large number of sources in a single package root, and perhaps also
when the classpath is very large - javac simply requires more memory,
because it needs to work with all those files at once. You will need
to increase the -Xmx setting, e.g. in your netbeans.conf file. I think
the default is currently 120Mb; with a gig of RAM you can afford to
increase that.

Or of course you could split up your sources into smaller modules, but
this may or may not be an option depending on how you work and the
rest of your team.

I have no idea why starting the IDE would take ten minutes under any
circumstances, but that is probably something unrelated. Might have to
do with having a huge number (not size) of JARs in the classpath, or
having large dirs of compiled classes not in JARs.