• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

HungAppTimeout Threshold - Specify in Windows


Brink

Administrator
Administrator
mvp
Posts
23,632
HungAppTimeout Threshold - Specify in Windows
This tutorial will show you how to specify a HungAppTimeout threshold to wait and determine if a process is hung for current or all users in XP, Vista, Windows 7, and Windows 8.
Published by Brink
#1
Category:
ByLine
How to Specify HungAppTimeout Used to Determine a Hung Process in Windows
Synopsis
This tutorial will show you how to specify a HungAppTimeout threshold to wait and determine if a process is hung for current or all users in XP, Vista, Windows 7, and Windows 8.
How to Specify HungAppTimeout Used to Determine a Hung Process in Windows

information   Information
When user processes (tasks) do not end (close) automatically (AutoEndTasks) at sign out, restart, or shutdown, the system waits until the process ends on it's own. If the process hasn't ended by the set HungAppTimeout value, the End Task dialog box appears, stating that the processes are not responding to the End Task request and prompts the user to either force sign out/restart/shut down and force close (end task) the non-responding processes OR to cancel sign out/shut down to return to Windows.

The HungAppTimeout value also specifies how long the system waits for user processes to end after the user clicks the End task button in Task Manager to determine whether or not the process is hung. If this HungAppTimeout threshold is exceeded, the End Task dialog box appears, stating that the process did not respond.

The HungAppTimeout value also controls the timeout for ghosting/frosting to occur.


This tutorial will show you how to specify a HungAppTimeout threshold to wait and determine if a process is hung for current or all users in XP, Vista, Windows 7, and Windows 8.


EXAMPLE: Force End Task Dialog at Shutdown
Force_Log_Off.jpg
Force_Shut_Down.jpg






OPTION ONE
To Specify HungAppTimeout Threshold for Only Your Account

NOTE: If a HungAppTimeout threshold is set in OPTION TWO below, it will override whatever is set in this option.
1. Press the :winkey: + R keys to open the Run dialog, type regedit, and click/tap on OK.​
2. If prompted by UAC, then click/tap on Yes.​
3. In regedit, navigate to the location below. (see screenshot below)​
HKEY_CURRENT_USER\Control Panel\Desktop
Current_User_HungAppTimeout_REG.jpg
4. In the right pane of Desktop, double/click tap on the HungAppTimeout string value to modify it. (see screenshot above)​
Note   Note
If you do not have a HungAppTimeout string value, then right click or press and hold on an empty space in the right pane of Desktop, click/tap on New and String Value, type HungAppTimeout for the name, and press Enter.
Note   Note

5. Type in a number for how many milliseconds you want to have for the HungAppTimeout value, and click/tap on OK. (see screenshot below)​
Note   Note
The default value is 5000 milliseconds (5 seconds). You could also delete the HungAppTimeout string value, to have it use 5000 milliseconds by default as well.
Note   Note

It is recommended to not set a value below 1000 milliseconds.​
1000 milliseconds = 1 second​
60000 milliseconds = 60 seconds (1 minute)​
Modify_HungAppTimeout.jpg
6. If you like, you may also wish to change the AutoEndTasks, WaitToKillAppTimeout, and WaitToKillServiceTimeout values to what you want.​
7. When finished, close Registry Editor and restart the PC to apply.​





OPTION TWO
To Specify HungAppTimeout Threshold for All Users


Note   Note
You must be signed in as an administrator to be able to do this option.

If you set a HungAppTimeout threshold in this option, then it will override whatever is set by users in OPTION ONE above.


1. Press the :winkey: + R keys to open the Run dialog, type regedit, and click/tap on OK.​
2. If prompted by UAC, then click/tap on Yes.​
3. In regedit, navigate to the location below. (see screenshot below)​
HKEY_USERS\.DEFAULT\Control Panel\Desktop
All_User_HungAppTimeout_REG.jpg
4. In the right pane of Desktop, double/click tap on the HungAppTimeout string value to modify it. (see screenshot above)​
Note   Note
If you do not have a HungAppTimeout string value, then right click or press and hold on an empty space in the right pane of Desktop, click/tap on New and String Value, type HungAppTimeout for the name, and press Enter.
Note   Note

5. Type in a number for how many milliseconds you want to have for the HungAppTimeout value, and click/tap on OK. (see screenshot below)​
Note   Note
The default value is 5000 milliseconds (5 seconds).
Note   Note

It is recommended to not set a value below 1000 milliseconds.​
If you like, you can delete the HungAppTimeout string value here at any time so it will no longer override what is set by users using OPTION ONE above.​
1000 milliseconds = 1 second​
60000 milliseconds = 60 seconds (1 minute)​
Modify_HungAppTimeout.jpg
6. If you like, you may also wish to change the AutoEndTasks, WaitToKillAppTimeout, and WaitToKillServiceTimeout values to what you want.​
7. When finished, close Registry Editor and restart the PC to apply.​


That's it,
Shawn


 
Last edited:

My Computer

System One

  • OS
    64-bit Windows 10
    Computer type
    PC/Desktop
    System Manufacturer/Model Number
    Custom self built
    CPU
    Intel i7-8700K OC'd to 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    16 GB (8GBx2) G.SKILL TridentZ DDR4 3200 MHz
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    3 x 27" Asus VE278Q
    Screen Resolution
    1920x1080
    Hard Drives
    250GB Samsung 960 EVO M.2,
    256GB OCZ Vector,
    6TB WD Black WD6001FZWX
    8TB WD MyCloudEX2Ultra NAS
    PSU
    OCZ Series Gold OCZZ1000M 1000W
    Case
    Thermaltake Core P3
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master
    Internet Speed
    1 Gb/s Download and 35 Mb/s Upload
    Browser
    Internet Explorer 11
    Antivirus
    Malwarebyte Anti-Malware Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    Linksys EA9500 router,
    Arris SB8200 cable modem,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Lumia 1520 phone

Users Who Are Viewing This Thread (Users: 0, Guests: 1)