Go Back   Cloud Computing > Support > Windows Dedicated Server
 

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 10-25-08, 21:17
BOD Member
 
Join Date: Oct 2008
Posts: 21
Default List running processes on command prompt

List processes load on command prompt same as Task Manager in GUI, it’s easy to handle and kill the process causing problem. UNIX users find its easy to handle processes at command prompt than GUI. Following illustration will help you to understand the use of couple of commands to control server processes. They are TASKLIST and TASKKILL.

With the use of tasklist, you can get the list of all the processes running on the Server.
Quote:
C::\>tasklist
Image Name------PID---Session Name---Session#---Mem Usage
==============================================
System Idle Process--0---Console--0---16 K
System----------4---Console------0---212 K
w3wp.exe------567---Console-----0---34472 K
By using Taskkill, you can terminate particular process by using its PID as follows,
Quote:
C:\>taskkill /pid 567
SUCCESS: The process with PID 567 has been terminated.
If you find PID option difficult to handle at command prompt, instead you can use its image name in the command as follows,
Quote:
C:\>taskkill /IM w3wp.exe /F
SUCCESS: The process "w3wp.exe" with PID 567 has been terminated.
ASP.NET and IIS6.0 will routinely start on a fresh worker process the next time a demand is received by the application. So whenever taskkill command is used for particular worker process, will shutdown all running ASP.NET Worker processes. When the site is accessed once more, a new one will be automatically launched for it with a new PID.

Note: TaskList and TaskKill support a "/S" switch that permits to indicate a remote server to run the commands against. (If you have remote admin rights)
__________________
-------------
Regards,


Spencer T.
"You never loose knowledge by sharing."
Reply With Quote
  #2 (permalink)  
Old 11-01-08, 14:01
Moderator
 
Join Date: Oct 2005
Posts: 346
Default

Also, let me add to this. Tasklist is the same as "ps" command on linux to view the programs and process on the windows servers. Through this, we can see memory and CPU time processes and also which DLL files. It can provide more assistance towards troubleshooting a problem. ;)
Reply With Quote
  #3 (permalink)  
Old 12-19-08, 07:17
BodShane's Avatar
Chief Operating Officer
 
Join Date: Dec 2006
Posts: 1,088
Send a message via AIM to BodShane Send a message via MSN to BodShane
Default

Windows Servers have services that run on them, they are basically programs that operate in background and logs with every user of the windows machine. Those servers are in DLLs than in stand-alone. svchost loads DLL on the machine.

svchost.exe has a common problem that is used by malware that can hide their presence. In the following, svchost.exe has no much information in Windows Task Manger and it's very difficult to recognize DLL

In command prompt, type the following command :

"tasklist /svc /fi "IMAGENAME eq svchost.exe"




To check the service name, go to windows service browser. In order to do that, you need to do the following :

- My Computer > Manage > Computer Management > Services and Application > Services



Now, you need to check between window service and human readable name. In the following, it is DNS Client, you ma y open the properties for DNS client.



Here, you will notice the service name matches DNScache. You need to look at executables that run in svchost.exe. You download tasklist.exe

You can also use Process Explorer by Syninternals. You can also check the service name from there.

__________________
Redundant Dedicated Server Hosting Solutions Only at BODHost
24x7 Toll-Free ph. : +1. 866-662-0909
Email : sales@bodhost.com | MSN : sales@bodhost.com
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump


All times are GMT -6. The time now is 22:57.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright © 1999-2012, BODHost Ltd. All rights reserved.