Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

I run out of memory — how much is needed, exactly how do you at Java Software call Javadoc, and how long does it take?

0
Posted

I run out of memory — how much is needed, exactly how do you at Java Software call Javadoc, and how long does it take?

0

Javadoc does take a lot of memory because (unlike javac) it must simultaneously load all the classes being documented, plus any that are referenced (such as superclasses and superinterfaces). Javadoc 1.1.x uses 40 MB of memory to generate the JDK 1.1.x documentation (22 packages). Javadoc 1.2 requires 120 MB of memory to generate the JDK 1.2 documentation (55 packages), which takes 8 minutes on an Ultra Enterprise with 512 MB of memory. Generating docs for all our public classes including sun.* (129 packages) requires 200 MB and takes 15 minutes on that same machine. The javadoc 1.1.x command is shown with the -J-mx40m option below. Also, there is a bug in JDK 1.1.2 (fixed in 1.2), where the “ms” value must be smaller than (not equal to) the “mx” value. Without showing the complexity of environment variables and paths, the following is effectively the command that we run on the JDK 1.1 source code: javadoc -J-ms39m -J-mx40m \ -classpath /usr/latest/build/solaris/classes \ -d /usr/lates

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123