title: Daemon is stopping immediately JVM garbage collector thrashing and after running out of JVM memory
body: <p>When I build multi module java project using gradle 6.0,when I add >30 modules.Throw this error:</p>
  
  <pre><code>Gradle Daemon started in 2 s 267 ms
  
  &gt; Configure project :soa-misc
  "/opt/dabai/tools/jdk1.8.0_211/jre/lib/ext/"
  null
  Expiring Daemon because JVM heap space is exhausted
  Daemon will be stopped at the end of the build after running out of JVM memory
  Expiring Daemon because JVM heap space is exhausted
  Expiring Daemon because JVM heap space is exhausted
  Expiring Daemon because JVM heap space is exhausted
  Expiring Daemon because JVM heap space is exhausted
  Expiring Daemon because JVM heap space is exhausted
  Expiring Daemon because JVM heap space is exhausted
  Expiring Daemon because JVM heap space is exhausted
  Expiring Daemon because JVM heap space is exhausted
  Expiring Daemon because JVM heap space is exhausted
  Expiring Daemon because JVM heap space is exhausted
  Expiring Daemon because JVM heap space is exhausted
  Daemon is stopping immediately JVM garbage collector thrashing and after running out of JVM memory
  </code></pre>
  
  <p>What I am tried to add parameter in my <code>$HOME/.gradle/gradle.properties</code>:</p>
  
  <pre><code>org.gradle.jvmargs=-Xmx8096m -XX:MaxPermSize=8096m -XX:+HeapDumpOnOutOfMemoryError
  </code></pre>
  
  <p>But the problem not solved,what should I do to fix?</p>