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.
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?
*** Issue 67672 has been marked as a duplicate of this issue. ***
Java projects category I guess
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.
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.
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.
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?
Yes it would be great, thanks.