In Linux, the /proc/$PID/status file provides usage of the process resources (memory, stack, semaphore, child-parent), although Linux provides a lot of commands for viewing memory, but Looking at the overall usage, you cannot view the memory usage of a single process.
This article provides the script for everyone to view the memory usage of the system or process by viewing the VmRSS field in the status file. A friend in need may refer to it.
Copy Code: #! /bin/bash
echo -n "PidName " > /root/script/pid.f echo "MeMery " >> /Root/script/pid.f
PIDPATH=/proc/TOTLE=0 cd $PIDPATH DOC=`ls` for DOCNAME in $DOC do if [ -d $DOCNAME ]; then cd $DOCNAME if [ - f status ];then MEMERY=`grep VmRSS status
The reverse proxy can be divided into two types from the transmission: 1: synchronous mode (apache-
OpvnVPN Chinese full name: virtual private network. It is a private private network technology that
got a long time (about 3 days), and finally got through. At first I wanted to give up but slowly beg
1. Introduction to LVS1. Provide high availability and load balancing capabilities for application s
Linux becomes the cloud operating system
Three steps to teach you how to create a Linux flash drive
Under Linux, the CPU usage of C language is
The device is currently in use
Basic tutorial for acl settings under linux
Method of operating a Bluetooth phone in the Linux operating system, the so-called
Pending signal and signal blocking
Linux system environment variable configuration file introduction
Mounting of text editors and external storage devices in Linux system
Linux system how to quickly view the process pid
Windows7 comes with a problem logger. Screenshots quickly solve system problems.
Win10 does not stand by how to set up
Win7 disk becomes unmarked volume solution
The win7 microphone has no sound and can't be used for network chat.
What is WinPE? What is the specific role of WinPE? What is
How to look at the cpu dashboard? Win7 open cpu dashboard method
How to solve steam crash problem with Win10 9879
Win7 system Word program is not responding to the processing skills