Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-27142

Could not listen jolokia agent port


    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • core
    • None
    • - Linux, CentOS 6.5 x86_64
      - Java(TM) SE Runtime Environment (build 1.7.0_76-b13)
      - Jenkins 1.599
      - Jolokia 1.2.3

      I want to use jolokia <http://jolokia.org/> to access JMX via HTTP.

      Jolokia cannot listen port when start Jenkins with --daemon option.

      # sudo -H -u jenkins /usr/bin/java -javaagent:/usr/local/app/jolokia/jolokia-jvm-agent.jar=port=8781,host= -DJENKINS_HOME=/var/lib/jenkins -jar /usr/lib/jenkins/jenkins.war --daemon
      I> No access restrictor found, access to all MBean is allowed
      Jolokia: Agent started with URL
      Forking into background to run as a daemon.
      Use --logfile to redirect output to a file
      Could not start Jolokia agent: java.net.BindException: Address already in use
      $ curl -m 3
      curl: (56) Failure when receiving data from the peer

      Does this issue relate on https://issues.jenkins-ci.org/browse/JENKINS-14529 ?

            Unassigned Unassigned
            hirose31 Masaaki HIROSE
            0 Vote for this issue
            6 Start watching this issue