Fully featured low overhead profiler for Java EE and Java SE platforms.
Ultimate profiling and monitoring solution for Gradle, Maven, Ant, JUnit and TestNG.
Easy to use performance and memory profiler for .NET framework.

Cannot connect to Local application

Moderators: Vladimir Kondratyev, Anton Katilin

Cannot connect to Local application

Postby jaydsi » Wed Jan 24, 2007 10:12 am

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
jaydsi
 
Posts: 4
Joined: Wed Jan 24, 2007 10:08 am

Postby Vitaly Pimenov » Thu Jan 25, 2007 2:38 pm

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

Postby Vitaly Pimenov » Thu Jan 25, 2007 2:43 pm

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
Vitaly Pimenov
 
Posts: 48
Joined: Tue Aug 23, 2005 10:52 am

Postby jaydsi » Thu Jan 25, 2007 5:31 pm

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
jaydsi
 
Posts: 4
Joined: Wed Jan 24, 2007 10:08 am

Postby Vitaly Pimenov » Thu Jan 25, 2007 5:46 pm

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.
Vitaly Pimenov
 
Posts: 48
Joined: Tue Aug 23, 2005 10:52 am

Postby Vladimir Kondratyev » Thu Jan 25, 2007 5:59 pm

Follow-up to previous post: the profiler uses [10,000 - 10,010] range of ports.
Vladimir Kondratyev
 
Posts: 1444
Joined: Tue Aug 10, 2004 7:52 pm
Location: Düsseldorf, Germany

Postby jaydsi » Fri Jan 26, 2007 2:14 pm

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.
jaydsi
 
Posts: 4
Joined: Wed Jan 24, 2007 10:08 am

Postby Vladimir Kondratyev » Fri Jan 26, 2007 5:46 pm

We've reproduced the problem and the fix will be available today.
Vladimir Kondratyev
 
Posts: 1444
Joined: Tue Aug 10, 2004 7:52 pm
Location: Düsseldorf, Germany

Postby Anton Katilin » Fri Jan 26, 2007 6:44 pm

Please try the new version at http://www.yourkit.com/dotnet/download
Anton Katilin
 
Posts: 5574
Joined: Wed Aug 11, 2004 8:37 am

Postby jharter » Fri Jan 26, 2007 8:42 pm

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
jharter
 
Posts: 3
Joined: Fri Jan 26, 2007 8:31 pm

Postby georgepayton » Sat Jan 27, 2007 6:39 pm

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:
georgepayton
 
Posts: 3
Joined: Sat Jan 27, 2007 5:16 pm
Location: California, USA

Postby Anton Katilin » Mon Jan 29, 2007 11:25 am

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: 5574
Joined: Wed Aug 11, 2004 8:37 am

Postby Anton Katilin » Mon Jan 29, 2007 12:17 pm

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

The problem should be fixed.
Anton Katilin
 
Posts: 5574
Joined: Wed Aug 11, 2004 8:37 am

Postby Vladimir Kondratyev » Mon Jan 29, 2007 2:36 pm

Please confirm that the problem gone.

Best regards,
Vladimir Kondratyev
YourKit, LLC
http://www.yourkit.com
"Don't get lost in data, get information!"
Vladimir Kondratyev
 
Posts: 1444
Joined: Tue Aug 10, 2004 7:52 pm
Location: Düsseldorf, Germany

Postby jaydsi » Mon Jan 29, 2007 3:37 pm

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
jaydsi
 
Posts: 4
Joined: Wed Jan 24, 2007 10:08 am

Next

Return to .NET Profiler

Who is online

Users browsing this forum: No registered users and 2 guests