[erlang-questions] werl.exe slow

Raimo Niskanen raimo+erlang-questions@REDACTED
Fri Apr 24 15:09:18 CEST 2009


On Fri, Apr 24, 2009 at 02:34:45PM +0200, Vlad Dumitrescu wrote:
> On Fri, Apr 24, 2009 at 09:22, Raimo Niskanen
> <raimo+erlang-questions@REDACTED> wrote:
> > On Thu, Apr 23, 2009 at 11:35:19AM +0200, Gamoto wrote:
> >> When I start werl.exe on windows 2003 server, the time before to have the ">" is around 10 seconds !
> >> Why is it so slow ? normal ? solutions for enhancement ?
> >
> > That is ususally the symptom of some network configuration
> > problem. Things like this has happened in the past
> > when werl.exe could not look up its own hostname
> > and waited for a DNS timeout.
> 
> >From a separate message from John, this delay happens even when simply
> starting "erl.exe", not distributed. There should not be any DNS
> lookup in that case?

The starting emulator always tries to find out its hostname,
by asking gethostname(), and then it verifies that the
name can be looked up with the normal hostname
resolver functions. So if you have e.g a DNS misconfiguration
it may manifest itself like this.

When the emulator has started try these:
1> {ok,N} = inet:gethostname().
2> inet:gethostbyname(N).
3> inet_gethost_native:gethostbyname(N).
4> inet_db:res_option(lookup).

> On the other hand, starting even "erl -name abc@REDACTED" takes much
> longer than the case above.
> 
> For me it works just fine, so it's probably a configuration issue.
> 
> regards,
> Vlad
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions

-- 

/ Raimo Niskanen, Erlang/OTP, Ericsson AB



More information about the erlang-questions mailing list