There's no application running at localhost with profiler ag

Questions about YourKit Java Profiler
Post Reply
parthibanrey2
Posts: 1
Joined: Thu May 21, 2020 8:45 am

There's no application running at localhost with profiler ag

Post by parthibanrey2 »

I"m getting the below exception when connecting though java apis, but able to profile the same application through profiler UI from different machine.

com.yourkit.util.PresentableException: There's no application running at localhost with profiler agent configured to listen on port 10005
at com.yourkit.api.ControllerImpl.transformException(ControllerImpl.java:360)
at com.yourkit.api.ControllerImpl.makeRequest(ControllerImpl.java:332)
at com.yourkit.api.ControllerImpl.makeRequest(ControllerImpl.java:287)
at com.yourkit.api.ControllerImpl.runBatch(ControllerImpl.java:1193)
at com.yourkit.api.ControllerImpl.<init>(ControllerImpl.java:168)
at com.yourkit.api.Controller.<init>(Controller.java:108)

But when i run the below command in same server, i'm able to see the port running.
ps aux | grep -i 10001
root 12312 0.0 0.1 32080 18888 pts/5 Sl 02:35 0:00 cf ssh -N -T -L 10005:localhost:10001

PFB the agent logs for the remote application.
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: There's no application running at localhost with profile

Post by Anton Katilin »

Please note that you map port 10005 to 10001:
-L 10005:localhost:10001
In this case you should connect to localhost:10001.
Anyway, please check the ports are correct everywhere.
Post Reply