nickva commented on issue #761: Add a debugging utilities for listing processes URL: https://github.com/apache/couchdb/pull/761#issuecomment-324727120 Retested with the latest fix: ``` ======================== EUnit ======================== module 'couch_debug' link_tree tests couch_debug:538: should_have_same_shape...ok couch_debug:546: should_include_extra_info...[0.001 s] ok [done in 0.033 s] [done in 0.033 s] ======================================================= 2 tests passed. ==> rel (eunit) ``` ``` [email protected])73> couch_debug:print_linked_processes(couch_index_server). name | reductions | message_queue_len | memory |id couch_index_server[<0.247.0>] | 60565 | 0 | 35792 | couch_index:init/1[<0.13193.0>] | 3668 | 0 | 10992 | couch_file:init/1[<0.13208.0>] | 3651 | 0 | 55320 |135:#Port<0.26073>:/.shards/60000000-7fffffff/db1.1503601112_design/mrview/404080efa13546e83b7bc66d6e043531.view couch_index:init/1[<0.13193.0>] | 3668 | 0 | 10992 | couch_index_updater:init/1[<0.13232.0>] | 1668 | 0 | 21648 | couch_index:init/1[<0.13193.0>] | 3668 | 0 | 10992 | couch_index_compactor:init/1[<0.13235.0>] | 18 | 0 | 2832 | ``` ``` couch_debug:print_linked_processes(couch_server). name | reductions | message_queue_len | memory couch_server[<0.239.0>] | 246865 | 0 | 167936 couch_db_updater:init/1[<0.2289.0>] | 3894 | 0 | 34656 couch_server[<0.239.0>] | 246865 | 0 | 167936 couch_db_updater:init/1[<0.2851.0>] | 3894 | 0 | 34656 ``` ``` ([email protected])81> couch_debug:help(print_linked_processes). - print_linked_processes(Pid) - print_linked_processes(RegisteredName) - print_linked_processes(couch_index_server) --------------------------- Print cluster of linked processes. This function receives the initial Pid to start from. The function doesn't recurse to pids older than initial one. The output would look like similar to: ``` couch_debug:print_linked_processes(whereis(couch_index_server)). name | reductions | message_queue_len | memory couch_index_server[<0.288.0>] | 478240 | 0 | 109696 couch_index:init/1[<0.3520.22>] | 4899 | 0 | 109456 couch_file:init/1[<0.886.22>] | 11973 | 0 | 67984 couch_index:init/1[<0.3520.22>] | 4899 | 0 | 109456 ``` --- ok ``` +1 for new changes ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
With regards, Apache Git Services
