0.10.0 "Picked up _JAVA_OPTIONS: -Xmx..."

828 views
Skip to first unread message

Ed Donahue III

unread,
Feb 17, 2016, 2:27:17 PM2/17/16
to Jenkins Mesos Plugin
Is there a way to suppress this error?  It stated happening with version 0.10.0, when I revert back to 0.9.0 it goes away.

I have some grep and groovy stuff that now breaking because this displays anytime mvn gets executed.


/bin/bash /tmp/hudson7923550142805012471.sh
Picked up _JAVA_OPTIONS: -Xmx256m


$ /home/jenkins/tools/hudson.tasks.Maven_MavenInstallation/maven-3.3.3/bin/mvn -DTICKET=T-1001 clean
Picked up _JAVA_OPTIONS: -Xmx256m
[INFO] Scanning for projects...

Geoffroy Jabouley

unread,
Feb 17, 2016, 3:45:33 PM2/17/16
to Ed Donahue III, Jenkins Mesos Plugin

--
You received this message because you are subscribed to the Google Groups "Jenkins Mesos Plugin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkins-meso...@googlegroups.com.
To post to this group, send email to jenkin...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkins-mesos/6abefd86-050c-47cf-8091-ae236f91c69b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Carlos Sanchez

unread,
Feb 18, 2016, 4:12:23 AM2/18/16
to Jenkins Mesos Plugin
It is not an error, it is just the jvm printing that message when the env var _JAVA_OPTIONS is set

The JDK9 doesn't print it

--

Geoffroy Jabouley

unread,
Feb 18, 2016, 4:22:40 AM2/18/16
to Carlos Sanchez, Jenkins Mesos Plugin
Thanks

does it means that for each java process started inside a Mesos slave (maven for example), the content of _JAVA_OPTIONS is taken as parameter?

So if i create a Jenkins slave with 1024MB of RAM, then my maven build will automatically get a -Xmx1024m flag if i don't specify it on the command line?

Carlos Sanchez

unread,
Feb 18, 2016, 4:41:07 AM2/18/16
to Jenkins Mesos Plugin
On Thu, Feb 18, 2016 at 10:22 AM, Geoffroy Jabouley <geoffroy...@gmail.com> wrote:
Thanks

does it means that for each java process started inside a Mesos slave (maven for example), the content of _JAVA_OPTIONS is taken as parameter?

not a parameter but an environment variable honored by the jvm
 

So if i create a Jenkins slave with 1024MB of RAM, then my maven build will automatically get a -Xmx1024m flag if i don't specify it on the command line?

not the full cgroups memory but the memory you set in the field "Executor memory" 

The total memory for the Mesos task or Docker container is derived from the following calculation: Jenkins Slave Memory in MB + (number of Executors in the slave * Jenkins Executor Memory in MB).
Reply all
Reply to author
Forward
0 new messages