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.
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.
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.
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.
See issue 36011
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.
Possible dupe of issue #36393 - not confirmed.
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.)
If any OOME is reproducible using a well-defined sequence of operations in a current trunk build, please attach details.
Still no reliable test case for this. QA take note.
Cannot reproduce any OOME; see attached detailed steps to try.
Created attachment 12673 [details] Steps to run Ant builds repeatedly; no apparent memory leak
closed