Use exmap to view the memory usage of a process in detail
Source: Internet
Author: User
Use exmap to view the memory usage of processes in detail-Linux Enterprise Application-Linux server application information. The following is a detailed description. In Linux, you can use ps or top to view the memory usage of each process.
However, when they are displayed, they all contain the memory occupied by the shared library. For example, process 1 and process 2 both use a shared library, and process 3 occupies 1 m of memory. In ps, the memory occupied by process 1 completely includes this 1 m, and process 2 is the same. In the exmap tool, it can identify the number of processes using a shared library, so the occupied memory is evenly distributed among the memory usage of each process. In the preceding example, 500 k is used for each of 1 and 2.
In addition to the shared library, it can also identify the number of processes that open a file and the memory usage of each process.
This program depends on the exmap. ko module and can be loaded with insmod during use.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service