Skip to content

Instantly share code, notes, and snippets.

@maisenovich
maisenovich / gist:10339925
Last active Aug 29, 2015
Simple program that publishes to RabbitMQ and reproduces mgmt_db memory issue.
View gist:10339925
import com.rabbitmq.client.Channel;
import com.rabbitmq.client.Connection;
import com.rabbitmq.client.ConnectionFactory;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Random;
@maisenovich
maisenovich / gist:10284388
Created Apr 9, 2014
RabbitMQ status output (idle)
View gist:10284388
[root@lab-rmq02 pmaisenovich]# /usr/sbin/rabbitmqctl status
Status of node 'rabbit@lab-rmq02' ...
[{pid,31311},
{running_applications,
[{rabbitmq_federation_management,"RabbitMQ Federation Management",
"3.1.5"},
{rabbitmq_management,"RabbitMQ Management Console","3.1.5"},
{rabbitmq_federation,"RabbitMQ Federation","3.1.5"},
{rabbitmq_auth_backend_ldap,"RabbitMQ LDAP Authentication Backend",
"3.1.5"},
@maisenovich
maisenovich / gist:10283607
Created Apr 9, 2014
process_info(rabbit_mgmt_db, memory) and ETS sizes output with 1 sec interval while running RabbitMQ mgmt plugin crash test
View gist:10283607
{{memory,2304},
[{5734484,46,9243},
{5738585,3,522},
{5742682,4,359},
{5746779,1,175},
{5750876,1,175},
{5754973,1,1059},
{5759070,148,5943},
{5763167,0,90},
{5767264,49,10626}],
@maisenovich
maisenovich / gist:10226881
Last active Aug 29, 2015
5 seconds worth fprof analysis of rabbit_mgmt_db process while running moderate load test
View gist:10226881
%% Analysis results:
{ analysis_options,
[{callers, true},
{sort, acc},
{totals, true},
{details, true}]}.
% CNT ACC OWN
[{ totals, 483941, 5542.734, 2999.596}]. %%%
@maisenovich
maisenovich / gist:10226474
Last active Aug 29, 2015
ETS memory snapshot while running heavy publishing load test on RMQ (mgmt plugin memory issue)
View gist:10226474
[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},