7 Replies Last post: May 15, 2012 2:30 PM by Asia Rudenko  
Ivan Shakhov JetBrains 95 posts since
Mar 31, 2010
Currently Being Moderated

Nov 8, 2010 2:31 PM

FAQ. dotTrace 4.0 + IIS. dotTrace doesn't start profiling IIS

Several users reported a problem that IIS 7.5 is not detected by dotTrace 4.0 and thus dotTrace starts and all buttons in the profiler controller stays disabled.

iis_dis.png

 

What should happen? After the user presses Run in Profiler configuration dotTrace stops w3wp.exe process and starts it again under profiler.


What are the known possible problems:

1. The user account which runs the application pool in iis must have a read-only permissions to dotTrace bin catalog.

If you use ApplicationPoolIdentity as the user account, then your account to add permissions will be IIS APPPOOL\YourAppPoolName.

Add the  rules to dotTrace\v4.0\Bin folder and all items and subfolders  inside:

  1. Open folder C:\Program Files  (x86)\JetBrains\dotTrace\v4.0
  2. Right click on Bin folder inside  -> Properties ->Security->Advanced->Change  Permissions->Add
  3. In the Select user or group dialog  manually enter IIS APPPOOL\YourAppPoolName
  4. Press CheckNames and  Ok.
  5. Add Read permission, read attributes  and read extended attributes to this folder, subfolders and  files.

2. Other profilers (YourKit) may affect IIS/Windows service/Net process  profiling scenarios by maintaining the registry key  values"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\COR_ENABLE_PROFILING"

2.1. Remove YourKit

2.2. Run regedit. Search for registry keys COR_* and remove them manually.

In 4.0.1 we have introduced several fixes regarding other profilers. Try upgrading to the most recent build.

3. Try to temporary disable firewall and antivirus, it may somehow help.

 

If nothing helps:

Try to (temporary) run the application pool from some Local Admin account.

 

What else could be done to diagnose:

1. Enable the Core  logs, reproduce the problem and send us the logs.

Steps to enable  logs:

  1. Delete everything from %temp%  folder
  2. Open Profiler configuration windows  (Profile->IIS)
  3. Press Ctrl+Shift+Alt+F11 -> You  will get “Expert options button”. Press it.
  4. Check the checkbox “Enable Logs”  (only this checkbox). Press OK.
  5. Start profiling.
  6. After profilation check the contents of the %temp%\JetLogs. If there are some files containing 'Core' in their names, then it means that profilation started and core was loaded but died of exception. If there were no 'Core' files, then it mean the profilation didn't start.
  7. If there are no log with 'Core' in the file name, then check if there were some lgc*.* files in the %temp% folder.

 

Don't forget:

To contact support at jetbrains.com

Ryan Emerle Newbie 1 posts since
Jan 3, 2011
Currently Being Moderated
Jan 3, 2011 9:35 PM in response to: Ivan Shakhov
Re: FAQ. dotTrace 4.0 + IIS. dotTrace doesn't start profiling IIS

I have found that the profiler will not attach to the IIS process if the App Pool is running with a user identity and "Load User Profile" is set to True.

 

Setting this value to False may fix the issue for some users.

2011-01-03_133136.png

Anders Höglund Newbie 1 posts since
Jan 12, 2012
Currently Being Moderated
Jan 12, 2012 7:31 PM in response to: Ivan Shakhov
Re: FAQ. dotTrace 4.0 + IIS. dotTrace doesn't start profiling IIS

Hi and thank you.

The original post fixed my problem when running locally, but I still get the same error as the screenshot when trying to run the profiler remote.

I can telnet the agent and the local profiler configuration can connect to the remote server agent (using default port 9000 and a passphrase). The remote agent reports "Authenticated as passphrase match" once setting up the profiler and then again once when running the profiler (without "start immediately"). After that I get the same dialog as shown in the screendump in the original message. The list of w3wp.exe processes is empty. The agent writes nothing anymore in the console.

 

Do I have to set any folder permissions on the remote server? I tried adding IIS_IUSRS to the agent exe folder, but that didn't help.

 

BR

Anders.

Mikhail Pilin JetBrains 534 posts since
May 23, 2005
Currently Being Moderated
Jan 19, 2012 8:42 PM in response to: Anders Höglund
Re: FAQ. dotTrace 4.0 + IIS. dotTrace doesn't start profiling IIS

Hi Anders,

 

dotTrace Performance v4.x uses .NET remoting technology for profiling remote application. In fact this technology is bad for our purposes. It requires bidirectional connection for computers through TCP. It means both computers have to be in the same network and have their firewalls disabled. Please check that your configuration is compatible with the requirements.

 

---

Mikhail Pilin
Senior Software Engineer
JetBrains GmbH
http://JetBrains.com
"Develop with pleasure!"

Kate Butenko Newbie 1 posts since
May 8, 2012
Currently Being Moderated
May 8, 2012 11:23 AM in response to: Ivan Shakhov
Re: FAQ. dotTrace 4.0 + IIS. dotTrace doesn't start profiling IIS

Spent the whole yesterday with the same problem.

 

What helped me is to restore my system using a restore point set to several days ago, and reinstall JetBrains dotTrace completely.

 

Sounds crazy, but nothing helped, including all advices above. I have also tried to clean up registry entries, Windows Services, temporary folders, uninstall dotTrace and install it again. Profiler haven't started until system restore + reinstalling.

 

Possible problem 1: after I first installed JetBrains dotTrace, I have also installed RedGate Ants profiler. But uninstalling it with registry cleanup also wasn't helpful, and I should say that some colleagues of mine use both profilers at a time successfully.

 

Possible problem 2: in my Application Event Log I started to receive errors from .Net Runtime with text "Failed to CoCreate profiler." I blamed this exception for profiler not working before. However, now my profiler works fine despite these messages.

 

Possible problem 3: When profiler didn't start, in JetLogs, ExternalLauncherProcess log the last message of each profiling session was:

 

9:21:06 AM.448: Thread:1: Starting process 'C:\Program Files (x86)\Internet Explorer\iexplore.exe' http://sesmarchexample

9:21:07 AM.485: Thread:9: process [7972] 'iexplore' has exited with code 0

 

Note "has exited" message. I also blamed this error as main cause of non-working profiler.

And again, now with my profiler working, I also receive this message, but it doesn't prevent dotTrace from creating nice snapshots.

Asia Rudenko JetBrains 120 posts since
Nov 11, 2010
Currently Being Moderated
May 15, 2012 2:30 PM in response to: Kate Butenko
Re: FAQ. dotTrace 4.0 + IIS. dotTrace doesn't start profiling IIS

Hi Kate, sorry for late response and thank you for detailed feedback. I'll pass it to developers, and we'll try to figure out what's wrong and why this message appears.

More Like This

  • Retrieving data ...