Ephemeral Ports Exhausted with EJB calls from JBoss EAP 7.1/7.2 to 7.0

Solution Unverified - Updated -

Issue

  • Ephemeral Ports exhausted / netstat shows increasing ESTABLISHED connections to the EJB server port.
  • java.net.BindException: Cannot assign requested address on client when connecting to server

    Caused by: java.net.BindException: Cannot assign requested address
            at sun.nio.ch.Net.connect0(Native Method)
            at sun.nio.ch.Net.connect(Net.java:454)
            at sun.nio.ch.Net.connect(Net.java:446)
            at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:648)
            at org.xnio.nio.WorkerThread.openTcpStreamConnection(WorkerThread.java:270)
            at org.xnio.XnioIoThread.internalOpenTcpStreamConnection(XnioIoThread.java:254)
            at org.xnio.XnioIoThread.openStreamConnection(XnioIoThread.java:226)
            at org.xnio.XnioWorker.openStreamConnection(XnioWorker.java:405)
            at org.jboss.remoting3.remote.RemoteConnectionProvider.createSslConnection(RemoteConnectionProvider.java:246)
            at org.jboss.remoting3.remote.RemoteConnectionProvider.connect(RemoteConnectionProvider.java:206)
            at org.jboss.remoting3.EndpointImpl.lambda$connect$6(EndpointImpl.java:619)
            at java.security.AccessController.doPrivileged(Native Method)
            at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:618)
            at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:537)
            at org.jboss.remoting3.ConnectionInfo$NotShared.getConnection(ConnectionInfo.java:274)
            at org.jboss.remoting3.ConnectionInfo.getConnection(ConnectionInfo.java:55)
            at org.jboss.remoting3.EndpointImpl.doGetConnection(EndpointImpl.java:488)
            at org.jboss.remoting3.EndpointImpl.getConnectedIdentity(EndpointImpl.java:434)
            at org.wildfly.naming.client.remote.RemoteNamingProvider.getFuturePeerIdentityPrivileged(RemoteNamingProvider.java:151)
            at org.wildfly.naming.client.remote.RemoteNamingProvider.lamda$getFuturePeerIdentity$0(RemoteNamingProvider.java:138)
            at java.security.AccessController.doPrivileged(Native Method)
            at org.wildfly.naming.client.remote.RemoteNamingProvider.getFuturePeerIdentity(RemoteNamingProvider.java:138)
    

Environment

  • Red Hat JBoss Enterprise Application Server (EAP)
    • 7.1
    • 7.2
  • Enterprise Java Bean (EJB) Client talking to server running JBoss EAP 7.0
  • Remote Naming-based connections

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content