in OSX bitbucket server can be started on port 7995 even if 127.0.0.1:7995 is already in use

Description

macOS appears to have a different behaviour from other operating systems which results in new ServerSocket(7995) working, even if 127.0.0.1:7995 is in use. This results in failures when trying to start more than one instance of Bitbucket Server on the same macOS host because the second instance doesn't detect that the first instance has taken the default JMX port.

Environment

None

Testing Notes

Add notes...

Fixed

Assignee

Bryan Turner

Reporter

Mel Paisley

Labels

None

Add-on Type

Server

Team

None

CC

None

Risk factor

None

QA Kickoff Status

None

QA Demo Status

None

Story point estimate

None

Fix versions

Priority

Minor