none
Program Thread is still running in Task Manager after program exits

    Question

  • Hi,

    We are running Windows 2008 64bits R2 Enterprise edition in production and we are experiencing some strange behavior of Windows Operating System.  The application ended and the thread exit but the application still show running on Task Manager.  We had to kill the application from Task Manager in order to end it.  Problem does not happen every time.  Before the program exit, it writes a log message to the log file stating the program has ended.  We saw the message in the log file and yet Task Manager still show it is running until we kill it from Task Manager.  Any one had experience this problem?

    Please advise,

    Brian.


    Brian

    Wednesday, June 19, 2013 4:29 PM

All replies

  • The application ended and the thread exit but the application still show running on Task Manager.  We had to kill the application from Task Manager in order to end it.  Problem does not happen every time.  Before the program exit, it writes a log message to the log file stating the program has ended.  We saw the message in the log file and yet Task Manager still show it is running until we kill it from Task Manager.  Any one had experience this problem?

    Is it a single application which is causing this type of behaviour ?

    What is this application ?

    If its non-OS task / program, Then i would suggest you to invole application owner / vendor here to investigate further.

    We had same issues with one of my server and that was because if the application misconfiguration itself.

    HTH


    Thanks & Regards,
    Amit Katkar (MCITP Windows 2008)
    ------------------------------------------------------------
    This posting is provided "AS IS" with no warranties or guarantees and confers no rights.

    Wednesday, June 19, 2013 4:51 PM
  • We are talking to the company who developed the application.  They have been looking at their code and could not find anything wrong and they suspect it is the OS issue...  I saw Thread Exit from sysinternal process monitor tool.  It appears the application already exits but OS does not know about it. 

    Brian

    Wednesday, June 19, 2013 8:48 PM
  • Ok Brian,

    Could you share the application exe name which you are seeing in Task manager and the process name if different.

    Also, please check if any other process is linked with this application which is still executing post to exit the application.


    Thanks & Regards,
    Amit Katkar (MCITP Windows 2008)
    ------------------------------------------------------------
    This posting is provided "AS IS" with no warranties or guarantees and confers no rights.

    Thursday, June 20, 2013 10:44 AM
  • Sysinternals Process MonitorProcess Name in Task ManagerThe application name is HeaderRetryProcess.exe.  Notice that the application exit and ended with IRP_MJ_CLOSE successful. Yet, it is still running in Task Manager. One thing I notice that the PID is different. The HeaderRetryProcess.exe is launched by the Windows batch job. We are using the bat command file to run this program. It is part of the steps in the batch. 

    Process Monitor shows the PID is 5944 but the PID in the Task Manager is 6920.  It appears the application release the thread back to OS but OS does not know it finished. 

    Any idea?


    Brian

    Saturday, June 22, 2013 3:09 PM