Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8202549

Javadoc consumes up to 6.5G memory to work

XMLWordPrintable

      ADDITIONAL SYSTEM INFORMATION :
      Windows 10, JDK 1.8.161 and JDK 1.8.151, JavaDoc 3.0.0 and JavaDoc 2.9

      A DESCRIPTION OF THE PROBLEM :
      When preparing deployment of my project https://github.com/Cruisoring/functionExtensions/blob/master/src/main/java/io/github/cruisoring/function/WithValueReturned.java, I got many OutOfMemory errors even turned off DocLint by setting it to "none".

      Finally, by adding configuration to javaDoc plugin section as below:
            <plugin>
              <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-javadoc-plugin</artifactId>
              <version>3.0.0</version>
              <executions>
                <execution>
                  <id>attach-javadocs</id>
                  <goals>
                    <goal>jar</goal>
                  </goals>
                  <configuration>
                    <maxmemory>8192m</maxmemory>
                    <minmemory>1024m</minmemory>
                  </configuration>
                </execution>
              </executions>
            </plugin>

      The documents were generated and packaged successfully. I can see the peak consumption of the memory by javaDoc process has reached around 6.5G and that might mean something you can improve.

      To replicate the issue, please clone the repository from https://github.com/Cruisoring/functionExtensions and run "mvn javadoc:javadoc".

      Thanks for your attention.


            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: