How to Fix Jenkins slowness when Running in AWS EC2 | Jenkins Slowness Fix when using AWS free-tier

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 เม.ย. 2024
  • www.coachdevops.com/2024/04/f...
    Let's say that you have configured Jenkins in AWS EC2 instance and you are using AWS free tier and you are NOT using Elastic IP, so when ever you start EC2 instance after stopping, you would have noticed Jenkins UI is taking a lot of time to come up. You try to access any page in Jenkins, it will be really slow.
    What is the root cause of the issue?
    Because EC2 configured in AWS free tier account would have new IP after every restart, Jenkins was trying to use old IP address when you are trying to start Jenkins. Due to this issue, Jenkins will be very slow.
    Pre-requisites:
    Jenkins is setup in AWS cloud using free-tier account.
    There are two ways you can fix this issue:
    First option using command line
    Make changes in the xml file by logging into EC2 instance through command line using Git bash or any SSH tool.
    Connect to Jenkins EC2 instance using Git bash or iTerm:
    Navigate to Jenkins installation directory:
    cd /var/lib/jenkins/
    Modify jenkins.model.JenkinsLocationConfiguration.xml file by executing below command:
    sudo nano jenkins.model.JenkinsLocationConfiguration.xml
    Make sure you provide Jenkins current URL in below location and restart Jenkins.
    sudo service jenkins restart
    Now try accessing Jenkins through UI, it will be really performing well.
    Second option us using Jenkins UI
    Change public URL under Manage Jenkins-System
    Change Jenkins URL to current Jenkins URL:
    Click on Apply and Save.
    that's it. You will notice Jenkins is performing well now.
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 28

  • @lbistech9172
    @lbistech9172 2 หลายเดือนก่อน +2

    Very helpful. Thanks for sharing.

    • @DevOpsCoach
      @DevOpsCoach  2 หลายเดือนก่อน

      Thank you 🙏

  • @Ramashyam838
    @Ramashyam838 2 หลายเดือนก่อน +1

    Awesome Man, Game Changer !

    • @DevOpsCoach
      @DevOpsCoach  หลายเดือนก่อน

      Glad it helped!

  • @shashankjain7632
    @shashankjain7632 2 หลายเดือนก่อน +1

    Great !! Very helpful

    • @DevOpsCoach
      @DevOpsCoach  2 หลายเดือนก่อน

      Glad it was helpful!

  • @ramachandranamuduri9798
    @ramachandranamuduri9798 10 วันที่ผ่านมา +1

    Thanks, Very helpful

    • @DevOpsCoach
      @DevOpsCoach  10 วันที่ผ่านมา

      Glad it was helpful!

  • @prashantpowar9269
    @prashantpowar9269 3 หลายเดือนก่อน +1

    Helpful for interview❤

    • @DevOpsCoach
      @DevOpsCoach  3 หลายเดือนก่อน +1

      for more interview questions refer my website --> www.coachdevops.com/search/label/DevOps%20Interview%20Questions

  • @ashishrajput919
    @ashishrajput919 2 หลายเดือนก่อน +1

    Thanks it really work

    • @DevOpsCoach
      @DevOpsCoach  2 หลายเดือนก่อน

      You're welcome!

  • @manishaacharya2907
    @manishaacharya2907 2 หลายเดือนก่อน +1

    Very helpful, thnk you

    • @DevOpsCoach
      @DevOpsCoach  2 หลายเดือนก่อน

      Glad it was helpful!

  • @parmarpavan2552
    @parmarpavan2552 2 หลายเดือนก่อน +1

    Great it's working fine

    • @DevOpsCoach
      @DevOpsCoach  2 หลายเดือนก่อน

      Great to know.. thank you 🙏

  • @Calebpeace5
    @Calebpeace5 2 หลายเดือนก่อน +1

    thank you

    • @DevOpsCoach
      @DevOpsCoach  2 หลายเดือนก่อน

      You're most welcome!

  • @durairajgopal3277
    @durairajgopal3277 2 หลายเดือนก่อน +1

    Super boss it's has helpfull brother❤

    • @DevOpsCoach
      @DevOpsCoach  2 หลายเดือนก่อน

      Glad to hear that 🤝

  • @PaulSmith-bx2fq
    @PaulSmith-bx2fq 24 วันที่ผ่านมา

    Helpful

    • @DevOpsCoach
      @DevOpsCoach  24 วันที่ผ่านมา

      Glad to hear that

  • @538sureshs7
    @538sureshs7 หลายเดือนก่อน +1

    Thanks

    • @DevOpsCoach
      @DevOpsCoach  หลายเดือนก่อน

      You are welcome 🙏

    • @538sureshs7
      @538sureshs7 หลายเดือนก่อน

      @@DevOpsCoach I have one doubt can I ask you

    • @DevOpsCoach
      @DevOpsCoach  28 วันที่ผ่านมา

      @@538sureshs7yes go ahead

  • @dohntomfon5789
    @dohntomfon5789 2 หลายเดือนก่อน +1

    thank you

    • @DevOpsCoach
      @DevOpsCoach  2 หลายเดือนก่อน

      You are welcome 🤗