0% found this document useful (0 votes)
91 views6 pages

IIS Admin Question

Web.config is the main configuration file for web applications in ASP.NET. It is an XML file that resides in the root directory of a website or application and contains settings that control module loading, security, sessions, and language/compilation settings. Web.config files can also contain application-specific items like database connection strings. The file allows configuration changes to be made without requiring web server restarts.

Uploaded by

prasannascrib
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
91 views6 pages

IIS Admin Question

Web.config is the main configuration file for web applications in ASP.NET. It is an XML file that resides in the root directory of a website or application and contains settings that control module loading, security, sessions, and language/compilation settings. Web.config files can also contain application-specific items like database connection strings. The file allows configuration changes to be made without requiring web server restarts.

Uploaded by

prasannascrib
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

Web.config is the main settings and configuration file for web application.

It is an XML document that resides in the root directory of the site or application and contains data about how the web application will act.
This information controls module loading, security configuration, session state configuration, and application language and compilation
settings.

Web.config files can also contain application specific items such as database connection strings.

https://www.quora.com/What-is-web-config-file-What-is-the-use-of-the-config-file-in-web-applications

Uses
- The changes in Web.config don't require the reboot of the web server.
- store database connections, Session States, Error Handling, Security configurations in web.Config file.
- The changes in Web.config don't require the reboot of the web server.
- store database connections, Session States, Error Handling, Security configurations in The Official Microsoft ASP.NET Site web.Config file.

config files simply store the Database Configurations,Session Storage,Login checkings..etc. i.e, opening a database
connection,inserting,selecting,deleting data from the database.

In config files,we open a database connection,and include config file in other pages and use that connection rather than opening a connection
for every page.

Which w3wp.exe PID corresponds to which application pool ?


★★★★★
★★★★
★★★
★★

friis[at]microsoft.comOctober 22, 200919


 0
 0

Version Française

Every since the entry into service of IIS 6 (which comes with Windows 2003) the notion of application pools was introduced. An application pool is a means of
isolation a web-application, so that the errors it may encounter will not influence other web applications executing on the server or the IIS server itself. If the
default settings for an application pool are used a single w3wp.exe process is used to execute the web-applications that are hosted in the pool. In the diagram
below, applications A and B are hosted by pool 1 while applications C and D each have their own dedicated pool, pool 2 and pool 3 respectively.
The problem is that when it comes to w3wp.exe processes for the diagram above, there are three of them and just by looking in the task manager there is no easy
way to tell them apart. Each instance of a w3wp.exe process has a PID (short for process identifier), but the question is which PID belongs to which application pool.

In IIS 6 (Windows 2003):

The easy way to solve this problem was to call a Visual Basic script file that was located in the %windir%\system32\folder. The file was called
iisapp.vbs, and the output of this command listed the instances of w3wp.exe present on the system, their PIDs and to which application pool they belonged to.

In IIS 7 (Windows 2008) and IIS 7.5 (Windows 2008 R2)

The Visual Basic script file has been removed. Most of the IIS 6 script files that were dedicated to a single task (like iisapp.vbs) have been integrated into a
command line utility that can be used to administer the IIS server as a whole. This utility is called appcmd.exe and it is located in
the %windir%\system32\inetsrv\ folder.
CAUTION: to access the tool you must launch the command line prompt with administrator rights, otherwise it will not work. To do this simply right click on a
command line short cut and chose 'Run as Administrator' from the context menu.

Then navigate to the folder where appcmd is located and run the following command: appcmd list wp – this will list all the instances of the w3wp.exe
process (worker process) that are present on your server with their respective PIDs and application pools.

Other nice commands are appcmd list sites and appcmd list appPools to list the web sites that are present on the server and the
appcmd, you may continue reading this article:
application pools on your IIS server. For more information about

Getting Started with AppCmd

by Paul Cociuba - French ASP.net / IIS Support Team

Tags AppCMD FRIIS FRIIS-en IIS 7 IIS 7 APPCMD IIS 7 Application Pool w3wp.exe PID
https://blogs.msdn.microsoft.com/friis/2009/10/22/which-w3wp-exe-pid-corresponds-to-which-
application-pool/

https://social.technet.microsoft.com/wiki/contents/articles/21215.how-to-identify-which-w3wp-exe-
belongs-to-which-application-pool-in-iis7.aspx

https://blogs.msdn.microsoft.com/ericparvin/2014/04/29/find-pid-for-iis-application-pools-worker-
process/
Find PID for IIS Application Pool’s Worker
Process
★★★★★
★★★★
★★★
★★

Eric ParvinApril 29, 20142



 0
 0

Blog Purpose:

This blog post will show the different methods to identify the process ID (PID) for an active worker
process (w3wp.exe) for an application pool

Method 1: - Internet Manager UI

 Open IIS Manager


 In the Connections pane, select the server node in the tree
 In Features View, double-click Worker Processes
 View the list of worker processes in the grid

Method 2: - Appcmd

Appcmd is used to list out the running worker processes. The path to the utility is not set and
running directly from the command prompt will fail. Use the following instructions to set the path for
the utility.
Location of appcmd.exe %systemroot%\system32\inetsrv

64-bit Windows, use Appcmd.exe from the %windir%\system32\inetsrv directory, not the
%windir%\syswow64\inetsrv directory.

Set the path to the location


 Start -> Computer -> Right Click ->Properties
 Advanced System Settings -> Environment Variables
 System Variables -> Path -> Edit
 Add C:\Windows\System32\inetsrv

To start Appcmd.exe

 Click Start, and then click All Programs.


 Click Accessories, and then click Command Prompt.
 At the Command Prompt, > cd %windir%\system32\inetsrv, and then press ENTER if the path
is not set. Otherwise, enter appcmd on the command line

To List the started worker processes

>appcmd list wps

For complete listing of appcmds Listing of IIS 7+ Appcmd

Method 3: - Task Manager

 Start Task Manager


 Select the Processes tab
 Add the following columns from View->Select Columns
o PID
o Command Line

 Sort the Image column and find the w3wp.exe process name
 Expand the Command Line column and the worker process name is on the far right

Method 4: - Process Explorer

 Download Process Explorer from http://technet.microsoft.com/en-


us/sysinternals/bb896653.aspx
 In Process Explorer, add the following columns from View->Select Columns->Process Image
tab
o Image Path
o PID
o Image Type (64 vs. 32 bit)
o Command Line
 Find the svchost.exe in the Process column and the w3wp.exe processes are listed
 Expand the Command Line column and the worker process is listed

https://blogs.msdn.microsoft.com/ericparvin/2014/04/29/find-pid-for-iis-application-pools-worker-
process/

You might also like