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,