How do I check the memory used by a process at same instance. Input provided is process NAME or ID. Need to know the actual memory used by the process at runtime. What command should I enter to get result.
You have multiple options to find out the actual memory consumption for eg. top (memory/cpu stats), free ( used/unused memory),mpstat ( cpu stats). Although, I'd like to mention the following as it suits your requirement.
top p process_id
试试这个:
ps -e -orss=,args= | sort -b -k1,1n
You can use general and for particular user,
General: top For Particular User: top -U username
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.