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

Could not listen jolokia agent port

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • 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=0.0.0.0 -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 http://10.6.25.200:8781/jolokia/
      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 http://10.6.25.200:8781/jolokia/
      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
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: