[erlang-questions] CT take a long time to warm up

Tuncer Ayaz tuncer.ayaz@REDACTED
Wed Sep 26 22:38:18 CEST 2012


On Wed, Sep 26, 2012 at 9:44 PM, Motiejus Jakštys wrote:
> On Wed, Sep 26, 2012 at 8:40 PM, Roberto Ostinelli wrote:
> > > How do you run it? Consistent 20 seconds sounds like a DNS
> > > timeout issue (stab in the dark).
> >
> >
> > rebar ct_suites=mymodule
>
> Hi,
> adding the list.
>
> Please do
>
> $TRACE_F rebar ct_suites=mymodule

Make that

$TRACE_F rebar suites=mymodule

and also consider running rebar with fprof:

$TRACE_F rebar -p suites=mymodule
or
$TRACE_F rebar --profile suites=mymodule

, but make sure you update rebar first to avoid a faulty
call to fprof:apply/2.

If it's caused by name lookup, you can try a custom ERL_INETRC file:
http://www.erlang.org/doc/apps/erts/inet_cfg.html

> and replace $TRACE_F with Max OS C equivalent of "strace -f".
> Then see what it does just before the 20 second pause.



More information about the erlang-questions mailing list