Logging Memory and CPU usage by Application

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
yasar2002
Posts: 4
Joined: 03 Oct 2012 07:29

Logging Memory and CPU usage by Application

#1 Post by yasar2002 » 03 Oct 2012 07:41

Hi Experts, I want to capture application.exe, memory used, CPU used every 30 minutes in a log file. for four Java processes (7005.exe, 7006.exe, 7007.exe, 7008.exe)

This will be reviewed everyweek.

Please advise how can I achieve this.

Thanks,

YM.

yasar2002
Posts: 4
Joined: 03 Oct 2012 07:29

Re: Logging Memory and CPU usage by Application

#2 Post by yasar2002 » 03 Oct 2012 23:09

Thanks billrich I am aware of this tool.

My requirement is to capture logs in a single text file.

A batch file that runs every 30 minutes. Filters 4 processes, and captures memory used, CPU used at that time and writes it to text file.

Data in this file will be compared with database sessions launched by the users.

I hope I explain the requirements correctly this time.

Regards,

Yasar

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: Logging Memory and CPU usage by Application

#3 Post by foxidrive » 04 Oct 2012 01:22

yasar2002 wrote:My requirement is to capture logs in a single text file.

A batch file that runs every 30 minutes. Filters 4 processes, and captures memory used, CPU used at that time and writes it to text file.


Do you know a command line tool that captures the info that you need?

Squashman
Expert
Posts: 4488
Joined: 23 Dec 2011 13:59

Re: Logging Memory and CPU usage by Application

#4 Post by Squashman » 04 Oct 2012 06:03

tasklist shows memory usage and cpu time. Not sure if that is what you are after.

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: Logging Memory and CPU usage by Application

#5 Post by foxidrive » 04 Oct 2012 06:09

Tasklist can filter on CPU time in hours etc but it doesn't display CPU usage.

Maybe this is a job for wmic?

Post Reply