Agent not start (JMX Port 5555 already in use)

Agent not start (JMX Port 5555 already in use)

book

Article ID: KB0094746

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition 5.x

Description

The following exception is thrown on startup of a second agent.

<timestamp> <membername> Error [main] - [runtime.service] Could not create registry @<IPaddress>:5555 - verify if port is not in use. Excep Msg: Port already in use: 5555; nested exception is:
        java.net.BindException: Address already in use: JVM_Bind
<timestamp> <membername> Fatal [main] - [container.standalone] Port already in use: 5555; nested exception is:
        java.net.BindException: Address already in use: JVM_Bind
java.rmi.server.ExportException: Port already in use: 5555; nested exception is:
        java.net.BindException: Address already in use: JVM_Bind
        at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:341)
        at sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:249)
        at sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:411)
        at sun.rmi.transport.LiveRef.exportObject(LiveRef.java:147)
        at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:208)
        at sun.rmi.registry.RegistryImpl.setup(RegistryImpl.java:152)
        at sun.rmi.registry.RegistryImpl.<init>(RegistryImpl.java:137)
        at java.rmi.registry.LocateRegistry.createRegistry(LocateRegistry.java:203)
        at com.tibco.cep.runtime.service.management.jmx.connectors.JMXConnServer.createRegistry(JMXConnServer.java:158)
        at com.tibco.cep.runtime.service.management.jmx.connectors.JMXConnServer.handleConnServerCreation(JMXConnServer.java:39)
        at com.tibco.cep.runtime.service.management.jmx.connectors.JMXConnServer.createSecureJMXConnectorServer(JMXConnServer.java:116)
        at com.tibco.cep.runtime.service.management.jmx.connectors.JMXConnServer.createSinglePortSecureJMXConnectorServer(JMXConnServer.java:153)
        at com.tibco.cep.runtime.service.management.process.EngineMBeansManager.registerJMXConnectorServer(EngineMBeansManager.java:109)
        at com.tibco.cep.runtime.service.management.process.EngineMBeansManager.createJMXConnectorServer(EngineMBeansManager.java:70)
        at com.tibco.cep.container.standalone.BEMain.jumpStart(SourceFile:157)
        at com.tibco.cep.container.standalone.BEMain.main(SourceFile:71)
Caused by: java.net.BindException: Address already in use: JVM_Bind
        at java.net.DualStackPlainSocketImpl.bind0(Native Method)
        at java.net.DualStackPlainSocketImpl.socketBind(DualStackPlainSocketImpl.java:106)
        at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:387)
        at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:190)
        at java.net.ServerSocket.bind(ServerSocket.java:375)
        at java.net.ServerSocket.<init>(ServerSocket.java:237)
        at java.net.ServerSocket.<init>(ServerSocket.java:128)
        at sun.rmi.transport.proxy.RMIDirectSocketFactory.createServerSocket(RMIDirectSocketFactory.java:45)
        at sun.rmi.transport.proxy.RMIMasterSocketFactory.createServerSocket(RMIMasterSocketFactory.java:345)
        at sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(TCPEndpoint.java:666)
        at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:330)
        ... 15 more
System exit requested by thread [main] with status: -1
System.exit(..) will be invoked now with status: -1
<timestamp> <membername> Info [CTRL-C] - [runtime.session] Shutting down service provider: <membername>

Environment

All Operating Systems

Resolution

The following properties have been enabled in the TRA file used to start the agent, but the agent was not started with the parameter --propVar jmx_port=[JMX_PORT].

java.property.be.engine.jmx.connector.port=%jmx_port%
java.property.be.engine.jmx.connector.authenticate=false

In this case, the CDD property (be.engine.jmx.connector.port) to define the JMX port is ignored and the default port (5555) has been selected. On startup of the second agent, port 5555 is in use already. To fix the issue, comment out or delete the TRA properties to use the JMX port settings from the CDD file.

Issue/Introduction

A second TIBCO BusinessEvents agent cannot start. It reports an error that the JMX port 5555 is already in use, but in the CDD file a different port than 5555 has been configured for the ProcessUnit (CDD property: be.engine.jmx.connector.port).

Additional Information

JMX, be.engine.jmx.connector.port