Starting a Gradle Daemon, 1 busy and 6 stopped Daemons could not be reused, use --status for details

前端 未结 3 2354
走了就别回头了
走了就别回头了 2021-01-03 17:59

When I was running the gradle clean command, I got the following message

Starting a Gradle Daemon, 1 busy and 6 stopped Daemons could not

相关标签:
3条回答
  • 2021-01-03 18:38

    Just add two lines in your gradle properties:

    org.gradle.daemon=true
    
    org.gradle.parallel=true
    
    0 讨论(0)
  • 2021-01-03 18:40

    Stopping an existing Daemon:

    If you want to explicitly stop running Daemon processes for any reason, just use the command gradle --stop.

    Note: for your consideration the gradle --stop command won’t stop daemons running with a different version of Gradle.

    How to kill all Daemon process on my machine?

    Gradle will kill any Daemon that has been idle for 3 hours or more, so you don’t have to worry about cleaning them up manually.

    Resource Link: Gradle Daemon Issue Details

    So the command and output are given below:

    $ gradle --stop
    Stopping Daemon(s)
    2 Daemons stopped
    

    After stopping daemons, status will be look like below:

    $ gradle --status
    No Gradle daemons are running.
       PID STATUS   INFO
      8027 STOPPED  (stop command received)
      9347 STOPPED  (stop command received)
     12448 STOPPED  (stop command received)
     11506 STOPPED  (stop command received)
     11727 STOPPED  (by user or operating system)
      4786 STOPPED  (by user or operating system)
     14569 STOPPED  (by user or operating system)
     31237 STOPPED  (by user or operating system)
    

    If you are stuck with gradle build running, you can to through this post: Stuck with Gradle Build Running

    0 讨论(0)
  • 2021-01-03 18:40

    I solve it with another method in other post. By removing folders like 4.4 4.6 5.4.1 5.5 in directory as below

    /users/[username]/.gradle/daemon

    java.lang.OutOfMemoryError: GC overhead limit exceeded

    0 讨论(0)
提交回复
热议问题