No able to connect to locally running profiling application

Questions about YourKit Java Profiler
Post Reply
jms_knaack
Posts: 3
Joined: Thu Jun 30, 2005 3:36 pm

No able to connect to locally running profiling application

Post by jms_knaack »

Hello,
When trying to connect to a locally running application from the profiler, I get following message:

'There is no application running at localhost with profiler agent configured to listen on port 3696'

I started the application in these two different ways:

java -cp . -Xrunyjpagent MyApplication
java -cp . -Xrunyjpagent:port=3696 MyApplication

I would appreciate very much you help,
Thanks is advance
Vladimir Kondratyev
Posts: 1624
Joined: Tue Aug 10, 2004 7:52 pm

Post by Vladimir Kondratyev »

Most probable you are running UI and your java application under different users. Please try to connect to local application as to remote "localhost:port_number".

Lookup will be improved in the next AP build (http://www/yourkit.com/eap/).

Regards,
Vladimir
jms_knaack
Posts: 3
Joined: Thu Jun 30, 2005 3:36 pm

No able to connect to locally running profiling application

Post by jms_knaack »

Hello Vladimir,

Thanks for you help, but could you be more specific?. I never managed to connect to a remote application (this is my next challenge) and I do not find any documentation on how to do it.

If I try something like this

java -cp . -Xrunyjpagent:localhost:port=3696 MyApplication
or
java -cp . -Xrunyjpagent:port=localhost:3696 MyApplication
or
java -cp . -Xrunyjpagent:localhost:3696 MyApplication

it is certainly wrong.

Thanks in advance for your help
Jose
Vladimir Kondratyev
Posts: 1624
Joined: Tue Aug 10, 2004 7:52 pm

Post by Vladimir Kondratyev »

Use the following line to start your application (do not use "localhost" word in port specification):
java -cp . -Xrunyjpagent:port=3696 MyApplication

After your app is started, launch profiler UI and connect to it as to remote application at localhost:3696
Post Reply