How to fix macOS Sierra WSO2 Server startup delay

Ruwan Yatawara
1 min readJan 27, 2017

If you recently upgraded to macOS Sierra (Version 10.12.X and above), chances are you may have noticed a delay in startup time of your WSO2 Server. Well, don’t fret. You are not alone.

The OS upgrade messes up your host entries. Adding the following entries to your host configuration file will do the trick, and your WSO2 Server will start as it used to.

Step 1 : Figure out your machine’s local network name

Open Sharing preferences (from Apple menu > System Preferences, then click Sharing).

The local network name should be displayed beneath the computer’s name at the top of the pane. (i.e. Ruwan-MacBook-Pro.local)

Step 2: Change /etc/hosts file

Make sure your host file does not already contain the following entries. If so.. hard luck, this solution ain’t for you. Something else is wrong with your computer. :(

127.0.0.1       localhost       Ruwan-MacBook-Pro.local
::1 localhost Ruwan-MacBook-Pro.local

In order to change your host entries, you need to open it with vim editor. Make sure you are super user, if not you will not be able to save your changes.

Make sure to change the “Ruwan-MacBook-Pro.local” with your machine’s local network name.

Once done, Your’s may look like this..

127.0.0.1       localhost       Ace-MacBook-Pro.local
::1 localhost Ace-MacBook-Pro.local

That’s about it your good to go. Your WSO2 Server should start up like it used to, now.

--

--

Ruwan Yatawara

creative, conservative, opinionated adrenaline junkie… in search of that ‘one thing’! https://500px.com/ruwan_ace