How can I measure the actual memory usage of an application or process?

后端 未结 30 2679
心在旅途
心在旅途 2020-11-22 03:01

This question is covered here in great detail.

How do you measure the memory usage of an application or process in Linux?

From the blog articl

30条回答
  •  情歌与酒
    2020-11-22 03:50

    Get Valgrind. Give it your program to run, and it'll tell you plenty about its memory usage.

    This would apply only for the case of a program that runs for some time and stops. I don't know if Valgrind can get its hands on an already-running process or shouldn't-stop processes such as daemons.

提交回复
热议问题