title: Is there a way to speed up Javadoc (takes 7 minutes)
body: <p>I am building a Javadoc for a module with 2,509 classes. This currently takes 7 min or 6 files per second.</p>
  
  <p>I have tried</p>
  
  <pre><code>mvn -T 1C install
  </code></pre>
  
  <p>However <code>javadoc</code> only uses 1 CPU.  Is there a way to use more and/or speed up?</p>
  
  <p>I am using <strong>Oracle JDK 8 update 112</strong>. My dev machine has 16 cores and 128 GB of memory.</p>
  
  <p>Running flight recorder I can see that there is only one thread <code>main</code></p>
  
  <p><a href="https://i.stack.imgur.com/K04Kl.png" rel="noreferrer"><img src="https://i.stack.imgur.com/K04Kl.png" alt="enter image description here"></a></p>
  
  <p>For those who are interested, I've used the following options:</p>
  
  <pre><code>&lt;plugin&gt;
      &lt;artifactId&gt;maven-javadoc-plugin&lt;/artifactId&gt;
      &lt;configuration&gt;
          &lt;additionalJOptions&gt;
              &lt;additionalJOption&gt;-J-XX:+UnlockCommercialFeatures&lt;/additionalJOption&gt;
              &lt;additionalJOption&gt;-J-XX:+FlightRecorder&lt;/additionalJOption&gt;
              &lt;additionalJOption&gt;-J-XX:StartFlightRecording=name=test,filename=/tmp/myrecording-50.jfr,dumponexit=true&lt;/additionalJOption&gt;
              &lt;additionalJOption&gt;-J-XX:FlightRecorderOptions=loglevel=debug&lt;/additionalJOption&gt;
          &lt;/additionalJOptions&gt;
      &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>NOTE: One workaround is to do:</p>
  
  <pre><code>-Dmaven.javadoc.skip=true
  </code></pre>