How to identify memory consumption per thread in a process?
问题 A multi-thread process written in C exhausts almost all of system memory. To find out the thread which is consuming most of the memory, I made a core file using gcore [pid] to check the memory usage per threads, but I can't find the way to do that. ps -eLFlm and top command with -H option shows the total memory consumption, but not per thread. Is there any useful tip to solve the problem? OS : Centos6 回答1: A multi-thread process written in C exhausts almost all of system memory. To find out