Profiling Multiple Products Hosted on a Single IIS Server
Problem
Solution
Example Setup
StockManager
OnlineShop
Configuration
1
Create the sessions JSON file
{
"sessions": [
{
"session": {
"buildSessionId": "C:\\inetpub\\wwwroot\\StockManager\\buildSessionId.txt",
"labId": "StockManager_EnvQA1"
},
"coverageCollector": {
"applicationPool": "StockManagerAppPool"
}
},
{
"session": {
"buildSessionId": "C:\\inetpub\\wwwroot\\OnlineShop\\buildSessionId.txt",
"labId": "OnlineShop_EnvUAT1"
},
"coverageCollector": {
"applicationPool": "OnlineShopAppPool"
}
}
]
}2
Refer to this file in the IIS Env Vars
COR_ENABLE_PROFILING=1
COR_PROFILER={01CA2C22-DC03-4FF5-8350-59E32A3536BA}
COR_PROFILER_PATH=C:\Sealights\Agent\SL.DotNet.ProfilerLib.Windows_x64.dll
COR_PROFILER_PATH_32=C:\Sealights\Agent\SL.DotNet.ProfilerLib.Windows_x86.dll
COR_PROFILER_PATH_64=C:\Sealights\Agent\SL.DotNet.ProfilerLib.Windows_x64.dll
CORECLR_ENABLE_PROFILING=1
CORECLR_PROFILER={01CA2C22-DC03-4FF5-8350-59E32A3536BA}
CORECLR_PROFILER_PATH_32=C:\Sealights\Agent\SL.DotNet.ProfilerLib.Windows_x86.dll
CORECLR_PROFILER_PATH_64=C:\Sealights\Agent\SL.DotNet.ProfilerLib.Windows_x64.dll
SL_PROFILER_INITIALIZECOLLECTOR=1
SL_TOKENFILE=C:\Sealights\sltoken.txt
SL_COVERAGECOLLECTOR_PREDEFINEDSESSIONS=C:\Sealights\collector-sessions.json
SL_LOGLEVEL=Debug
SL_LOGGING_TOFILE=true
SL_LOGDIR=C:\Sealights\LogsLast updated
Was this helpful?

