Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jenkins Very Slow Upon Starting EC2 Instance after Stopping

I am learning Jenkins right now. I installed Jenkins on a t2.small Ubuntu EC2 instance. Everything was working fine. I stopped the instance. The next day, I started the instance and it took a very long time for the sign-in page and dashboard to load, basically unusable. I cannot seem to find troubleshooting information, and I am also new to Linux, AWS, and Jenkins.

I made sure that I was connected to the correct public IP address (no time out). I also restarted the Jenkins service. I also tried accessing the public IP address on a different browser. I ended up just terminating the instance and creating a new one.

like image 724
Eric T. Avatar asked Dec 30 '25 21:12

Eric T.


2 Answers

cd /var/lib/jenkins
sudo nano jenkins.model.JenkinsLocationConfiguration.xml
# <?xml version='1.1' encoding='UTF-8'?>
# <jenkins.model.JenkinsLocationConfiguration>
#   <jenkinsUrl>http://your-new-ip:8080/</jenkinsUrl>
# </jenkins.model.JenkinsLocationConfiguration>

sudo systemctl restart jenkins

Or

Jenkins UI

Dashboard > Manage Jenkins > System > "Jenkins URL"

http://your-new-ip:8080/

like image 168
Muaz Avatar answered Jan 02 '26 11:01

Muaz


I think I figured out the problem, which seems dumb and obvious now. I was setting the Jenkins URL without considering that the public IP of the instance would change upon stopping and starting. I removed the configuration and it works fine now.

like image 29
Eric T. Avatar answered Jan 02 '26 13:01

Eric T.



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!