Performance tuning on Helm

28 views
Skip to first unread message

Komgrit Aneksri

unread,
Mar 6, 2025, 3:42:58 AMMar 6
to go-cd
Hi GoCD team,

I want to do GoCD server performance tuning.


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

Chad Wilson

unread,
Mar 6, 2025, 4:32:46 AMMar 6
to go...@googlegroups.com
--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
--
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 go-cd+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/go-cd/5bbeb104-2edc-4bdd-be0e-c6d4a8cdd9c9n%40googlegroups.com.

Komgrit Aneksri

unread,
Mar 20, 2025, 10:30:10 PMMar 20
to go-cd
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

Komgrit Aneksri

unread,
Mar 20, 2025, 10:33:18 PMMar 20
to go-cd
Sorry I forgot refer System properties garbage collection link
https://docs.gocd.org/23.1.0/advanced_usage/config_repo.html

Regards,
Komgrit



Chad Wilson

unread,
Mar 20, 2025, 11:17:42 PMMar 20
to go...@googlegroups.com
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



Komgrit Aneksri

unread,
Mar 22, 2025, 1:03:06 PMMar 22
to go-cd
Hello Chad,

Thank you for your answer again.

I deployed as below 

server:
  env:
    goServerJvmOpts: "-Xms4g -Xmx8g -Dgo.config.repo.gc.periodic=true"

Regards,
Komgrit

Reply all
Reply to author
Forward
0 new messages