My website running on Linux written in Phoenix and which very few visitors visit is consuming this much resources, as shown by “top”
PID USER PR NI VIRT RES %CPU %MEM TIME+ S COMMAND
21752 my_user 20 0 13.7m 3.4m 0.0 0.3 0:00.00 S `- my_app
- 3.5 Mb or RAM? How can that be? Why so ridiculously small? Even an app, say, in Rust, consumes around 10 Mb. Let alone Ruby. The ruby framework roda consumes around 50 Mb, and Rails - around 200 Mb.
But 3.5 Mb… what’s the catch?
- How do I know what the overhead – the RAM consumed – of the Erlang virtual machine?
update:
actually, there’re a few processes there related my website and beam and the one which looks like the one I need is consuming around 60 Mb. Now it makes more sense.