[JIRA] (JENKINS-49317) Combination of '-daemon' and '-XX:+AlwaysPreTouch' will not let you use more than ~40% of all available memory

2 views
Skip to first unread message

jayanmn@gmail.com (JIRA)

unread,
May 19, 2018, 11:56:03 PM5/19/18
to jenkinsc...@googlegroups.com
Jayan MN commented on Bug JENKINS-49317
 
Re: Combination of '-daemon' and '-XX:+AlwaysPreTouch' will not let you use more than ~40% of all available memory

This affects what is written in blog : https://jenkins.io/blog/2016/11/21/gc-tuning/ : Tuning Jenkins GC For Responsiveness and Stability with Large Instances 

options "-server" and  -XX:+AlwaysPreTouch caused above error.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo

jayanmn@gmail.com (JIRA)

unread,
May 19, 2018, 11:58:02 PM5/19/18
to jenkinsc...@googlegroups.com
Jayan MN edited a comment on Bug JENKINS-49317
This affects what is written in blog : [ https://jenkins.io/blog/2016/11/21/gc-tuning/ ]  : Tuning Jenkins GC For Responsiveness and Stability with Large Instances 


options "-server" and  -XX:+AlwaysPreTouch caused above error.


 

Now large memory instances are very common. A fix  here will help Jenkins user experience and adoption

owen@nerdnetworks.org (JIRA)

unread,
Nov 28, 2019, 1:46:03 AM11/28/19
to jenkinsc...@googlegroups.com

This problem can be avoided by setting -Xms to a value less than half of physical RAM. I realize that there is some performance penalty to each allocation of more RAM above the min heap size value, but once allocated the JVM will not deallocate that heap, so this might only occur a couple of times in the Jenkins service life cycle.

This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages