Adding to the same JVM opts the relevant args like the below should do it.
The default cron is weekly on Sunday so you don't need to override that if
you don't want to

 -Dgo.config.repo.gc.periodic=true

See the other options per
https://docs.gocd.org/current/advanced_usage/config_repo.html


On Fri, 21 Mar 2025, 10:30 Komgrit Aneksri, <[email protected]> wrote:

> Thank you Chad,
>
> And I want to do the garbage collection after I found this warning message
>
> *Action required: Run 'git gc' on config.git repo21 Mar, 2025 at 08:28:15
> Local Time*
>
> Number of loose objects in your Configuration repository(config.git) has
> grown beyond the configured threshold. As the size of config repo
> increases, the config save operations tend to slow down drastically. It is
> recommended that you run 'git gc' from '<go server installation
> directory>/db/config.git/' to address this problem. Go can do this
> automatically on a periodic basis if you enable automatic GC.
>
> How to configure System properties that affect periodic garbage
> collection in helm?
>
> Best Regards,
> Komgrit
>
> On Thursday, March 6, 2025 at 4:32:46 PM UTC+7 Chad Wilson wrote:
>
>> --set "server.env.goServerJvmOpts=-Xms4g -Xmx8g"
>>
>> ...or the equivalent inside a values.yaml override:
>>
>> server:
>>   env:
>>     goServerJvmOpts: "-Xms4g -Xmx8g"
>>
>> There are multiple ways, but this is the easiest and most helm-native. It
>> maps to the env var documented for the container image under "Tweaking JVM
>> options" at https://hub.docker.com/r/gocd/gocd-server/
>>
>> -Chad
>>
>> On Thu, 6 Mar 2025 at 16:43, Komgrit Aneksri <[email protected]> wrote:
>>
>>> Hi GoCD team,
>>>
>>> I want to do GoCD server performance tuning.
>>>
>>> And I read this page
>>> https://docs.gocd.org/current/installation/performance_tuning.html
>>>
>>> My current GoCD server installed by helm.
>>>
>>> How to perform tunning JVM in Helm value as below. Could you suggest me?
>>>
>>> # We recommend that you begin with the index `100` and increment the
>>> index for each system property. # use minimum JVM heap of 4gb
>>> wrapper.java.additional.100=-Xms4g # use maximum JVM heap of 8gb
>>> wrapper.java.additional.101=-Xmx8g
>>>
>>> Regards,
>>>
>>> Komgrit
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "go-cd" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To view this discussion visit
>>> https://groups.google.com/d/msgid/go-cd/5bbeb104-2edc-4bdd-be0e-c6d4a8cdd9c9n%40googlegroups.com
>>> <https://groups.google.com/d/msgid/go-cd/5bbeb104-2edc-4bdd-be0e-c6d4a8cdd9c9n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "go-cd" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion visit
> https://groups.google.com/d/msgid/go-cd/0119717d-838c-4eb3-b557-89ba254ba169n%40googlegroups.com
> <https://groups.google.com/d/msgid/go-cd/0119717d-838c-4eb3-b557-89ba254ba169n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/go-cd/CAA1RwH9O3yMpLZgUv9xfZu3YY5CfZ7OjVGK7h7moY%2BHx8Zpwmg%40mail.gmail.com.

Reply via email to