Some times suddenly your system will run slow. Usually when the system runs slow, we will open the Task Manager window and figure out the task which is taking more CPU & Memory usage and kill that particular task (if the running task is NOT so important) through Task Manager window. When system is too slow, some times Task Manager window also will not respond quickly.
Other alternative to kill the process which is consuming more CPU & Memory is through command prompt window. Windows Operating system provides some commands to kill a process from command prompt window.
Following steps will explain, how to figure out and kill a process which is taking more Memory usage.
Step (1). Open command prompt window.
Step (2). Before run a command to kill a process, we need to figure it out what process is taking more Memory & CPU usage. It is easy to figure out this through Task Manager; but when the system is too slow, Task Manager also will not respond quickly. So we need to figure this through command in command prompt window only. Run the following command to display the currently running tasks.
Step (3). Figure out the process which is taking more memory by looking at “Mem Usage” column in the task list. Once you find out the process, note down its PID. This will be helpful while killing the process.
Step (4). Run the following command to kill the process.
taskkill /PID <here provide the PID of the process you captured from previous step>
Step (5). If you want to forcibly kill the process use the following command.
taskkill /F /PID <here provide the PID of the process you captured from previous step>
Once the process removed from memory, you system will speed-up and it will quickly respond to your command.
If you want to know more about these commands; type the following commands at command prompt.
You have to be careful while killing the processes using taskkill command. Otherwise you will loose any unsaved data.
by Code Steps