3
1
I want to have a small batch script which runs on a server and every hour logs memory statistics. I already have the script log the process-specific info I want via other tools, but I want to know of a way (either directly on cmd or via a program) which will output the total committed memory of the system. In other words, I think the commit charge total statistic in the Task Manager is what I want to know, but via the command line:
Hi!).
CommitLimit
not aCommit Charge Peak
– STTR – 2013-06-26T18:22:30.6631@STTR: He wants Commit Charge Total. Isn't that the same as CommittedBytes? The values certainly seem to match on my PC. – Karan – 2013-06-26T18:42:48.300
1http://blog.whatsupduck.net/2010/05/querying-peak-commit-bytes-with.html it not :
wmic path Win32_PerfFormattedData_PerfOS_Memory get CommittedBytes, CommitLimit
– STTR – 2013-06-26T18:51:23.813@STTR: That blog post you linked to agrees with me. CommittedBytes is Commit Charge Total. Neither the OP nor I mentioned Commit Charge Peak, so I honestly fail to see what the problem is. – Karan – 2013-06-26T18:59:43.210
Plz, see test script. – STTR – 2013-06-26T19:24:45.800
@STTR: Thanks a lot though for reminding me of the
wmic
command. Somehow I always turn to VBS/WSH first and forget about that. – Karan – 2013-06-26T19:26:08.480