Samuel-88
Log how much memory a specific function is consuming
Hello all,
I’m having a problem that an Oban Job is consuming all the memory in my pod and crashing the application. But I don’t know exactly in which part I’m having the problem.
I did some research and came across this function :erlang.memory(:total) that checks the total memory amount used. So I can log this in different parts of the application to try to see where I’m having a problem, but that is not the ideal solution.
There is also some functions to check a function performance, but that is not viable in production.
Does anyone know how can I log how much memory a specific function used?
Thanks in advance for any help,
Most Liked
karlosmid
Hi!
Can you get erl_crash.dump file from the pod?
Here are basic instructions for crash dump file analysis:
erl_crash.dump
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #elixirconf-us
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #metaprogramming
- #security
- #hex










