You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This change introduces a heap size limitation for the Gradle daemon used
when updating the Gradle wrapper, defaults to 512m.
The heap size is limited to the globally configured limit, which
defaults to 512m. It can be configured on the repository level, but not
exceed the globally configured limit. A hard coded mimiumum heap size of
512m is enforced.
The configuration option is named `toolSettings`, which has two
properties for the maximum and initial heap size. See
`docs/usage/configuration-options#toolSettings` for more details.
Copy file name to clipboardExpand all lines: docs/usage/configuration-options.md
+30Lines changed: 30 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4690,6 +4690,36 @@ We recommend that you only configure the `timezone` option if _both_ of these ar
4690
4690
4691
4691
Please see the above link for valid timezone names.
4692
4692
4693
+
## toolSettings
4694
+
4695
+
When Renovate updates a dependency and needs to invoke processes leveraging Java, for example Gradle for [the `gradle-wrapper` manager](./modules/manager/gradle-wrapper/index.md), the repository's Gradle Wrapper will be invoked, if present.
4696
+
4697
+
The JVM heap size for the Java invocations is 512m by default.
4698
+
This can be overridden using the following options.
4699
+
4700
+
This option can be used on the repository level and in the [Renovate configuration](./self-hosted-configuration.md) using the following options.
4701
+
4702
+
<!-- prettier-ignore -->
4703
+
!!! note
4704
+
The JVM memory settings specified in the global self-hosted configuration set by the administrator in [`toolSettings.jvmMaxMemory`](./self-hosted-configuration.md) limits the memory settings for all repositories.
4705
+
The default limit for all repositories is 512m.
4706
+
4707
+
<!-- prettier-ignore -->
4708
+
!!! note
4709
+
The JVM memory settings are considered for the `gradle-wrapper` manager.
4710
+
4711
+
### jvmMaxMemory
4712
+
4713
+
Maximum heap size in MB for Java VMs.
4714
+
Defaults to `512` for both the repository level and self-hosted configuration.
4715
+
4716
+
To allow repositories to use _more_ than 512m of heap during the Gradle Wrapper update, configure the `jvmMaxMemory` option in the [`toolSettings.jvmMaxMemory`](./self-hosted-configuration.md).
4717
+
4718
+
### jvmMemory
4719
+
4720
+
Initial heap size in MB for Java VMs. Must be less than or equal to `jvmMaxMemory`.
4721
+
Defaults to `jvmMaxMemory`.
4722
+
4693
4723
## updateInternalDeps
4694
4724
4695
4725
Renovate defaults to skipping any internal package dependencies within monorepos.
'Tool specific configuration. Global self-hosted configuration takes precedence.',
3359
+
type: 'object',
3360
+
default: {
3361
+
jvmMaxMemory: 512,
3362
+
jvmMemory: 512,
3363
+
},
3364
+
cli: false,
3365
+
},
3366
+
{
3367
+
name: 'jvmMaxMemory',
3368
+
description:
3369
+
'Maximum JVM memory in MB to use for updates that use a Java VM, like the Gradle Wrapper, defaults to 512. Repo configuration for this value will be ignored if it exceeds the global configuration for `manager.jvmMaxMemory`',
3370
+
type: 'integer',
3371
+
parents: ['toolSettings'],
3372
+
cli: false,
3373
+
env: false,
3374
+
},
3375
+
{
3376
+
name: 'jvmMemory',
3377
+
description:
3378
+
'Initial JVM memory in MB to use for updates that use a Java VM, like the Gradle Wrapper, defaults to `jvmMaxMemory`. Repo configuration for this value will be ignored if it exceeds the global configuration for `manager.jvmMaxMemory`',
0 commit comments