My goal is to find out from the main file where the message is located, why a particular process consumes a lot of memory. Is there a summary I can get? As is obvious, there can be no question, because I cannot get access to the process live.
First of all, getting output similar to / proc / "pid" / maps will help, but
maintenance info sections
(as described here: GDB: listing all the displayed memory areas for a crashed process ) in gdb does not show heap memory consumption.
info proc map
is an option, since I can access the machine with the same code, but as far as I saw, this is incorrect. In my process, 700 MB was used, but only about 10 MB were observed on the cards. And I did not see .so-s there that are visible in
maintenance print statistics
Do you know any other team that might be useful?
I can always process the code, but it is not easy. Along with reaching all the highlighted data with pointers, it looks like a needle in a haystack.
Do you have any ideas?
source share