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 131216 - Can't compile packages which has many files.
Summary: Can't compile packages which has many files.
Status: RESOLVED INVALID
Alias: None
Product: projects
Classification: Unclassified
Component: Ant Project (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Milan Kubec
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-26 17:55 UTC by sapanparikh18
Modified: 2008-03-26 23:22 UTC (History)
0 users

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 sapanparikh18 2008-03-26 17:55:14 UTC
One more issue when NetBeans breaks in real production environment.
When i build my web project which has thousands of classes and jsps. following error occurs.

The system is out of resources.
Consult the following stack trace for details.
java.lang.OutOfMemoryError
C:\Development\8.0Server\nbproject\build-impl.xml:364: The following error occurred while executing this line:
C:\Development\8.0Server\nbproject\build-impl.xml:190: Compile failed; see the compiler error output for details.
BUILD FAILED (total time: 37 seconds)

The first link points to following line in Build-impl
        <webproject2:javac destdir="${build.classes.dir}"/>
and second link points to

                <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}"
encoding="${source.encoding}" executable="${platform.javac}" fork="yes" includeantruntime="false"
source="${javac.source}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}">

Log file at C:\Documents and Settings\sapan\.netbeans\6.0\var\log is not updated when this happens so no point in
sending that..
Comment 1 Jesse Glick 2008-03-26 18:10:53 UTC
http://wiki.netbeans.org/FaqOutofMemoryOnCompile
Comment 2 sapanparikh18 2008-03-26 22:14:34 UTC
Well do you really think that it's true? This issue doesn't show up when I use Eclipse for same project. I think that
increasing the memory is a work around and not a solution. When this issue happens on my NetBeans IDE I manually compile
the packages/files till they are not in manageable number, can't this be done automatically? 
Comment 3 Jesse Glick 2008-03-26 23:22:46 UTC
Javac requires a certain amount of memory for compiling a source root of a certain size. If your source root is big, you
can ask for more memory, and then it will work. There is no need to manually compile some subset of your files.