Skip to content
This repository has been archived by the owner on Apr 29, 2020. It is now read-only.

Give jenkins more memory #83

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Give jenkins more memory #83

wants to merge 1 commit into from

Conversation

magik6k
Copy link
Contributor

@magik6k magik6k commented Dec 5, 2017

By default Jenkins uses 256M, which makes it painfully slow (caused by GC) for any deployment that has more than few light jobs. Picked 4G as it seems to be a reasonable amount of memory.

(I'm not sure if this is the right place to put this)

@magik6k magik6k requested a review from victorb December 5, 2017 16:11
@ghost ghost assigned magik6k Dec 5, 2017
@ghost ghost added the pending review label Dec 5, 2017
@victorb
Copy link
Collaborator

victorb commented Dec 5, 2017

Thanks for the patch @magik6k. You know any way of checking if this is already set? Because if I run docker stats jenkins, I can see that the container is using 2.1GB of memory already. Just want to be able to verify that it's actually using more memory. The box also has 16GB of memory, so we can increase it to 12GB or something like that, nothing but jenkins runs there basically.

@magik6k
Copy link
Contributor Author

magik6k commented Dec 5, 2017

As far as I know it is set via java argument, so do ps aux | grep java | grep jenkins and then look for -Xmx[something]m

Java has large overhead, Xmx is only the heap memory - it's not recommended to assign more than 50% of host memory.

You can debug memory/cpu use with tools like https://visualvm.github.io/, AFAIK possible to use it remotely.

@victorb victorb removed their request for review April 26, 2019 13:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants