相当于Windows上的/ proc / pid / status


1

我在Linux上使用/ proc / pid / status | grep VmRSS来查找特定进程的内存使用情况。

在Windows上可以做同样的事情吗?

Answers:


2

tasklist /FI "PID eq ABCD" /FO csv-显示流程的基本信息;您可以通过管道将其findstr仅获取内存的行/字符串


0

我认为Sysinternals工具pslist可能会对您有所帮助。

参考:pslist


2
尽管此链接可以回答问题,但最好在此处包括答案的基本部分,并提供链接以供参考。如果链接的页面发生更改,仅链接的答案可能会失效。
贾瓦

好的,我编辑了答案。感谢您的反馈。
杰克

我当时在考虑使用Windows命令窗口而不是外部应用程序。
des_user 2013年

0

如果要查看进程的内存使用情况,可以通过批处理文件运行以下脚本;以powershell.exe为例:

@echo off
for /f "tokens=5 delims= " %%A in ('tasklist /NH /FI "ImageName Eq powershell.exe"') do (
    echo %%A K
)
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.