running windows this is what I have in my jenkins.xml file:
<executable>%BASE%\jre\bin\java</executable>
<arguments> -Xrs -Xmx1024m -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -Djenkins.branch.WorkspaceLocatorImpl.PATH_MAX=25 -Dhudson.model.DirectoryBrowserSupport.CSP="sandbox allow-scripts allow-same-origin; default-src 'none'; img-src 'self' data: ; style-src 'self' 'unsafe-inline' data: ; script-src 'self' 'unsafe-inline' 'unsafe-eval';" -jar "%BASE%\jenkins.war" --httpPort=-1 --httpsPort=443 --httpsKeyStore="C:\keys\keystore" --httpsKeyStorePassword="mypass" --webroot="%BASE%\war" </arguments>
If I try changing increasing the Xmx setting or adding an Xms setting the jenkins service refuses to start. I have to change it to exactly -Xmx1024m. Why could this be?