Jenkins daemon fails to start when JMX monitoring via SNMP is enabled with args:
-Dcom.sun.management.snmp.interface=127.0.0.1
-Dcom.sun.management.snmp.acl=false
-Dcom.sun.management.snmp.port=16501
It fails with the followinf error:
Error: Failed to start SNMP adaptor with address: /127.0.0.1:16501 (Address already in use)
I am running Jenkins with the following command line fails:
/etc/alternatives/java -Djava.awt.headless=true -Dhudson.plugins.tmpcleaner.TmpCleanWork.minutes=360 -Dhudson.plugins.tmpcleaner.TmpCleanWork.days=1 -Dcom.sun.management.snmp.interface=10.120.230.20 -Dcom.sun.management.snmp.acl=false -Dcom.sun.management.snmp.port=1651 -DJENKINS_HOME=/var/lib/jenkins -jar /usr/lib/jenkins/jenkins.war --logfile=/var/log/jenkins/jenkins.log --webroot=/var/cache/jenkins/war --daemon --httpPort=8081 --ajp13Port=8009 --debug=2 --handlerCountMax=100 --handlerCountMaxIdle=20
It works taking away the --daemon option and running it in foreground.
This bug seems to be the same as this one: https://issues.jenkins-ci.org/browse/JENKINS-14529
- duplicates
-
JENKINS-14529 BindException when using --daemon with JMX
- Resolved
- is related to
-
JENKINS-14529 BindException when using --daemon with JMX
- Resolved