How to Fix Jenkins slowness when Running in AWS EC2 | Jenkins Slowness Fix when using AWS free-tier
HTML-код
- Опубликовано: 10 сен 2024
- www.coachdevop...
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.
Thanks, II am new learner of Jenkins a face this issue many time 🙏
You're so welcome!
Very helpful. Thanks for sharing.
Thank you 🙏
Thank you issue is solved
Glad to know that..
Thanks, Very helpful
Glad it was helpful!
Thankyou so much sir
You are welcome 🙏
Great it's working fine
Great to know.. thank you 🙏
Very helpful, thnk you
Glad it was helpful!
Awesome Man, Game Changer !
Glad it helped!
this helped a lot
Great to know.
Thanks it really work
You're welcome!
thank you
You're most welcome!
Great !! Very helpful
Glad it was helpful!
Helpful for interview❤
for more interview questions refer my website --> www.coachdevops.com/search/label/DevOps%20Interview%20Questions
Thanks
You are welcome 🙏
@@DevOpsCoach I have one doubt can I ask you
@@538sureshs7yes go ahead
Could you plz tell regarding jvm configuration for jenkins.
Super boss it's has helpfull brother❤
Glad to hear that 🤝
Thanks a ton
Most welcome!🙏
Helpful
Glad to hear that
thank you
You are welcome 🤗