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.