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 35974 - Cannot use Ant build target due to OutOfMemoryError
Summary: Cannot use Ant build target due to OutOfMemoryError
Status: VERIFIED WORKSFORME
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 3.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2003-09-09 15:34 UTC by Jan Becicka
Modified: 2005-07-15 07:42 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Steps to run Ant builds repeatedly; no apparent memory leak (1.78 KB, text/plain)
2003-12-24 21:21 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Becicka 2003-09-09 15:34:51 UTC
Build 200309090000, Windows XP, Java HotSpot(TM) 
Client VM 1.4.2-rc-b23

I created a new java projects from existing 
sources (I used openide). I tried to create a new 
ant build target. But when I tried to build this 
target, ant build failed with OutOfMemoryError:

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

running IDE with -Xmx256m helps. Ant should be  
probably executed with -Xmx option.
Comment 1 Jesse Glick 2003-09-09 15:55:37 UTC
Can this be easily reproduced at once on all platforms using a regular
projects build and a fresh user directory? If so, please attach
details... I see OOME's from time to time with Ant - never right away,
only after prolonged usage; haven't had any success capturing the
event with a heap debugger yet.
Comment 2 Marek Grummich 2003-09-10 10:49:14 UTC
Build 200309100000, Linux RedHat 9, j2sdk1.4.2-build28

I tried to repeat steps described above (openide sources, new ant
build target) and I was able to build a project without troubles first
time.  When I launched a building second time, I encountered a
described exception after while.
The system is out of resources.
Consult the following stack trace for details.
java.lang.OutOfMemoryError

/space/cvs-netbeans/nb_all/openide/build.xml/build [302] Compile
failed; see the compiler error output for details.
BUILD FAILED

Total time: 2 minutes 15 seconds
Compilation finished. Errors: 1, warnings: 0.
Comment 3 Jan Becicka 2003-09-10 14:42:42 UTC
See issue 36011
Comment 4 pferreira 2003-09-19 10:22:52 UTC
Hi,

I have some additional comments to this.

I have been using the IDE to build an APACHE TORQUE database, and I 
ran into the same problem.

I´m running

Netbeans Version 3.5 (BUILD 200306022350) 
Java 1.4.2
Java VM (Hotspot) 1.4.2-b28
Win XP 5.1 (I assume this means SP1)

I looked into the problem with PERFMON, and there seems to be a 
memory leak when executing an ANT build within the IDE.
I ran builds, one after the other, with no changes to the torque 
propertis or build file, and the PERFMON showed the memory of the 
process increasing by something between 12000 K - 16000 K after each 
build, which never came down until I hit the Out Of Memory Exception.
Comment 5 Jesse Glick 2003-10-02 00:42:32 UTC
Possible dupe of issue #36393 - not confirmed.
Comment 6 Vitezslav Stejskal 2003-11-24 16:16:31 UTC
In projects prototype this was probably caused by issue #36011. I am
still leaving this open since this was also reported for 3.5 version.
Removing the PROJECTS keyword, please evaluate. Thanks.

(As described in
http://www.netbeans.org/servlets/ReadMsg?msgId=619519&listName=nbdiscuss
the current work on projects prototype has been stopped.)
Comment 7 Jesse Glick 2003-12-09 19:53:16 UTC
If any OOME is reproducible using a well-defined sequence of
operations in a current trunk build, please attach details.
Comment 8 Jesse Glick 2003-12-19 15:11:40 UTC
Still no reliable test case for this. QA take note.
Comment 9 Jesse Glick 2003-12-24 21:20:34 UTC
Cannot reproduce any OOME; see attached detailed steps to try.
Comment 10 Jesse Glick 2003-12-24 21:21:11 UTC
Created attachment 12673 [details]
Steps to run Ant builds repeatedly; no apparent memory leak
Comment 11 Marian Mirilovic 2005-07-15 07:42:25 UTC
closed