Details
-
Bug
-
Status: Resolved (View Workflow)
-
Major
-
Resolution: Fixed
Description
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.
Attachments
Issue Links
- is duplicated by
-
JENKINS-23023 Address already in use when starting Jenkins in daemon mode with JMX SNMP adaptor
-
- Resolved
-
- is related to
-
JENKINS-27142 Could not listen jolokia agent port
-
- Open
-
-
JENKINS-23023 Address already in use when starting Jenkins in daemon mode with JMX SNMP adaptor
-
- Resolved
-
Note: fix only available in JDK 7u4+: http://bugs.sun.com/view_bug.do?bug_id=7110104