none
Automatically End A Process In Task Manager

    Question

  • Hi, I have a particular OS process which I want to automatically end/kill it (End Process) when it uses 1.5GB of memory. Is there a way to do this? I am using Windows Server 2003 SP2.

    Thanks!

    Tuesday, July 16, 2013 3:27 AM

Answers

  • You can always use Performance Monitor to alert and run a program if you get it to run taskkill you can get a process to terminate on your computer. Type taskkill /? into a command line to get help.


    Here’s an example on how to use perfmon.exe to monitor the memory usage of a process.

    HOWTO: How do I use Performance Monitor (perfmon.exe) to monitor the amount of memory a single instance of a report process is using?
    https://www.trustwave.com/support/kb/article.aspx?id=10527


    TechNet Subscriber Support |If you have any feedback on Technet forum, please contact tnmff@microsoft.com.

    Wednesday, July 17, 2013 3:01 AM
    Moderator
  • As Zhang has suggested you can use Perfmon.

    You can also try, tasklist /? get the process ID and the Memory Consumption.

    Then you can use taskkill  PID, the PID that you want to terminate the application.

    I think you can do a VBScript or PowerShell to automate tasklist and taskill.

    But Perfmon of course is a way to go.

    check out this link:http://support.microsoft.com/kb/324752/en-us


    Every second counts..make use of it.

    Wednesday, July 17, 2013 6:56 AM

All replies

  • You can always use Performance Monitor to alert and run a program if you get it to run taskkill you can get a process to terminate on your computer. Type taskkill /? into a command line to get help.


    Here’s an example on how to use perfmon.exe to monitor the memory usage of a process.

    HOWTO: How do I use Performance Monitor (perfmon.exe) to monitor the amount of memory a single instance of a report process is using?
    https://www.trustwave.com/support/kb/article.aspx?id=10527


    TechNet Subscriber Support |If you have any feedback on Technet forum, please contact tnmff@microsoft.com.

    Wednesday, July 17, 2013 3:01 AM
    Moderator
  • As Zhang has suggested you can use Perfmon.

    You can also try, tasklist /? get the process ID and the Memory Consumption.

    Then you can use taskkill  PID, the PID that you want to terminate the application.

    I think you can do a VBScript or PowerShell to automate tasklist and taskill.

    But Perfmon of course is a way to go.

    check out this link:http://support.microsoft.com/kb/324752/en-us


    Every second counts..make use of it.

    Wednesday, July 17, 2013 6:56 AM