1

I use /proc/pid/status |grep VmRSS on Linux to find out the memory usage of specific process.

Is it possible to do the same thing on Windows?

2

tasklist /FI "PID eq ABCD" /FO csv - displays very basic info for a process; you can pipe it through findstr to get just the line/string for the memory

0

I think the Sysinternals tool pslist might help you.

Reference: pslist

  • 2
    While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. – Jawa Aug 20 '13 at 18:11
  • OK, I edited the answer. Thanks for the feedback. – Jack Aug 21 '13 at 1:34
  • I was thinking of using windows command window and not an external application. – des_user Aug 21 '13 at 7:23
0

If you want to see the memory usage of a process you can run the below script via a batch file; using powershell.exe as an example:

@echo off
for /f "tokens=5 delims= " %%A in ('tasklist /NH /FI "ImageName Eq powershell.exe"') do (
    echo %%A K
)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.