YK stuck on Profile IIS Application popup screen

Questions about YourKit .NET Profiler
Post Reply
pretzel
Posts: 5
Joined: Thu Mar 27, 2014 5:27 am

YK stuck on Profile IIS Application popup screen

Post by pretzel »

Hi there,

Problem: I am unable to profile IIS application using the link "IIS application" on the welcome screen. YK is able to restart IIS and then keeps sitting on the screen with loading bar. I can see the new w3wp process start on the main window but the modal popup keeps sitting there.

Platform: I am using a trial version YK 2013 for .NET build 13574 on Win 2008 R2 Enterprise in a VM. I am logged in as Administrator account.

I remember "IIS application" was working for me the day I installed it; it also works for a colleague with the exact same setup. I am guessing there's some changes to my machine since then.

What have I tried?
* Confirmed no windows updates installed since.
* Re-installing, restarting
* Went through my installed programs after YK to find if there were some other software causing issues. Here's the list: fiddler, Log parser Lizard, Agent Ransack, SlickRun, Libre Office, DotPeek, AutoHotKey.
* Turned off firewall
* No anti viruses running on the machine

Logs
Here are all the logs in the Home_dir\.ynp\log
Monitoring server logs
##########################
13574 - 0.001: Command line:
C:\Program Files (x86)\YourKit Profiler 2013 for .NET - Build 13574\bin\MonitoringServer.exe
state
13574 - 0.001: Executable: C:\Program Files (x86)\YourKit Profiler 2013 for .NET - Build 13574\bin\MonitoringServer.exe
13574 - 0.001: Windows Server 2008 R2; version 6.1; 64-bit process
13574 - 0.001: Today is 20140327
13574 - 0.001: Reading startup options
13574 - 0.001: Environment variable YNP_STARTUP_OPTIONS: not defined
13574 - 0.001: Registry key HKLM\SOFTWARE\YNP\STARTUP_OPTIONS: tracing,disablealloc
13574 - 0.001: CLR_Agent_OnLoad: options=tracing,disablealloc
13574 - 0.002: Skipping C:\Program Files (x86)\YourKit Profiler 2013 for .NET - Build 13574\bin\MonitoringServer.exe

javaw.exe logs
#################
13574 - 0.946: Command line:
C:\Program Files (x86)\YourKit Profiler 2013 for .NET - Build 13574\jre64\bin\javaw.exe
-XX:+HeapDumpOnOutOfMemoryError
-Xmx2048m
-XX:PermSize=256m
-XX:MaxPermSize=256m
-jar
..\lib\yjp.jar
13574 - 0.946: Executable: C:\Program Files (x86)\YourKit Profiler 2013 for .NET - Build 13574\jre64\bin\javaw.exe
13574 - 0.946: Windows Server 2008 R2; version 6.1; 64-bit process
13574 - 0.946: Today is 20140327
13574 - 0.946: shmem: Global\YOURKIT SHARE5 G: OK, isFirst=1
13574 - 0.947: shmem: Local\YOURKIT SHARE5 L: OK, isFirst=1
13574 - 1.813: uidCount: 231
13574 - 1.814: UID OK

0.log
###########
2014-03-27 16:21:27.942 0 +0 INFO com.yourkit.Main1 :
---------------------------------------------------------------------
Product: YourKit Profiler 2013 for .NET - Build 13574
Build: 13574 on Thu Mar 13 16:32:00 EST 2014
JDK: 1.7.0_51
VM: Java HotSpot(TM) 64-Bit Server VM
Vendor: Oracle Corporation
OS: Windows Server 2008 R2
OS version: 6.1
OS arch: amd64


2014-03-27 16:21:27.942 0 +0 INFO com.yourkit.Main1 : number of args: 0
2014-03-27 16:21:28.036 0 +0 INFO com.yourkit.Main1 : oomeDumperStatus: 1
2014-03-27 16:21:28.114 0 +0 INFO com.yourkit.g.f.a.a : native LAF font: javax.swing.plaf.FontUIResource[family=Tahoma,name=Tahoma,style=plain,size=11]
2014-03-27 16:21:28.114 0 +0 INFO com.yourkit.g.f.a.a : general font: javax.swing.plaf.FontUIResource[family=Tahoma,name=Tahoma,style=plain,size=11]
2014-03-27 16:21:28.114 0 +0 INFO com.yourkit.g.f.a.a : menu font: javax.swing.plaf.FontUIResource[family=Tahoma,name=Tahoma,style=plain,size=11]
2014-03-27 16:21:34.879 6 +6 INFO com.yourkit.g.i.c.c : ParallelExecutor: pool size 2
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: YK stuck on Profile IIS Application popup screen

Post by Anton Katilin »

Hi,

This is a new issue.
YK is able to restart IIS and then keeps sitting on the screen with loading bar. I can see the new w3wp process start on the main window but the modal popup keeps sitting there.
Could you please provide a screenshot.
* Re-installing, restarting
If you kill the profiler UI process and start it again, what happens? Does it show w3wp on the welcome screen?

What is its status?

What happens when you click w3wp? Does it show a progress window that never hides?

Best regards,
Anton
pretzel
Posts: 5
Joined: Thu Mar 27, 2014 5:27 am

Re: YK stuck on Profile IIS Application popup screen

Post by pretzel »

Hi Anton,
Could you please provide a screenshot.
Here's the screenshot showing the popup to profile IIS before I hit a website. I know it restarted IIS because it killed all the w3wp processes and when I hit a localhost URL a new process starts.

Image

This image is after I hit a localhost ULR and w3wp process in the background with the status "Ready to attach".

Image
If you kill the profiler UI process and start it again, what happens? Does it show w3wp on the welcome screen? What is its status?
I only found one process related to the profiler, javaw.exe. I killed that process and re-started YK. It showed w3wp on the welcome screen with the status "Ready for attach".
What happens when you click w3wp? Does it show a progress window that never hides?
When I click w3wp on the welcome screen, YK starts profiling the process as usual but I cannot do CPU tracing or start object allocation recording since now it is in an attach mode.

Regards
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: YK stuck on Profile IIS Application popup screen

Post by Anton Katilin »

Hi,

IIS does not automatically create a CLR instance after the service (re)starts. Instead, CLR is created lazily on first access to a dynamic (ASP.NET, not a static HTML) page. The profiler waits for a CLR instance to be created.

Best regards,
Anton
pretzel
Posts: 5
Joined: Thu Mar 27, 2014 5:27 am

Re: YK stuck on Profile IIS Application popup screen

Post by pretzel »

Hi Anton,

I understand that, which is why I posted,

* First an image without a w3wp process (this was to confirm that YK is running under an administrator account and is able to "iisreset" when I click on "Profile IIS Application")
* And, second an image showing a w3wp process in the main window (behind the popup "Profile IIS Application") which was created after I hit a valid URL in my browser. This was to confirm that I am hitting a URL on the server which starts a w3wp process which is visible to YK.

I appreciate your help with this!

Regards
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: YK stuck on Profile IIS Application popup screen

Post by Anton Katilin »

Oh, I see.

The status "Ready for attach" means that the agent has not loaded on start for some reason.

If you connect to the process in this state, the attach mode is used, which has its limitations:
http://www.yourkit.com/docs/dotnet/help ... _agent.jsp

Could you please run "Help | Collect information for support..." and send the collected logs and technical detail to [email protected]

As a workaround, please try enabling profiling with the command line tool, then restart the machine:
http://www.yourkit.com/docs/dotnet/help ... e_tool.jsp
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: YK stuck on Profile IIS Application popup screen

Post by Anton Katilin »

P.S.

More detail about the tools:

To enable profiling, you'll need to run "YourKitTools.exe enable" in a console window running as administrator.

What is the output?

What is the output of "YourKitTools.exe status"?
pretzel
Posts: 5
Joined: Thu Mar 27, 2014 5:27 am

Re: YK stuck on Profile IIS Application popup screen

Post by pretzel »

Hi Anton,

I have sent the output of "Help | Collect information for support..." run to [email protected].

I tried the following different ways to run YK from command line (as administrator) with the same output of " YourKitTools.exe status":

Output of " YourKitTools.exe status" was always:

w3wp.exe | 8844 64-bit | <account_name_here> | Ready for attach |

Way 1.
  1. Restart
  2. YourKitTools.exe enable
  3. Restart
  4. Hit a URL on IIS which starts a w3wp process
  5. YourKitTools.exe status -- same output for w3wp process
  6. IISRESET
  7. Hit a URL on IIS which starts a w3wp process
  8. YourKitTools.exe status -- same output for w3wp process
Way 2.
  1. YourKitTools.exe uninstall
  2. YourKitTools.exe install
  3. YourKitTools.exe enable
  4. Restart
  5. Hit a URL on IIS which starts a w3wp process
  6. YourKitTools.exe status -- same output for w3wp process
  7. IISRESET
  8. Hit a URL on IIS which starts a w3wp process
  9. YourKitTools.exe status -- same output for w3wp process
Regards
pretzel
Posts: 5
Joined: Thu Mar 27, 2014 5:27 am

Re: YK stuck on Profile IIS Application popup screen

Post by pretzel »

P.S.

The output of "YourKitTools.exe status" was:

YourKit Profiler for .NET - Command line tool.
[YourKit Profiler 2013 for .NET - Build 13574] Log file: C:\Users\Administrator\.ynp\log\MonitoringServer.exe-4960.log
Profiling has been enabled.
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: YK stuck on Profile IIS Application popup screen

Post by Anton Katilin »

Thank you. We've answered your email sent from gmail.com.
Post Reply