Let's say i have 20 users logged on Server. How can I know how much memory percent used each of them is using with system time in each user?
It depends on which memory you are interested in.
Below is the code to get the memory used by processes for all the users in the system - grouped.
top -n1 -b | awk '/PID/{p=1;next} p{user[$2]+=$10} END{for(u in user){ printf("%10s %10d\n", u,user)}}'
In memory monitoring, Memory usage should be captured in a table format with usage by each user.
Columns should be 1.System time 2. user 3. Percentage usage
Report should be published with 1. current usage status 2.Trend over last 3 quarter
3. Usage by user