Cannot connect to Local application

Questions about YourKit .NET Profiler
Post Reply
jaydsi
Posts: 4
Joined: Wed Jan 24, 2007 10:08 am

Cannot connect to Local application

Post by jaydsi »

I am using .Net version 2.0.50727. IIS restarts fine when I request profile of ASP .Net application. But, when I go to my landing page, and invoke a few requests, YourKit never connects and when I click Connect to locally running profiled application, it says there are no profiled applications running locally :(

The log files are not very useful, and I only see the 0.log in /.ynp/log

Is there any way to increase the verbosity of the logs?

Any pointers you can give on this are much appreciated.

Thanks,
Jay
Vitaly Pimenov
Posts: 48
Joined: Tue Aug 23, 2005 10:52 am

Post by Vitaly Pimenov »

Hello Jay!
Please provide some details about your environment.
What is your Windows version?
Does your application run ASP.NET 2.0? You say you're going to landing page - is this an .aspx page or just .html?
Do you see aspnet_wp.exe or w3wp.exe process in Task Manager when you are trying to connect to locally running profiled appication?

Also it would help a lot if you could do following steps:
-clear <user-home>\.ynp\log
-clear c:\windows\temp\.ynp
-run your application, try to connect to it
-take a look inside c:\windows\temp\.ynp and <user-home>\.ynp\log- if there is something there, please send all these files to support(at)yourkit.com

Best regards.
Vitaly Pimenov.
Vitaly Pimenov
Posts: 48
Joined: Tue Aug 23, 2005 10:52 am

Post by Vitaly Pimenov »

Also, because ASP.NET 2.0 worker process can be run from these user accounts, please check if there is something in C:\Documents and Settings\NetworkService\.ynp and in C:\Documents and Settings\LocalService\.ynp
jaydsi
Posts: 4
Joined: Wed Jan 24, 2007 10:08 am

Post by jaydsi »

Hi there,

I'm running Windows XP SP 2.

The landing page is an aspx page

I cleared the logs as suggested but on restart I am seeing very little useful information e.g.

Starting application. Build 90# etc..........
number of args: 0

I checked the running processes and I can see the aspnet_wp.exe process.

Thanks,Jay
Vitaly Pimenov
Posts: 48
Joined: Tue Aug 23, 2005 10:52 am

Post by Vitaly Pimenov »

Thanks for reply.
Please make sure that your firewall doesn't block profiler UI when it is trying to connect.
Also you can close UI after IIS is restarted, then that launch your aspx page and then check all \.ynp directories and check registry for following keys:
HKLM\SOFTWARE\Microsoft\.NETFramework\COR_ENABLE_PROFILING
HKLM\SOFTWARE\Microsoft\.NETFramework\COR_PROFILER

BTW, can you profile our demo application?

Vitaly.
Vladimir Kondratyev
Posts: 1624
Joined: Tue Aug 10, 2004 7:52 pm

Post by Vladimir Kondratyev »

Follow-up to previous post: the profiler uses [10,000 - 10,010] range of ports.
jaydsi
Posts: 4
Joined: Wed Jan 24, 2007 10:08 am

Post by jaydsi »

Checked the registry and the following were NOT listed

HKLM\SOFTWARE\Microsoft\.NETFramework\COR_ENABLE_PROFILING
HKLM\SOFTWARE\Microsoft\.NETFramework\COR_PROFILER

I was able to profile the demo application.
Vladimir Kondratyev
Posts: 1624
Joined: Tue Aug 10, 2004 7:52 pm

Post by Vladimir Kondratyev »

We've reproduced the problem and the fix will be available today.
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Post by Anton Katilin »

Please try the new version at http://www.yourkit.com/dotnet/download
jharter
Posts: 3
Joined: Fri Jan 26, 2007 8:31 pm

Post by jharter »

I just downloaded the version, and I'm seeing similar results. I cannot even profile the demo application. The log file has the following:

2007-01-26 14:21:29.390 INFO com.yourkit.Main0 : ---------------------------------------------------------------------
2007-01-26 14:21:29.405 INFO com.yourkit.Main0 : Starting YourKit Profiler 2.0 for .NET build #200; built on Fri Jan 26 20:53:00 CST 2007
2007-01-26 14:21:29.405 INFO com.yourkit.Main0 : number of args: 0
2007-01-26 14:21:48.980 INFO com.yourkit.util.n :
java.lang.Exception: There's no application running at localhost with profiler agent configured to listen on port 3051
at com.yourkit.api.ControllerImpl.a(a:6)
at com.yourkit.api.ControllerImpl.a(a:220)
at com.yourkit.api.ControllerImpl.<init>(a:289)
at com.yourkit.actions.ProfileNETApplicationAction$1.a(a:46)
at com.yourkit.ui.af$b.run(a:20)
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at com.yourkit.api.ControllerImpl.a(a:298)
... 3 more

Any ideas?

Jim
georgepayton
Posts: 3
Joined: Sat Jan 27, 2007 5:16 pm

Post by georgepayton »

I am also seeing a similar problem.

I launch the demo application to profile, and it cannot connect. Looking at Net Stat, there is no process listening on the suggested port, and (of course) I cannot telnet it.

The same holds true for any other profiled application, whether launched from the CLI, from Visual studio, wherever. This is on Win XP. No firewall rules are interfering.

The profiler we purchased is currently not able to profile anything whatsoever.

Help? :roll:
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Post by Anton Katilin »

Hello

We have managed to reproduce the problem. There's an issue with library dependences, that may arise on some configurations.

Sorry for inconvenience. We'll publish fix today.

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

Post by Anton Katilin »

Could you please download and install the latest build at http://www.yourkit.com/dotnet/download

The problem should be fixed.
Vladimir Kondratyev
Posts: 1624
Joined: Tue Aug 10, 2004 7:52 pm

Post by Vladimir Kondratyev »

Please confirm that the problem gone.

Best regards,
Vladimir Kondratyev
YourKit, LLC
http://www.yourkit.com
"Don't get lost in data, get information!"
jaydsi
Posts: 4
Joined: Wed Jan 24, 2007 10:08 am

Post by jaydsi »

I installed the new version and checked that the registry keys now existed and they did. When I try to connect, it still says no profile application can found.

Looking at the logs, the following message is being printed out:

java.lang.Exception: There's no application running at localhost with profiler agent configured to listen on port 1155
Post Reply