can I talk about slow startup? :smile:
# general
a
can I talk about slow startup? đŸ˜„
gut feel outrageously slow startup (ex 1m for servicemanager soup to nuts) is partially caused by InetAddress.getLocalhost
for example, in spring boot there's this https://github.com/spring-projects/spring-boot/issues/7087
in zipkin we run a flag to completely avoid calling any code taht could possibly invoke
InetAddress.getLocalhost
most of the uses of
InetAddress.getLocalhost
are centralized to NetUtil, but some aren't
and even in NetUtil there's a strange uncached usage of a datagram socket to get the value
k
Do you have a profiler output or some logs?
a
trying to make a custom build now
k
That’s crazy that getHostName is taking so much time
a
well it can take a lot of time
not sure it is the thing doing it..
already we've flattened the classpath to get rid of known problems from too many jars
k
lets make sure we track these in next week