recon 命令
recon memory | recon_alloc:memory/2 |
---|---|
recon allocated | recon_alloc:memory(allocated_types, current/max) |
recon bin_leak | recon:bin_leak(100) |
recon node_stats | recon:node_stats(10, 1000) |
recon remote_load Mod | recon:remote_load(Mod) |
访问 Documentation for recon (opens new window) 以获取详细信息。
recon memory
recon_alloc:memory/2:
$ ./bin/emqx_ctl recon memory
usage/current : 0.810331960305788
usage/max : 0.7992495929358717
used/current : 84922296
used/max : 122519208
allocated/current : 104345600
allocated/max : 153292800
unused/current : 19631520
unused/max : 30773592
recon allocated
recon_alloc:memory(allocated_types, current/max):
$ ./bin/emqx_ctl recon allocated
binary_alloc/current: 425984
driver_alloc/current: 425984
eheap_alloc/current : 4063232
ets_alloc/current : 3833856
fix_alloc/current : 1474560
ll_alloc/current : 90439680
sl_alloc/current : 163840
std_alloc/current : 2260992
temp_alloc/current : 655360
binary_alloc/max : 4907008
driver_alloc/max : 425984
eheap_alloc/max : 25538560
ets_alloc/max : 5931008
fix_alloc/max : 1736704
ll_alloc/max : 90439680
sl_alloc/max : 20348928
std_alloc/max : 2260992
temp_alloc/max : 1703936
recon bin_leak
recon:bin_leak(100):
$ ./bin/emqx_ctl recon bin_leak
{\<10623.1352.0>,-3,
[cowboy_clock,
{current_function,{gen_server,loop,7}},
{initial_call,{proc_lib,init_p,5}}]}
{\<10623.3865.0>,0,
[{current_function,{recon_lib,proc_attrs,2}},
{initial_call,{erlang,apply,2}}]}
{\<10623.3863.0>,0,
[{current_function,{dist_util,con_loop,2}},
{initial_call,{inet_tcp_dist,do_accept,7}}]}
...
recon node_stats
recon:node_stats(10, 1000):
$ ./bin/emqx_ctl recon node_stats
{[{process_count,302},
{run_queue,0},
{memory_total,88925536},
{memory_procs,27999296},
{memory_atoms,1182843},
{memory_bin,24536},
{memory_ets,7163216}],
[{bytes_in,62},
{bytes_out,458},
{gc_count,4},
{gc_words_reclaimed,3803},
{reductions,3036},
{scheduler_usage,[{1,9.473889959272245e-4},
{2,5.085983030767205e-5},
{3,5.3851477624711046e-5},
{4,7.579021269127057e-5},
{5,0.0},
{6,0.0},
{7,0.0},
{8,0.0}]}]}
...
recon remote_load Mod
recon:remote_load(Mod):
$ ./bin/emqx_ctl recon remote_load