fabric8-services / fabric8-tenant-jenkins

Generates Jenkins tenant namespace YAML
Apache License 2.0
2 stars 14 forks source link

Optimize Jenkins performance to fix slow booting #114

Closed hrishin closed 6 years ago

hrishin commented 6 years ago

Jenkins works very slow during first boot and unidling phase. It turns out that JVM Garbage Collector (GC) threads occupies most of CPU aggressively to avail more heap memory because initial heap size is very less. Hence this long pause of GC freeze the Jenkins application to execute. This patch tweaks few JVM GC parameters to set enough heap memory (Xms) that preventing GC to kick in on Jenkins boot. Also reduces the number of GC threads to prevent it from using all processor cores.

Fixes https://github.com/openshiftio/openshift.io/issues/3956

Related https://github.com/openshiftio/openshift.io/issues/3861

Thanks! @sthaha 0/

fabric8cd commented 6 years ago

PR now available for testing: Launch in OpenShift.io and click the update tenant button

fabric8cd commented 6 years ago

PR now available for testing: Launch in OpenShift.io and click the update tenant button

fabric8cd commented 6 years ago

PR now available for testing: Launch in OpenShift.io and click the update tenant button

rupalibehera commented 6 years ago

@piyush1594 @hrishin is this the only PR for improving performance ? we do not have any PR in the base image right ?

piyush-garg commented 6 years ago

@rupalibehera This is the only PR, there was one in base image but after this PR, openshift-base PR is not required and has been closed.

rupalibehera commented 6 years ago

@piyush1594 thanks I will merge this then