ferd / recon_demo

Playground for recon, for practice and demos.
66 stars 31 forks source link

how can i get answer by using recon? #4

Open nazir912 opened 11 months ago

nazir912 commented 11 months ago

i have application implemented in erlang and i want to know like which process is using memory or cpu more than require.Can you provide example beacause i am not able to understand this demo. What's the system memory? Is the node's CPU loaded? Is any process mailbox overflowing? Which chatty process takes the most memory? Which chatty process is eating the most CPU? Which chatty process is consuming the most bandwidth? Which chatty process sends the most messages over TCP? The least? Can chatty processes message themselves? (can this work with registered names? Do I need to check the chattiest one and see if it messages itself?) If they send messages to themselves, can you make it so they can't without touching code? The opposite? Can you estimate the overall frequency at which messages are sent globally? how can i get answer by using recon?

ferd commented 11 months ago

The whole point of the repository is to use recon to find these answers.

I would recommend starting by reading the high level docs: http://ferd.github.io/recon/overview.html and maybe the API reference (http://ferd.github.io/recon/api-reference.html).

If you want a lot of the answers with all the context, I've written a whole book about debugging Erlang systems (for free) at https://erlang-in-anger.com/ -- recon was built to serve the stuff going in there so it has all the answers and tricks.