You can view several methods of memory usage by a process.
1. pmap-x pid
2. ps-aux | grep process name
Ps-e-o 'pid, comm, args, pcpu, rsz, vsz, stime, user, uid' | grep process name
3. top-d 1-p pid
4. cat/proc/[pid]/status
How can I check the virtual memory occupied by a process?
I have a computer that often prompts that the virtual memory is insufficient, but the memory usage is normal. The virtual memory usage is obviously too large. I want to check what processes are occupied and what method is the easiest to use? Not to mention that I set the virtual memory too low. Although it is the default value of the system, it will not be too low. Besides, I also know how to set it. I just want to know what process occupies the virtual memory. Is there a solution? Do I need software?
In the task manager, how does one know which process occupies the memory and close this program?
Right-click the blank area in the taskbar (blue bar below the screen)
Select Task Manager
In the displayed dialog box, click Process
Shown as below
Image name username CPU memory usage
View the memory usage column to know the memory size used by a process, in KB
Select a process, right-click, and select End Process
Supplement:
View the virtual memory usage. In the Task Manager dialog box, click the view (V) drop-down list.
Select selected columns...
In the pop-up sub-dialog box, the right column of row 2nd --- the box before the virtual memory size
Click "Submit" to open the archive.