JDK8 or JDK11 to be used for Jenkins ?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

JDK8 or JDK11 to be used for Jenkins ?

mj1414...@gmail.com
Hello,
I'm trying to decide, whether I should use JDK8 or JDK11 to run Jenkins.
So far I have been using JDK8.

If I look at the documentation, I find:

"Installing Jenkins" https://www.jenkins.io/doc/book/installing/
points to
"Java Requirements" https://www.jenkins.io/doc/administration/requirements/java/
which says
  • "Java 8 runtime environments, both 32-bit and 64-bit versions are supported"

  • "Since Jenkins 2.164 and 2.164.1 [1], Java 11 runtime environments are supported

    • Running Jenkins with Java 11 is documented here

    • There are some precautions to take when upgrading from Java 8 to Java 11 in Jenkins, please follow these guidelines."

  • So this sounds like "both JDK8 and JDK11 are supported"
    But the "fine print" below JDK11 sounds different:
    https://www.jenkins.io/doc/administration/requirements/upgrade-java-guidelines/

    So what is the current recommendation:
    Use JDK8 ? JDK11 ?
    Give JDK11 a try and report issues ?
    Is an update planned to make JDK11 the preferred version ?

    Regards

    Martin

    --
    You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
    To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/8b37283f-47d9-495b-9086-2b8bd003876an%40googlegroups.com.
    Reply | Threaded
    Open this post in threaded view
    |

    Re: JDK8 or JDK11 to be used for Jenkins ?

    Tej Singh Rana
    Is an update planned to make JDK11 the preferred version ?
    I don't think so. 
    Depends on your Jenkins version. It matters when you use similar and above Jenkins 2.164.

    Regards, 

    On Fri, Dec 11, 2020 at 3:30 PM [hidden email] <[hidden email]> wrote:
    Hello,
    I'm trying to decide, whether I should use JDK8 or JDK11 to run Jenkins.
    So far I have been using JDK8.

    If I look at the documentation, I find:
    points to
    "Java Requirements" https://www.jenkins.io/doc/administration/requirements/java/
    which says
    • "Java 8 runtime environments, both 32-bit and 64-bit versions are supported"

    • "Since Jenkins 2.164 and 2.164.1 [1], Java 11 runtime environments are supported

      • Running Jenkins with Java 11 is documented here

      • There are some precautions to take when upgrading from Java 8 to Java 11 in Jenkins, please follow these guidelines."

    So this sounds like "both JDK8 and JDK11 are supported"

    So what is the current recommendation:
    Use JDK8 ? JDK11 ?
    Give JDK11 a try and report issues ?
    Is an update planned to make JDK11 the preferred version ?

    Regards

    Martin

    --
    You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
    To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/8b37283f-47d9-495b-9086-2b8bd003876an%40googlegroups.com.


    --
    ---------------------
    Tej Singh Rana

    --
    You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
    To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CADBoQTqcQT3uuVp1DLC%3D6j-osfMfJziT8zvDK9QSa-EKWceg6w%40mail.gmail.com.
    Reply | Threaded
    Open this post in threaded view
    |

    Re: JDK8 or JDK11 to be used for Jenkins ?

    Dirk Heinrichs-3
    In reply to this post by mj1414...@gmail.com
    Am Freitag, den 11.12.2020, 02:00 -0800 schrieb [hidden email]:

    I'm trying to decide, whether I should use JDK8 or JDK11 to run Jenkins.

    We run ours on 11.

    HTH...

    Dirk
    -- 
    Dirk Heinrichs
    Senior Systems Engineer, Delivery Pipeline
    OpenText ™ Discovery | Recommind
    Phone: +49 2226 15966 18
    Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach
    Vertretungsberechtigte Geschäftsführer Gordon Davies, Madhu Ranganathan, Christian Waida, Registergericht Amtsgericht Bonn, Registernummer HRB 10646
    This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden
    Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail sind nicht gestattet.

    --
    You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
    To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/1be39a0b9d46dac4884aed1d8058336f3ee57b68.camel%40opentext.com.

    signature.asc (235 bytes) Download Attachment
    Reply | Threaded
    Open this post in threaded view
    |

    Re: JDK8 or JDK11 to be used for Jenkins ?

    Mark Waite-2


    On Fri, Dec 11, 2020 at 5:01 AM 'Dirk Heinrichs' via Jenkins Users <[hidden email]> wrote:
    Am Freitag, den 11.12.2020, 02:00 -0800 schrieb [hidden email]:

    I'm trying to decide, whether I should use JDK8 or JDK11 to run Jenkins.

    We run ours on 11.


    We run ci.jenkins.io on Java 11.

     
    HTH...

    Dirk
    -- 
    Dirk Heinrichs
    Senior Systems Engineer, Delivery Pipeline
    OpenText ™ Discovery | Recommind
    Phone: +49 2226 15966 18
    Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach
    Vertretungsberechtigte Geschäftsführer Gordon Davies, Madhu Ranganathan, Christian Waida, Registergericht Amtsgericht Bonn, Registernummer HRB 10646
    This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden
    Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail sind nicht gestattet.

    --
    You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
    To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/1be39a0b9d46dac4884aed1d8058336f3ee57b68.camel%40opentext.com.

    --
    You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
    To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtHiBDMfSoDQjV-tc4Ak_-Xeb0EPMWUKDVQyyXqDaDSYkA%40mail.gmail.com.
    Reply | Threaded
    Open this post in threaded view
    |

    Re: JDK8 or JDK11 to be used for Jenkins ?

    Richard Bywater-3
    In reply to this post by mj1414...@gmail.com
    Personally if you are starting from a new Jenkins version then I'd go JDK11 unless you hit some strange edge-case issue where you might need to roll it back to JDK8.

    Although JDK8 isn't going anywhere in the short term its probably best to keep with the newest LTS version of Java to not make the upgrade someone else's problem down the line 😀

    Richard.

    On Fri, 11 Dec 2020, 11:00 PM [hidden email], <[hidden email]> wrote:
    Hello,
    I'm trying to decide, whether I should use JDK8 or JDK11 to run Jenkins.
    So far I have been using JDK8.

    If I look at the documentation, I find:
    points to
    "Java Requirements" https://www.jenkins.io/doc/administration/requirements/java/
    which says
  • "Java 8 runtime environments, both 32-bit and 64-bit versions are supported"

  • "Since Jenkins 2.164 and 2.164.1 [1], Java 11 runtime environments are supported

    • Running Jenkins with Java 11 is documented here

    • There are some precautions to take when upgrading from Java 8 to Java 11 in Jenkins, please follow these guidelines."

  • So this sounds like "both JDK8 and JDK11 are supported"

    So what is the current recommendation:
    Use JDK8 ? JDK11 ?
    Give JDK11 a try and report issues ?
    Is an update planned to make JDK11 the preferred version ?

    Regards

    Martin

    --
    You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
    To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/8b37283f-47d9-495b-9086-2b8bd003876an%40googlegroups.com.

    --
    You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
    To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAAy0hwc2d-FCOawn%3D1VGoWOa9mnUuyDczKPNj3tKRmyeTeLCJA%40mail.gmail.com.
    Reply | Threaded
    Open this post in threaded view
    |

    Re: JDK8 or JDK11 to be used for Jenkins ?

    Baptiste MATHUS
    Agreed with Richard. 

    Plus we literally have a thread on the dev list that's less than 10 days old, where we discussed bumping the minimum requirement to Java 11.

    IOW, I'd recommend defaulting to Java 11 unless you've got very compelling reasons to run Java 8.
    This way, when the requirement gets bumped, at some point (no date yet), this will be a no-event for you :-). (or will be facing a wall if you chose Java 8).

    Cheers

    Le ven. 11 déc. 2020 à 22:22, Richard Bywater <[hidden email]> a écrit :
    Personally if you are starting from a new Jenkins version then I'd go JDK11 unless you hit some strange edge-case issue where you might need to roll it back to JDK8.

    Although JDK8 isn't going anywhere in the short term its probably best to keep with the newest LTS version of Java to not make the upgrade someone else's problem down the line 😀

    Richard.

    On Fri, 11 Dec 2020, 11:00 PM [hidden email], <[hidden email]> wrote:
    Hello,
    I'm trying to decide, whether I should use JDK8 or JDK11 to run Jenkins.
    So far I have been using JDK8.

    If I look at the documentation, I find:
    points to
    "Java Requirements" https://www.jenkins.io/doc/administration/requirements/java/
    which says
    • "Java 8 runtime environments, both 32-bit and 64-bit versions are supported"

    • "Since Jenkins 2.164 and 2.164.1 [1], Java 11 runtime environments are supported

      • Running Jenkins with Java 11 is documented here

      • There are some precautions to take when upgrading from Java 8 to Java 11 in Jenkins, please follow these guidelines."

    So this sounds like "both JDK8 and JDK11 are supported"

    So what is the current recommendation:
    Use JDK8 ? JDK11 ?
    Give JDK11 a try and report issues ?
    Is an update planned to make JDK11 the preferred version ?

    Regards

    Martin

    --
    You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
    To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/8b37283f-47d9-495b-9086-2b8bd003876an%40googlegroups.com.

    --
    You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
    To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAAy0hwc2d-FCOawn%3D1VGoWOa9mnUuyDczKPNj3tKRmyeTeLCJA%40mail.gmail.com.

    --
    You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
    To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS4L-VRhJ2x6Guytmn_cKSKMkQ3EBub2fJV6536QCk-0vg%40mail.gmail.com.
    Reply | Threaded
    Open this post in threaded view
    |

    Re: JDK8 or JDK11 to be used for Jenkins ?

    mj1414...@gmail.com
    I've updated from JDK 8 (jdk8u265-b01) to JDK11 (jdk-11.0.9.1+1)
    Now I see in the log:
    WARNING: Illegal reflective access by com.thoughtworks.xstream.core.util.Fields (file:/var/fpwork/ltedlphy/jenkinsCurrent/home/war/WEB-INF/lib/xstream-1.4.7-jenkins-1.jar) to field java.util.TreeMap.comparator
    WARNING: Please consider reporting this to the maintainers of com.thoughtworks.xstream.core.util.Fields
    WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
    WARNING: All illegal access operations will be denied in a future release

    It is not just this one specifc message, there are other similar ones.
    This sounds like a ticking bomb...
    Can I do something about this ? Opening tickets ?
    Are my worries unfounded ?

    Regards

    Martin

    [hidden email] schrieb am Freitag, 11. Dezember 2020 um 22:28:38 UTC+1:
    Agreed with Richard. 

    Plus we literally have a thread on the dev list that's less than 10 days old, where we discussed bumping the minimum requirement to Java 11.

    IOW, I'd recommend defaulting to Java 11 unless you've got very compelling reasons to run Java 8.
    This way, when the requirement gets bumped, at some point (no date yet), this will be a no-event for you :-). (or will be facing a wall if you chose Java 8).

    Cheers

    Le ven. 11 déc. 2020 à 22:22, Richard Bywater <[hidden email]> a écrit :
    Personally if you are starting from a new Jenkins version then I'd go JDK11 unless you hit some strange edge-case issue where you might need to roll it back to JDK8.

    Although JDK8 isn't going anywhere in the short term its probably best to keep with the newest LTS version of Java to not make the upgrade someone else's problem down the line 😀

    Richard.

    On Fri, 11 Dec 2020, 11:00 PM [hidden email], <[hidden email]> wrote:
    Hello,
    I'm trying to decide, whether I should use JDK8 or JDK11 to run Jenkins.
    So far I have been using JDK8.

    If I look at the documentation, I find:
    points to
    "Java Requirements" https://www.jenkins.io/doc/administration/requirements/java/
    which says
    • "Java 8 runtime environments, both 32-bit and 64-bit versions are supported"

    • "Since Jenkins 2.164 and 2.164.1 [1], Java 11 runtime environments are supported

      • Running Jenkins with Java 11 is documented here

      • There are some precautions to take when upgrading from Java 8 to Java 11 in Jenkins, please follow these guidelines."

    So this sounds like "both JDK8 and JDK11 are supported"

    So what is the current recommendation:
    Use JDK8 ? JDK11 ?
    Give JDK11 a try and report issues ?
    Is an update planned to make JDK11 the preferred version ?

    Regards

    Martin

    --
    You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
    To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/8b37283f-47d9-495b-9086-2b8bd003876an%40googlegroups.com.

    --
    You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].

    --
    You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
    To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/74083c2f-3f30-4b47-b4ac-87947932ecfen%40googlegroups.com.
    Reply | Threaded
    Open this post in threaded view
    |

    Re: JDK8 or JDK11 to be used for Jenkins ?

    Daniel Beck


    > On 25. Jan 2021, at 13:37, [hidden email] <[hidden email]> wrote:
    >
    > WARNING: Illegal reflective access by com.thoughtworks.xstream.core.util.Fields (file:/var/fpwork/ltedlphy/jenkinsCurrent/home/war/WEB-INF/lib/xstream-1.4.7-jenkins-1.jar) to field java.util.TreeMap.comparator

    At most you're on the current LTS release. Weekly releases have already been updated beyond this version of X-Stream, see https://www.jenkins.io/blog/2020/11/10/spring-xstream/ 

    They may no longer show this warning, or at least not as often. https://github.com/x-stream/xstream/issues/101 seems to track it in general upstream.

    --
    You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
    To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/FFB43344-2054-41B8-94B9-2B74DDA4FBF1%40beckweb.net.
    Reply | Threaded
    Open this post in threaded view
    |

    Re: JDK8 or JDK11 to be used for Jenkins ?

    mj1414...@gmail.com
    Hello Daniel,
    yes, we're on 2.263.1. (The open bug on the .2 is blocking us for the update)
    Obviously should have mentioned the Jenkins version used ;-)

    How to handle these " WARNING: Illegal reflective access" ? I see a whole bunch of them.
    Given your statement about weekly releases, it probably doesn't make sense to report unreported once - does it ?

    On the slaves we just found a blocker: We get a problem on building for Coverity (SCA). (I suspect a tool to fetch the different parts of the SW, which uses Java)
    So far I don't understand, why the "normal" build seems to be ok. (Should be affected as well) I need a closer look.

    Martin
    Daniel Beck schrieb am Montag, 25. Januar 2021 um 14:18:07 UTC+1:


    > On 25. Jan 2021, at 13:37, [hidden email] <[hidden email]> wrote:
    >
    > WARNING: Illegal reflective access by com.thoughtworks.xstream.core.util.Fields (file:/var/fpwork/ltedlphy/jenkinsCurrent/home/war/WEB-INF/lib/xstream-1.4.7-jenkins-1.jar) to field java.util.TreeMap.comparator

    At most you're on the current LTS release. Weekly releases have already been updated beyond this version of X-Stream, see https://www.jenkins.io/blog/2020/11/10/spring-xstream/

    They may no longer show this warning, or at least not as often. https://github.com/x-stream/xstream/issues/101 seems to track it in general upstream.

    --
    You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
    To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/2ca5a5f4-b1ba-41f7-bc1f-ec9cb81e4441n%40googlegroups.com.