recon 命令

recon memoryrecon_alloc:memory/2
recon allocatedrecon_alloc:memory(allocated_types, current/max)
recon bin_leakrecon:bin_leak(100)
recon node_statsrecon:node_stats(10, 1000)
recon remote_load Modrecon:remote_load(Mod)

访问 Documentation for recon recon 命令 - 图1 (opens new window) 以获取详细信息。

recon memory

recon_alloc:memory/2:

  1. $ ./bin/emqx_ctl recon memory
  2. usage/current : 0.810331960305788
  3. usage/max : 0.7992495929358717
  4. used/current : 84922296
  5. used/max : 122519208
  6. allocated/current : 104345600
  7. allocated/max : 153292800
  8. unused/current : 19631520
  9. unused/max : 30773592

recon allocated

recon_alloc:memory(allocated_types, current/max):

  1. $ ./bin/emqx_ctl recon allocated
  2. binary_alloc/current: 425984
  3. driver_alloc/current: 425984
  4. eheap_alloc/current : 4063232
  5. ets_alloc/current : 3833856
  6. fix_alloc/current : 1474560
  7. ll_alloc/current : 90439680
  8. sl_alloc/current : 163840
  9. std_alloc/current : 2260992
  10. temp_alloc/current : 655360
  11. binary_alloc/max : 4907008
  12. driver_alloc/max : 425984
  13. eheap_alloc/max : 25538560
  14. ets_alloc/max : 5931008
  15. fix_alloc/max : 1736704
  16. ll_alloc/max : 90439680
  17. sl_alloc/max : 20348928
  18. std_alloc/max : 2260992
  19. temp_alloc/max : 1703936

recon bin_leak

recon:bin_leak(100):

  1. $ ./bin/emqx_ctl recon bin_leak
  2. {\<10623.1352.0>,-3,
  3. [cowboy_clock,
  4. {current_function,{gen_server,loop,7}},
  5. {initial_call,{proc_lib,init_p,5}}]}
  6. {\<10623.3865.0>,0,
  7. [{current_function,{recon_lib,proc_attrs,2}},
  8. {initial_call,{erlang,apply,2}}]}
  9. {\<10623.3863.0>,0,
  10. [{current_function,{dist_util,con_loop,2}},
  11. {initial_call,{inet_tcp_dist,do_accept,7}}]}
  12. ...

recon node_stats

recon:node_stats(10, 1000):

  1. $ ./bin/emqx_ctl recon node_stats
  2. {[{process_count,302},
  3. {run_queue,0},
  4. {memory_total,88925536},
  5. {memory_procs,27999296},
  6. {memory_atoms,1182843},
  7. {memory_bin,24536},
  8. {memory_ets,7163216}],
  9. [{bytes_in,62},
  10. {bytes_out,458},
  11. {gc_count,4},
  12. {gc_words_reclaimed,3803},
  13. {reductions,3036},
  14. {scheduler_usage,[{1,9.473889959272245e-4},
  15. {2,5.085983030767205e-5},
  16. {3,5.3851477624711046e-5},
  17. {4,7.579021269127057e-5},
  18. {5,0.0},
  19. {6,0.0},
  20. {7,0.0},
  21. {8,0.0}]}]}
  22. ...

recon remote_load Mod

recon:remote_load(Mod):

  1. $ ./bin/emqx_ctl recon remote_load