memory leaks - Performance Monitor Trigger Another Program -
i trying use windows server 2008 performance counter monitor 1 of long running process.
i able setup datacollector >> \process\private bytes collect performance data (memory usage). wondering whether can setup threshold in performance counter , use trigger 1 local program. in case long running program consumes memory server, trigger windows script shut down.
i realize lame way of dealing memory leaking problem, feasible solution now.
1) in windows performance monitor 1.1) data collector sets >> create new user defined data collector set (choose option created manually (advanced))
1.2) type of data want include ? >> performance counter alert
1.3) add performance counter list (in case, process >> private bytes >> choose running process called xxxx)
1.4) click ok create such performance monitor
when condition of performance counter has met, write event log entry in case event log id 2031.
1.5) attach task event, in case, choose run program when event id 2031 logged
the following article has helped me :
Comments
Post a Comment