How to force Intellij IDEA to use only one gradle daemon?

barteks2x

I know it may look like a duplicate of How to disable Gradle daemon in IntelliJ Idea?, but I don't want to completely disable gradle daemon. I just want to use only one daemon, not many of them.

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.

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.

Is it possible to use only one daemon or somehow automatically stop those extra daemons?

Vampire

You can stop all currently running daemons with gradlew --stop. New deamons are only created if necessary. If e. g. a different Java version is used or different daemon arguments are needed and so on. You could maybe look with Sysinternals ProcessExplorer and compare the two processes to find where they differ to find a reason why two are created.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Java

How to change the version of the 'default gradle wrapper' in IntelliJ IDEA?

From Dev

How to debug specific build variant of Android Gradle project in IntelliJ IDEA?

From Dev

How to use an existing Gradle project in IntelliJ IDEA 13/14

From Dev

How to pass arguments to Gradle from IntelliJ IDEA

From Dev

How to add google play services in IntelliJ IDEA 13 with gradle

From Dev

How to use a "custom jar" in IntelliJ IDEA?

From Dev

How to add jars / dependecies via gradle in IntelliJ IDEA

From Dev

How to force compiler to use one core only?

From Dev

How to set system properties in IntelliJ IDEA 13 gradle task?

From Dev

How to disable Gradle daemon in IntelliJ Idea?

From Dev

How to use IntelliJ IDEA for Eclipse plugin development?

From Dev

How to force IntelliJ to use a different home folder

From Dev

How to force intellij idea to advice a override method

From Dev

Intellij IDEA and Gradle projects

From Dev

How to use custom sbt version in Intellij Idea?

From Dev

How to force IntelliJ IDEA to show welcome screen again?

From Dev

How can I force update all the snapshot Gradle dependencies in intellij

From Dev

How does one enable Infinitest on a gradle project in IntelliJ IDEA 15?

From Dev

How to use Processing 3 on IntelliJ IDEA?

From Dev

Is it possible to use an init.gradle script in IntelliJ Idea?

From Dev

Gradle daemon not reused when running in debug mode (in IntelliJ IDEA)

From Dev

How to pass arguments to Gradle from IntelliJ IDEA

From Dev

How to force symfony2 to use HTTPS only for one page

From Dev

How to use Library in IntelliJ IDEA

From Dev

How to add and use a jar library in IntelliJ IDEA?

From Dev

How to force intellij idea to advice a override method

From Dev

why use Gradle IntelliJ IDEA plugin?

From Dev

How to make gradle build use jdk 1.6 in IntelliJ IDEA

From Dev

How to format annotations in one line in Intellij Idea?

Related Related

  1. 1

    How to change the version of the 'default gradle wrapper' in IntelliJ IDEA?

  2. 2

    How to debug specific build variant of Android Gradle project in IntelliJ IDEA?

  3. 3

    How to use an existing Gradle project in IntelliJ IDEA 13/14

  4. 4

    How to pass arguments to Gradle from IntelliJ IDEA

  5. 5

    How to add google play services in IntelliJ IDEA 13 with gradle

  6. 6

    How to use a "custom jar" in IntelliJ IDEA?

  7. 7

    How to add jars / dependecies via gradle in IntelliJ IDEA

  8. 8

    How to force compiler to use one core only?

  9. 9

    How to set system properties in IntelliJ IDEA 13 gradle task?

  10. 10

    How to disable Gradle daemon in IntelliJ Idea?

  11. 11

    How to use IntelliJ IDEA for Eclipse plugin development?

  12. 12

    How to force IntelliJ to use a different home folder

  13. 13

    How to force intellij idea to advice a override method

  14. 14

    Intellij IDEA and Gradle projects

  15. 15

    How to use custom sbt version in Intellij Idea?

  16. 16

    How to force IntelliJ IDEA to show welcome screen again?

  17. 17

    How can I force update all the snapshot Gradle dependencies in intellij

  18. 18

    How does one enable Infinitest on a gradle project in IntelliJ IDEA 15?

  19. 19

    How to use Processing 3 on IntelliJ IDEA?

  20. 20

    Is it possible to use an init.gradle script in IntelliJ Idea?

  21. 21

    Gradle daemon not reused when running in debug mode (in IntelliJ IDEA)

  22. 22

    How to pass arguments to Gradle from IntelliJ IDEA

  23. 23

    How to force symfony2 to use HTTPS only for one page

  24. 24

    How to use Library in IntelliJ IDEA

  25. 25

    How to add and use a jar library in IntelliJ IDEA?

  26. 26

    How to force intellij idea to advice a override method

  27. 27

    why use Gradle IntelliJ IDEA plugin?

  28. 28

    How to make gradle build use jdk 1.6 in IntelliJ IDEA

  29. 29

    How to format annotations in one line in Intellij Idea?

HotTag

Archive