Announcement

Collapse
No announcement yet.

To list top 5 ram memory consuming process

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • To list top 5 ram memory consuming process


    You can use below script to get top memory consuming processes,


    Code:
    import os;
    print('Top  RAM memory consuming processes \n');
    process=os.popen('tasklist /v /FI "MEMUSAGE ge 10000" | sort /+67 /R').readlines();
    try:
       for i in range(1,7,1):
           print (process[i]);
    except:
        print("Finished");
    Sample output would be,

    Click image for larger version

Name:	top_5_ram_consuming_processes.jpg
Views:	1
Size:	47.3 KB
ID:	4784


    Last edited by mkannan; 09-20-2016, 06:07 AM.
Working...
X