title: Optimizing JVM and Java compiler for short programs (e.g. utilities)
body: <p>I'm working on optimizing our CI/CD. One of the parts is optimizing Maven builds. The only things I've found so far that helped me to speed up build x2 are setting Maven options to </p>
  
  <pre><code>MAVEN_OPTS="-XX:+TieredCompilation -XX:TieredStopAtLevel=1"
  </code></pre>
  
  <p>and running Maven in parallel using 2 threads per CPU:</p>
  
  <pre><code>mvn -T 2C install
  </code></pre>
  
  <p>I'm using Oracle JDK 8 and I wonder if there are any JVM options might be used to tune JVM itself (as Java is primary for high load long running servers but not utilities I assume)? Also maybe there some options for <code>javac</code> might be helpful? Thank you very much for any suggestions and help!</p>