Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What is a process handle and what can we know about a running process through the "handle count" property in a task explorer?

enter image description here

share|improve this question
up vote 14 down vote accepted

A process handle is an integer value that identifies a process to Windows. The Win32 API calls them a HANDLE; handles to windows are called HWND and handles to modules HMODULE.

Threads inside processes have a thread handle, and files and other resources (such as registry keys) have handles also.

The handle count you see in Task Manager is "the number of object handles in the process's object table". In effect, this is the sum of all handles that this process has open.

If you do not release your handle to a resource, other people may not be able to access it - this is why you sometimes cannot delete a file because Windows claims it is in use (check out this article on handle leaks and Process Explorer).

Also, there is a per-process limit on various handles. Here is an example.

In general, if you are opening handles and not closing them, it is analogous to leaking memory. You should figure out what is going on and fix it. There is a good CodeProject article on handle leaks.

share|improve this answer

A temporary name or number assigned to a file, font or other object. For example, an operating system may assign a sequential number to each file that it opens as a way of identifying it.

enter image description here
For example to understand terminology Handle : A Twitter username is the same thing as a Twitter handle. It's the name each person selects to use Twitter and must contain fewer than 15 characters. Each Twitter username has a unique URL, with the username added after


share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.