Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Jenkins] Jenkins restarted frequently while using latest unreleased ks-jenkins #50

Open
JohnNiang opened this issue Dec 23, 2021 · 0 comments

Comments

@JohnNiang
Copy link
Contributor

What happened

Jenkins pod restarted frequently while using latest unreleased ks-jenkins for testing,

129dbb59d8d4dbd9de71d519efca8b8

with following JVM options:

-Xms1200m
-Xmx1600m
-XX:MaxRAM=2g
-Dhudson.slaves.NodeProvisioner.initialDelay=20
-Dhudson.slaves.NodeProvisioner.MARGIN=50
-Dhudson.slaves.NodeProvisioner.MARGIN0=0.85
-Dhudson.model.LoadStatistics.clock=5000
-Dhudson.model.LoadStatistics.decay=0.2
-Dhudson.slaves.NodeProvisioner.recurrencePeriod=5000
-Dhudson.security.csrf.DefaultCrumbIssuer.EXCLUDE_SESSION_ID=true
-Dio.jenkins.plugins.casc.ConfigurationAsCode.initialDelay=10000
-Djenkins.install.runSetupWizard=false
-XX:+UseG1GC
-XX:+UseStringDeduplication
-XX:+ParallelRefProcEnabled
-XX:+DisableExplicitGC
-XX:+UnlockDiagnosticVMOptions
-XX:+UnlockExperimentalVMOptions

BTW, I was using one of the following images to test ks-jenkins.

# DIGEST:sha256:7d252ffe7afb2c13bcc1b7d88f1eae7244513dfc14fe280d440e6aeb2f3ad7ff
ghcr.io/kubesphere/ks-jenkins:master
# Or
# DIGEST:sha256:d58eb71c7776f6eeccfd620b12d1bd4d3ecaad1ff7a9988d2ad5d72ed49ebe1f
kubespheredev/ks-jenkins:master

Potential solution

Use following JVM options for test:

-Xms1200m
-Xmx1600m
-XX:MaxRAM=2g
-Dhudson.slaves.NodeProvisioner.initialDelay=20
-Dhudson.slaves.NodeProvisioner.MARGIN=50
-Dhudson.slaves.NodeProvisioner.MARGIN0=0.85
-Dhudson.model.LoadStatistics.clock=5000
-Dhudson.model.LoadStatistics.decay=0.2
-Dhudson.slaves.NodeProvisioner.recurrencePeriod=5000
-Dhudson.security.csrf.DefaultCrumbIssuer.EXCLUDE_SESSION_ID=true
-Dio.jenkins.plugins.casc.ConfigurationAsCode.initialDelay=10000
-Djenkins.install.runSetupWizard=false

I request all contributors to test it using this approach, and give me a feedback below. If you have any other ideas on it, feel free to express it at below.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant