locked
Identifying hung process remotely RRS feed

  • Question

  • Hello All,

    I have an ActiveX Exe on a remote server. During the process of operation most of the time it hangs and does not process anything. It simply appears to consume memory but no CPU.

    I was wondering if anyone knows whether we can monitor programatically the hung processes remotely. I know we can check it in local system but my requirement is to do it in remote servers. Now we are helpless and have to monitor manually. Please advice.

    Thanks.

    Sam.

    Thursday, December 10, 2009 5:09 PM

Answers

All replies

  • Here is the possible solution:

    http://www.codeproject.com/KB/cs/CustomTaskManager.aspx


    Check if a remote process is running:

    http://stackoverflow.com/questions/865412/check-if-a-process-is-running-on-a-remote-system-using-c


    Using code project solution, you can get the process you are looking for. Later find out various performance, memory usage , many other parameter counters of the respective process. If the process in hung, these parameters will be different from normal process.

    Therefore, you can identify if that process is running smoothly or struck.

    Thats it.

    Regards,
    Jai
    • Marked as answer by eryang Friday, December 18, 2009 2:22 AM
    Sunday, December 13, 2009 8:16 AM
  • I know we can check it in local system...
    This is a hung process. How will you detect this to be hung?

    void main()
    {
        while (1) ;
    }

    This is a hung process. How will you detect this to be hung?

    void main()
    {
        Wait(CreateEvent());
    }

    Unless your definition of hung is somehow testable, there is no way to determine that a process is 'hung'.
    Sunday, December 13, 2009 5:47 PM