Gradle Daemon Operations: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=Internal= * Gradle Operations * Gradle Daemon =Overview= =Status= Note that the command only shows the daemons correspondin...")
 
 
(7 intermediate revisions by the same user not shown)
Line 4: Line 4:
=Overview=
=Overview=
=Status=
=Status=
Note that the command only shows the daemons corresponding to the Gradle version that executes the command.
<syntaxhighlight lang='bash'>
./gradlew --status
</syntaxhighlight>
Note that only Daemons for the current Gradle version are displayed.
 
=Stop=
=Stop=
<syntaxhighlight lang='bash'>
./gradlew --stop
</syntaxhighlight>
Note that the command only stops the daemons corresponding to the Gradle version that executes the command.
Note that the command only stops the daemons corresponding to the Gradle version that executes the command.
=Logs=
<syntaxhighlight lang='text'>
~/.gradle/daemon/<version>
</syntaxhighlight>
=Debug=
{{Internal|Gradle_System_Properties#Attaching_a_Debugger_to_a_Gradle_Daemon|Gradle System Properties &#124; Attaching a Debugger to a Gradle Daemon}}
=Configuration=
==Set Memory per Daemon==
Add the following in the project's [[Gradle.properties#Overview|gradle.properties]]:
<syntaxhighlight lang='text'>
org.gradle.jvmargs=-Xmx4096M
</syntaxhighlight>

Latest revision as of 07:29, 29 April 2021

Internal

Overview

Status

./gradlew --status

Note that only Daemons for the current Gradle version are displayed.

Stop

./gradlew --stop

Note that the command only stops the daemons corresponding to the Gradle version that executes the command.

Logs

~/.gradle/daemon/<version>

Debug

Gradle System Properties | Attaching a Debugger to a Gradle Daemon

Configuration

Set Memory per Daemon

Add the following in the project's gradle.properties:

org.gradle.jvmargs=-Xmx4096M