WebLogic Server Managed Server Fails when -Xmanagement:port Specified for Admin Server on the Same Machine (Doc ID 1469158.1)

Last updated on MAY 24, 2017

Applies to:

Oracle JRockit - Version R28.1.3 and later
Information in this document applies to any platform.

Symptoms

 WebLogic Server managed servers startup fails when Admin Server is started with the following JRMC options on the same machine
-Xmanagement:ssl=false,authenticate=false,port=7099

Following errors is seen

ERROR][mgmnt  ] JMX connector server communication error: null
java.lang.RuntimeException: Error: JMX connector server communication error: null
      at oracle.jrockit.management.server.Messages.error(Messages.java:109)
      at oracle.jrockit.management.server.Messages.error(Messages.java:123)
      at oracle.jrockit.management.server.Agent.main(Agent.java:158)
      at oracle.jrockit.management.server.Agent.agentmain(Agent.java:94)
      at oracle.jrockit.management.server.Agent.start(Agent.java:207)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at jrockit.management.AgentStarter.startAgent(AgentStarter.java:135)
Caused by: oracle.jrockit.management.server.AgentError
      at oracle.jrockit.management.server.JMXConnector.startNewServerImpl(JMXConnector.java:82)
      at oracle.jrockit.management.server.RemoteJMXConnector.newServer(RemoteJMXConnector.java:233)
      at oracle.jrockit.management.server.sun.RemoteJMXConnectorImpl.newServer(RemoteJMXConnectorImpl.java:112)
      at oracle.jrockit.management.server.RemoteJMXConnector.startNewServer(RemoteJMXConnector.java:181)
      at oracle.jrockit.management.server.JMXConnector.start(JMXConnector.java:64)
      at oracle.jrockit.management.server.Agent.start(Agent.java:62)
      at oracle.jrockit.management.server.Agent.main(Agent.java:156)
      ... 7 more
Caused by: java.rmi.server.ExportException: Port already in use: 7099; nested exception is:
      java.net.BindException: Address already in use: JVM_Bind
      at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:310)
      at sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:218)


Steps to reproduce
------------------------------
(Port numbers given are for demo)

Admin server listen port:7001
Admin Server JMX connectivity port: 7099 (specified in JAVA_OPTIONS -Xmanagement:ssl=false,authenticate=false,port=7099)

Managed server listen port :7003
No JMX connectivity port defined for managed server.

Start Admin Server
Now attempt to start managed server, it fails with error mentioned above.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms