Skip to content

Instantly share code, notes, and snippets.

@maisenovich
Last active August 29, 2015 13:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maisenovich/10226474 to your computer and use it in GitHub Desktop.
Save maisenovich/10226474 to your computer and use it in GitHub Desktop.
ETS memory snapshot while running heavy publishing load test on RMQ (mgmt plugin memory issue)
[root@lab-rmq02 tmp]# /usr/sbin/rabbitmqctl eval '{process_info(global:whereis_name(rabbit_mgmt_db),memory),[{T, ets:info(T,size), ets:info(T,memory)} || T <-lists:sort(ets:all()), rabbit_mgmt_db <- [ets:info(T, name)]],sys:get_status(global:whereis_name(rabbit_mgmt_db))}.'
{{memory,3233453136},
[{5730387,1046,204783},
{5734488,5,904},
{5738585,2006,126615},
{5742682,1,175},
{5746779,1,175},
{5750876,1,1059},
{5754973,513948,22841771},
{5759070,1016302,25419148},
{5763167,1016761,71355520}],
{status,<5249.475.0>,
{module,gen_server2},
[[{'$ancestors',[<5249.473.0>,rabbit_mgmt_sup,<5249.418.0>]},
{'$initial_call',{gen,init_it,6}}],
running,<5249.473.0>,[],
[{header,"Status for generic server <0.475.0>"},
{data,
[{"Status",running},
{"Parent",<5249.473.0>},
{"Logged events",[]},
{"Queued messages",
{6739,
{summary,
[{{0,
{'$gen_cast',
{event,{event,channel_stats,'_',{'_','_','_'}}}}},
5002},
{{0,
{'$gen_cast',
{event,{event,connection_stats,'_',{'_','_','_'}}}}},
8},
{{0,
{'$gen_cast',
{event,{event,node_stats,'_',{'_','_','_'}}}}},
18},
{{0,
{'$gen_cast',
{event,{event,queue_stats,'_',{'_','_','_'}}}}},
1711}]}}}]},
{data,
[{"State",
{state,
[{channel_stats,5738585},
{connection_stats,5734488},
{consumers_by_channel,5746779},
{consumers_by_queue,5742682},
{node_stats,5750876},
{queue_stats,5730387}],
5754973,5759070,5763167,#Ref<5249.0.10.135413>,
{5754973,
{{queue_stats,{resource,<<"/">>,queue,<<"foo-143">>}},
messages_unacknowledged},
[],100,<<>>,[],0,0},
[{exchange,#Fun<rabbit_exchange.lookup.1>},
{queue,#Fun<rabbit_amqqueue.lookup.1>}],
5000}}]}]]}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment