24 February 2014 blogs Marius Sandbu 3 min read
The default installation of the Live Maps Web Console will use an ‘In Process’ mode to maintain the Session State of the connections to the Live Maps Web Console and the Operations Manager Management Server.
The ‘In Process’ Session State Mode is maintained within the Application Pool that is used by the Live Maps Web Console. As the Application Pool recycles at a predefined interval, all established connections are disconnected and a reconnect to the Live Maps Web Console will be required as well as a new connection between the Live Maps Web Console and the System Center Data Access Service (MOM SDK) on the Operations Manager Management Server.
ASP.NET State Service
The Live Maps Web Console can be reconfigured to use the ‘ASP.NET State Service’ to maintain the connection between the Live Maps Web Console and the OM Management Server as follow:
1. Change the Startup Type of the ‘ASP.NET State Service’ on the IIS Server hosting the Live Maps Web Console from Manual to Automatic:
2. Select the ‘Live Maps 2012 Web Console’ web site in IIS Manager and launch ‘Session State’ from the Features View:
3. Change the Session State Mode to ‘State Server’ (and leave all other settings to the defaults) and Apply this change:
As described in this KB article from Microsoft, session state may be lost if the application path of the website is not the same on each webserver in a web farm scenario. To work around this problem, synchronize the application path for the Web site in the IIS metabase for all Web servers in the Web farm. Make sure that the case is the same since the application path for the Web site is case-sensitive.
An Internet Information Services (IIS) worker process is a windows process (w3wp.exe) which runs Web applications, and is responsible for handling requests sent to a Web Server for a specific application pool. By default you only have 1 worker process per application domain with multiple worker threads to handle requests. In this case the ‘In Process’ Session State should work just fine (the default settings).
When the Live Maps Web Console has successfully been reconfigured to use the ‘ASP.NET State Service’ to maintain an out of process Session State, you can have multiple worker processes (not just worker threads, actual worker processes) to handle requests sent to the Live Maps Web Console.
In IIS Manager, open the ‘Advanced Settings’ for the ‘Live Maps 2012 Web Console’ Application Pool. Scroll down to the ‘Process Model’ settings and change the value for ‘Maximum Worker Processes’ to a value larger than 1:
As a starting point, the ‘Maximum Worker Processes’ value should not exceed the number of processor cores that are available. The degree to which adding more helps is highly dependent on the actual use of the Live Maps Web Console application.