Multiple Instances of WildFly on Different Ports on Same Machine (Tech Tip #8)

WildFly can be started on the default port 8080 using:

./bin/standalone.sh

The default landing page is then accessible at localhost:8080 and looks like:

tt1-wildfly-welcome

The default admin console is accessible at localhost:9990/console and looks like:

tt8-admin-console

Do you want to start another WildFly standalone instance on the same machine on a different port ?

./bin/standalone.sh -Djboss.socket.binding.port-offset=1000

will start another standalone server on port 8080 + 1000. And so the landing page is now accessible at localhost:9080. Similarly, admin console is now accessible at localhost:10990/console.

Similarly, you can start multiple instances by specifying port offset.

Be Sociable, Share!

7 thoughts on “Multiple Instances of WildFly on Different Ports on Same Machine (Tech Tip #8)

  1. Hi Arun,

    Any tutorial on how to setup WilFly JEE clustering, with details like:
    – load balancer
    – how http session and stateful ejbs data is replicated to a backup cluster instance
    – failover
    – scaling
    – integration with in-memory data grids

  2. Hi Arun,

    Nice article. I am working on one test app in cluster environment. I have deployed remote stateless ejb on cluster (node A and node B in domain mode). I start one more standalone instance on node A and try to deploy a client app. Issue is that client cannot connect to ejb on node A while it connects to node B without any problems. If I put client on node B also on standalone instance it cannot connect to ejb on node B but can connect to node A.
    Is this expected behavior or I’m missing something? Any link or tutorial will be mostly appreciated. My goal is to have one cluster where I will deploy remote stateless ejb in one server group and client on the same cluster under other server group which will communicate with both nodes. Is this possible? Thanks.

  3. We created an app that runs on wildfly.8.1.0.Final, but I must use two diffrent machines running wildfly for load balancing and fail over, can you help with this? Or do you know where I can look for some info on this?

  4. That’s quite a clever setting. It shifts all the ports, though, including 9990 which is used for mvn deploy. Would be interesting if you could add a list of things that change / that are affected by this shift…

Leave a Reply

Your email address will not be published. Required fields are marked *