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 67670 - [50cat] Javadoc quits with OutOfMemoryError for large projects
Summary: [50cat] Javadoc quits with OutOfMemoryError for large projects
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 5.x
Hardware: All Windows ME/2000
: P3 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords: PERFORMANCE
: 67672 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-10-27 13:13 UTC by host
Modified: 2005-11-01 16:49 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 host 2005-10-27 13:13:10 UTC
I tried to create the Javadoc for a big project by selecting "Generate Javadoc
for Project" from the drop down menu of the project's node in the Project window.

After some time I got the following exception:
  javadoc: java.lang.OutOfMemoryError: Please increase memory.
  For example, on the Sun Classic or HotSpot VMs, add the option -J-Xmx
  such as -J-Xmx32m.

There should be a possibility to increase the memory for Javadoc generation
(such as you can increase the memory for building projects in the properties of
the project). ...or is there one specifically that I cannot find?
Comment 1 host 2005-10-27 13:18:36 UTC
*** Issue 67672 has been marked as a duplicate of this issue. ***
Comment 2 _ rkubacki 2005-10-31 17:07:04 UTC
Java projects category I guess
Comment 3 Tomas Zezula 2005-10-31 17:19:35 UTC
Are you using explicit or default java platform in the project?
In case of default platform the ant runs inside the IDE heap, the only way how to
increase the size is to change the IDE's heap size.
Better way is to use an explicit platform where you can change the heap size in
the project's customizer.
Comment 4 Tomas Zezula 2005-11-01 09:34:23 UTC
Works fine.
You have to specify the max heap size for the javadoc command.
In the project customizer/Documenting Panel add the
"-J-Xmx128m" into the Additional Javadoc Options text field, in this case the
javadoc command would have 128MB of memory available.
Comment 5 Tomas Zezula 2005-11-01 09:37:10 UTC
The value -J-Xmx128m should not be surrounded by ". I've added them to previous
command only to point out to the parameter. Sorry for that.
Comment 6 host 2005-11-01 15:11:11 UTC
Thanks for the help! So it is possible but actually very well hidden. So should
I open another enhancement issue telling that the setting of such options should
be made more transparent and/or better documented?
Comment 7 Tomas Zezula 2005-11-01 16:49:44 UTC
Yes it would be great, thanks.