Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lager process is having a huge queue length #566

Open
AbhilashR2020 opened this issue Oct 19, 2021 · 1 comment
Open

Lager process is having a huge queue length #566

AbhilashR2020 opened this issue Oct 19, 2021 · 1 comment

Comments

@AbhilashR2020
Copy link

AbhilashR2020 commented Oct 19, 2021

Hi Team,

While load-testing my application, i am seeing issues with my lager application, consuming huge memory. The process is getting consumed a lot and its reaching GB's while monitoring with observer we identified it. Below mentioned are extra shinks

{proxy_lager_event, [
{handlers, [
{lager_file_backend, [
{file, "log/raw/XXX.txt"},
{level, info},
{rotator, lager_rotator},
{date, "$D23H59"},
{count, 60},
{formatter_config, [date, " ", time, " ", message, {eol, "\r\n"}]}
]}
]},
{async_threshold, 500},
{async_threshold_window, 50}
]},
{handler_lager_event, [
{handlers, [
{lager_file_backend, [
{file, "log/raw/XXX.txt"},
{level, info},
{rotator, eutils_lager_rotator},
{date, "$D23H59"},
{count, 60},
{formatter_config, [date, " ", time, " ", message, {eol, "\r\n"}]}
]}
]},
{async_threshold, 500},
{async_threshold_window, 50}
]},

We put a async_threshold of 500 messages. can this be quite high.

Can you suggest how can we better use lager(we are using tag 3.7.0)

@AbhilashR2020
Copy link
Author

erlang:process_info(<0.1064.0>).
[{registered_name,lager_event},
{current_function,{io,execute_request,2}},
{initial_call,{proc_lib,init_p,5}},
{status,waiting},
{message_queue_len,337},
{links,[<0.1067.0>,<0.1071.0>,<0.1074.0>,<0.1069.0>,
<0.1063.0>]},
{dictionary,[{'$initial_call',{gen_event,init_it,6}},
{'$ancestors',[lager_sup,<0.1062.0>]}]},
{trap_exit,true},
{error_handler,error_handler},
{priority,normal},
{group_leader,<0.1061.0>},
{total_heap_size,637736},
{heap_size,121536},
{stack_size,39},
{reductions,3159371619},
{garbage_collection,[{max_heap_size,#{error_logger => true,kill => true,size => 0}},
{min_bin_vheap_size,46422},
{min_heap_size,233},
{fullsweep_after,65535},
{minor_gcs,9}]},
{suspending,[]}]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant