java -Dcom.sun.management.jmxremote.port=9999 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -jar jenkins.war --deamon

      results in

      Forking into background to run as a daemon.
      Error: Exception thrown by the agent : java.rmi.server.ExportException: Port already in use: 9999; nested exception is:
      java.net.BindException: Address already in use

      This means I cannot use VisualVM on a deamonized Jenkins instance.

      I encountered this problem when using the RPM installer to setup Jenkins and afterwards manually adding the -D options to JENKINS_JAVA_OPTIONS in /etc/sysconfig/jenkins.

          [JENKINS-14529] BindException when using --daemon with JMX

          Georg Sash created issue -
          Georg Sash made changes -
          Summary Original: BindException whhen using --daemon with JMX New: BindException when using --daemon with JMX

          marko asplund added a comment -

          I'm facing the same problem when trying to analyze performance issues (with jvisualvm) with our Jenkins installation.
          Has there been any progress on this issue?
          Does a workaround exist?

          marko asplund added a comment - I'm facing the same problem when trying to analyze performance issues (with jvisualvm) with our Jenkins installation. Has there been any progress on this issue? Does a workaround exist?
          Jesse Glick made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]

          Jesse Glick added a comment -

          Jesse Glick added a comment - https://github.com/kohsuke/akuma/pull/4

          Code changed in jenkins
          User: Jesse Glick
          Path:
          changelog.html
          core/pom.xml
          http://jenkins-ci.org/commit/jenkins/61d46127be97545368b6a95bf0cb05d01aa80663
          Log:
          [FIXED JENKINS-14529] BindException when using --daemon with JMX.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: changelog.html core/pom.xml http://jenkins-ci.org/commit/jenkins/61d46127be97545368b6a95bf0cb05d01aa80663 Log: [FIXED JENKINS-14529] BindException when using --daemon with JMX.
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Resolved [ 5 ]

          dogfood added a comment -

          Integrated in jenkins_main_trunk #2209
          [FIXED JENKINS-14529] BindException when using --daemon with JMX. (Revision 61d46127be97545368b6a95bf0cb05d01aa80663)

          Result = SUCCESS
          Jesse Glick : 61d46127be97545368b6a95bf0cb05d01aa80663
          Files :

          • changelog.html
          • core/pom.xml

          dogfood added a comment - Integrated in jenkins_main_trunk #2209 [FIXED JENKINS-14529] BindException when using --daemon with JMX. (Revision 61d46127be97545368b6a95bf0cb05d01aa80663) Result = SUCCESS Jesse Glick : 61d46127be97545368b6a95bf0cb05d01aa80663 Files : changelog.html core/pom.xml

          Jesse Glick added a comment -

          Note: fix only available in JDK 7u4+: http://bugs.sun.com/view_bug.do?bug_id=7110104

          Jesse Glick added a comment - Note: fix only available in JDK 7u4+: http://bugs.sun.com/view_bug.do?bug_id=7110104
          Jesse Glick made changes -
          Labels New: 1.480.4-candidate

            Unassigned Unassigned
            gsash Georg Sash
            Votes:
            3 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: