Though he talks about it, he doesn't offer a solution--does anyone
know a good solution. I am noticing my mochiweb process hits 4G of
used memory every now and then (we do a sizable amount of requests a
second). The server essentially becomes unresponsive. Debugging in the
past showed it was error_logger proc.
anton
> --
> You received this message because you are subscribed to the Google Groups "MochiWeb" group.
> To post to this group, send email to moch...@googlegroups.com.
> To unsubscribe from this group, send email to mochiweb+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/mochiweb?hl=en.
>
>
loop(Req) ->
try
%% do something here
catch
exit:normal ->
%% this happens when the client closed the connection
exit(normal);
Type:What ->
Report = ["web request failed",
{path, Req:get(path)},
{type, Type}, {what, What},
{trace, erlang:get_stacktrace()}],
error_logger:error_report(Report),
Req:respond({500, [], []})
end.
Anton