Grails service port conflict resolution of grails changes the port number

  • 2020-04-01 02:39:59
  • OfStack

The following error is reported when starting the second service:

Server failed to start for port 8080: Address already in use: JVM_Bind (use --stacktrace to see the full trace)

To resolve this error, you need to define a different port for the application.

Specific methods are as follows:

Modify the buildconfig.groovy file:


grails.server.port.http=9090

This defines a service on port 9090 for the application and avoids port collisions at startup.


Related articles: