[erlang-questions] missing error reports from erlang.log.1

Sean Cribbs <>
Sat May 21 15:50:47 CEST 2011


That's not error_logger, but run_erl that's writing to the
erlang.log.* files.  It is a separate process from the Erlang VM, and
so shouldn't be under the same open-files limit as the VM. On Riak
installations where the open files limit is too low, we frequently see
accept errors from mochiweb or emfile errors, so you're on the right
track.

Sean Cribbs

On Sat, May 21, 2011 at 4:50 AM, Pablo Platt <> wrote:
> The errors I'm expecting to see in my test are {error,emfile} because of too
> many http connections.
> My guess is that the error_logger need a file descriptor to write to the log
> file.
> If I'm writing an error message with the error_logger before the test, the
> error_logger already has a file descriptor and can use it.
> If I start the test before using the error_logger, when it tries to get a
> file descriptor and write to the log, there are no file descriptors left.
> Shouldn't the error_logger get the file descriptor when starting the app
> automatically and be immune to this kind of problem?
> Maybe there is still some config options/app missing in my release?
>
> ________________________________
> From: Pablo Platt <>
> To: "" <>
> Sent: Saturday, May 21, 2011 3:09 AM
> Subject: [erlang-questions] missing error reports from erlang.log.1
>
> I've created a release with rebar.
> I'm starting the app with myapp/rel/myapp/bin/myapp start
> Error reports are not being written to rel/myapp/log/error.log.1 although
> the file is created and the initialization text is written to it (LOGGING
> STARTED Sat May...).
> If I'm writing one line with the error_logger in myapp_sup:init/1, compile
> and run the app, I do see error reports in the error.log.1 file.
> The line is:
> error_logger:error_msg("dummy error report~n")
> Am I missing initialization of an app related to error logging or do I need
> to change some configurations?
> Does the error_logger:error_msg fix it by forcing initialization of this
> app?
> Thanks
>
> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions
>
>
>
> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions
>
>



More information about the erlang-questions mailing list