Restart of JBoss fails on Solaris with BindException: Address already in use
Issue
- We frequently receive
java.net.BindException: Address already in useexceptions when restarting JON and JBoss on Solaris 10 - After JON or JBoss are stopped, we must wait a few minutes before we can start them up
- Why are the listening ports not being released immediately after shutdown?
- Restart of JON Agent is delayed due to:
FATAL [main] (org.rhq.enterprise.agent.AgentMain)- {AgentMain.start-failure}Failed to start the agent
java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:365)
at java.net.ServerSocket.bind(ServerSocket.java:319)
at java.net.ServerSocket.<init>(ServerSocket.java:185)
at javax.net.DefaultServerSocketFactory.createServerSocket(ServerSocketFactory.java:170)
at org.jboss.remoting.transport.socket.SocketServerInvoker.createServerSocket(SocketServerInvoker.java:264)
at org.jboss.remoting.transport.socket.SocketServerInvoker.start(SocketServerInvoker.java:193)
at org.jboss.remoting.transport.Connector.start(Connector.java:324)
at org.rhq.enterprise.communications.ServiceContainer.setupServerConnector(ServiceContainer.java:1226)
at org.rhq.enterprise.communications.ServiceContainer.start(ServiceContainer.java:550)
at org.rhq.enterprise.communications.ServiceContainer.start(ServiceContainer.java:468)
at org.rhq.enterprise.agent.AgentMain.startCommServices(AgentMain.java:2110)
at org.rhq.enterprise.agent.AgentMain.start(AgentMain.java:624)
at org.rhq.enterprise.agent.AgentMain.main(AgentMain.java:406)
ERROR [main] (org.rhq.enterprise.agent.AgentMain)- {AgentMain.start-retry-after-failure}Agent will be restarted soon to see if the failure condition cleared up
- The java process for the agent/JBoss server does not show up in the
psoutput, but the listening port still shows up in thenetstatoutput.
Environment
- JBoss Operations Network (JON) 2.3, 2.3.1
- JON Agent
- JON Server
- Sun Solaris 10
- JBoss Enterprise Application Platform (EAP) 5
- Sun Solaris 10
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
