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

后端 未结 30 3131
心在旅途
心在旅途 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:41

    #!/bin/ksh
    #
    # Returns total memory used by process $1 in kb.
    #
    # See /proc/NNNN/smaps if you want to do something
    # more interesting.
    #
    
    IFS=$'\n'
    
    for line in $(

提交回复
热议问题