{"action":"closed","issue":{"url":"https://api.github.com/repos/erlang-lager/lager/issues/352","repository_url":"https://api.github.com/repos/erlang-lager/lager","labels_url":"https://api.github.com/repos/erlang-lager/lager/issues/352/labels{/name}","comments_url":"https://api.github.com/repos/erlang-lager/lager/issues/352/comments","events_url":"https://api.github.com/repos/erlang-lager/lager/issues/352/events","html_url":"https://github.com/erlang-lager/lager/issues/352","id":153180689,"number":352,"title":"Lager overflow. [JIRA: RIAK-2543]","user":{"login":"loguntsov","id":687413,"avatar_url":"https://avatars.githubusercontent.com/u/687413?v=3","gravatar_id":"","url":"https://api.github.com/users/loguntsov","html_url":"https://github.com/loguntsov","followers_url":"https://api.github.com/users/loguntsov/followers","following_url":"https://api.github.com/users/loguntsov/following{/other_user}","gists_url":"https://api.github.com/users/loguntsov/gists{/gist_id}","starred_url":"https://api.github.com/users/loguntsov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loguntsov/subscriptions","organizations_url":"https://api.github.com/users/loguntsov/orgs","repos_url":"https://api.github.com/users/loguntsov/repos","events_url":"https://api.github.com/users/loguntsov/events{/privacy}","received_events_url":"https://api.github.com/users/loguntsov/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-05-05T07:09:40Z","updated_at":"2017-01-20T21:39:51Z","closed_at":"2017-01-20T21:39:51Z","body":"I'm using lager and testing on high load with tsung.\n\nI have many messages in message queue of default sink:\nI have loglevel as WARNING. And i see right behaviour in my log files. Have no tons messages in my log-files.\nBut all messages (see below) from message queue are INFO level, and this situation need CPU and memory from machine to process them.\n\nSo i can decide that basic feature: \n- When no handler is consuming a log level (eg. debug) no event is sent to the log handler\n\nare broken or was implemented not right.\n\nPlease, could you explain me where i'm wrong ?\n\nThanks.\n\n```\n(ejabberd@ip-10-0-0-38)54> process_info(pid(0,186,0)).             \n[{registered_name,lager_event},\n {current_function,{lager_util,level_to_num,1}},\n {initial_call,{proc_lib,init_p,5}},\n {status,running},\n {message_queue_len,29674},\n {messages,[{<0.21176.5>,\n             {<0.21176.5>,#Ref<0.0.786435.194854>},\n             {sync_notify,{log,{lager_msg,[],\n                                          [{module,mod_muc_registrar},\n                                           {function,get_user_route},\n                                           {line,227},\n                                           {pid,\"<0.21176.5>\"},\n                                           {node,'ejabberd@ip-10-0-0-38'},\n                                           {user,\"14842\"}],\n                                          info,\n                                          {[\"2016\",45,\"05\",45,\"05\"],[\"06\",58,\"48\",58,\"19\",46|...]},\n                                          {1462,430899,745377},\n                                          [76,111,111,107,117,112|...]}}}},\n            {<0.6024.5>,\n             {<0.6024.5>,#Ref<0.0.524295.70928>},\n             {sync_notify,{log,{lager_msg,[],\n                                          [{module,mod_muc_registrar},\n                                           {function,get_user_route},\n                                           {line,227},\n                                           {pid,\"<0.6024.5>\"},\n                                           {node,'ejabberd@ip-10-0-0-38'},\n                                           {user,\"7299\"}],\n                                          info,\n                                          {[\"2016\",45,\"05\",45,\"05\"],[\"06\",58,\"48\",58,[...]|...]},\n                                          {1462,430899,745385},\n                                          [76,111,111,107,117|...]}}}},\n            {<0.18924.5>,\n             {<0.18924.5>,#Ref<0.0.262159.237765>},\n             {sync_notify,{log,{lager_msg,[],\n                                          [{module,mod_muc_registrar},\n                                           {function,get_user_route},\n                                           {line,227},\n                                           {pid,\"<0.18924.5>\"},\n                                           {node,'ejabberd@ip-10-0-0-38'},\n                                           {user,[...]}],\n                                          info,\n                                          {[\"2016\",45,\"05\",45,[...]],[\"06\",58,\"48\",58|...]},\n                                          {1462,430899,745380},\n                                          [76,111,111,107|...]}}}},\n            {<0.1814.7>,\n             {<0.1814.7>,#Ref<0.0.524293.131603>},\n             {sync_notify,{log,{lager_msg,[],\n                                          [{module,mod_muc_registrar},\n                                           {function,get_user_route},\n                                           {line,227},\n                                           {pid,\"<0.1814.7>\"},\n                                           {node,'ejabberd@ip-10-0-0-38'},\n                                           {user,...}],\n                                          info,\n                                          {[\"2016\",45,\"05\",45|...],[\"06\",58,[...]|...]},\n                                          {1462,430899,745385},\n                                          [76,111,111|...]}}}},\n            {<0.26249.4>,\n             {<0.26249.4>,#Ref<0.0.524298.33536>},\n             {sync_notify,{log,{lager_msg,[],\n                                          [{module,mod_muc_registrar},\n                                           {function,get_user_route},\n                                           {line,227},\n                                           {pid,[...]},\n                                           {node,...},\n                                           {...}],\n                                          info,\n                                          {[\"2016\",45,[...]|...],[\"06\",58|...]},\n                                          {1462,430899,745399},\n                                          [76,111|...]}}}},\n            {<0.7800.6>,\n             {<0.7800.6>,#Ref<0.0.524294.130579>},\n             {sync_notify,{log,{lager_msg,[],\n                                          [{module,mod_muc_registrar},\n                                           {function,get_user_route},\n                                           {line,227},\n                                           {pid,...},\n                                           {...}|...],\n                                          info,\n                                          {[\"2016\",45|...],[[...]|...]},\n                                          {1462,430899,...},\n                                          [76|...]}}}},\n            {<0.13054.6>,\n             {<0.13054.6>,#Ref<0.0.1572866.14507>},\n             {sync_notify,{log,{lager_msg,[],\n                                          [{module,mod_muc_registrar},\n                                           {function,get_user_route},\n                                           {line,...},\n                                           {...}|...],\n                                          info,\n                                          {[[...]|...],[...]},\n                                          {1462,...},\n                                          [...]}}}},\n            {<0.4002.5>,\n             {<0.4002.5>,#Ref<0.0.524296.43809>},\n             {sync_notify,{log,{lager_msg,[],\n                                          [{module,mod_muc_registrar},{function,...},{...}|...],\n                                          info,\n                                          {[...],...},\n                                          {...},...}}}},\n            {<0.16338.5>,\n             {<0.16338.5>,#Ref<0.0.1572865.200181>},\n             {sync_notify,{log,{lager_msg,[],\n                                          [{module,...},{...}|...],\n                                          info,{...},...}}}},\n            {<0.24666.5>,\n             {<0.24666.5>,#Ref<0.0.524299.17115>},\n             {sync_notify,{log,{lager_msg,[],[{...}|...],info,...}}}},\n            {<0.19118.5>,\n             {<0.19118.5>,#Ref<0.0.262158.244692>},\n             {sync_notify,{log,{lager_msg,[],[...],...}}}},\n            {<0.2482.5>,\n             {<0.2482.5>,#Ref<0.0.262156.249257>},\n             {sync_notify,{log,{lager_msg,[],...}}}},\n            {<0.11147.5>,\n             {<0.11147.5>,#Ref<0.0.262160.230341>},\n             {sync_notify,{log,{lager_msg,...}}}},\n            {<0.25351.7>,\n             {<0.25351.7>,#Ref<0.0.262157.241744>},\n             {sync_notify,{log,{...}}}},\n            {<0.31316.6>,\n             {<0.31316.6>,#Ref<0.0.524292.131940>},\n             {sync_notify,{log,...}}},\n            {<0.9033.5>,\n             {<0.9033.5>,#Ref<0.0.786435.194855>},\n             {sync_notify,{...}}},\n            {<0.24505.4>,\n             {<0.24505.4>,#Ref<0.0.262159.237766>},\n             {sync_notify,...}},\n            {<0.1568.6>,{<0.1568.6>,...},{...}},\n            {<0.4521.6>,{...},...},\n            {<0.12471.5>,...},\n            {...}|...]},\n {links,[<0.189.0>,<0.193.0>,<0.195.0>,<0.668.0>,<0.191.0>,\n         #Port<0.1981>,<0.185.0>,#Port<0.1980>]},\n {dictionary,[{'$ancestors',[lager_sup,<0.184.0>]},\n              {'$initial_call',{gen_event,init_it,6}}]},\n {trap_exit,true},\n {error_handler,error_handler},\n {priority,normal},\n {group_leader,<0.183.0>},\n {total_heap_size,51408249},\n {heap_size,7427328},\n {stack_size,36},\n {reductions,505250072},\n {garbage_collection,[{min_bin_vheap_size,46422},\n                      {min_heap_size,233},\n                      {fullsweep_after,65535},\n                      {minor_gcs,36}]},\n {suspending,[]}]\n```\n"}}
{"actor":{"display_login":"mrallen1"}}