WSO2 APIM | Server startup takes long time in linux/Mac
Recently I have been trying to run WSO2 APIM V4 on my MacBook Air but it was taking too long to start. I have also faced the similar issue in linux environment previously. To overcome this issue, need to map hostile entries (127.0.0.1 & ::1) to my hostname.
Before
127.0.0.1 localhost
::1 localhost
Now let's check the hostname in Mac
kumargaurav@Kumars-MacBook-Air bin % hostname
Kumars-MacBook-Air.local
Let's update the hostname with current one in addition to the localhost as shown below-
After
127.0.0.1 localhost Kumars-MacBook-Air.local
::1 localhost Kumars-MacBook-Air.local
::1 localhost Kumars-MacBook-Air.local
Now, start the API Manager and it would start in normal time ~<2 mins.
Kindly note that the changes here are for localhost hostname & IP 127.0.0.1, in case of environment specific deployment we need to change as per the environment IP & hostname.
I truly appreciate the time and work you put into sharing your knowledge. I found this topic to be quite effective and beneficial to me. Thank you very much for sharing. Continue to blog.
ReplyDeleteData Engineering Solutions
Machine Learning Solutions
Data Analytics Solutions
Data Modernization Solutions