title: How to force Intellij IDEA to use only one gradle daemon?
body: <p>I know it may look like a duplicate of <a href="https://stackoverflow.com/questions/25422163/how-to-disable-gradle-daemon-in-intellij-idea">How to disable Gradle daemon in IntelliJ Idea?</a>, but I don't want to completely disable gradle daemon. I just want to use only one daemon, not many of them.</p>
  
  <p>The problem I have is that to successfully run some gradle tasks I have to give about 2GB RAM to gradle. And my system only had 8GB of memory.</p>
  
  <p>The problem is that when I perform certain actions (I think it's "refresh gradle projects", there are 2 of them) - I sometiems get 2 or more gradle daemons running. Each consuming 2GB of memory.</p>
  
  <p>Is it possible to use only one daemon or somehow automatically stop those extra daemons?</p>