java profiler remote cloud microservice on kubernetes

Questions about YourKit Java Profiler
Post Reply
mehmet
Posts: 1
Joined: Wed Sep 11, 2019 3:53 am

java profiler remote cloud microservice on kubernetes

Post by mehmet »

Hi,
I would like to profile a micro service running on azure kubernetes service. I am getting connection errors and can not profile. any suggestions/solutions ?

The error I get on forwarded port

$ kubectl port-forward xxx-service 10001:10001
Forwarding from 127.0.0.1:10001 -> 10001
Forwarding from [::1]:10001 -> 10001
Handling connection for 10001
0911 06:45:44.064384 46689 portforward.go:340] error creating error stream for port 10001 -> 10001: Timeout occured
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: java profiler remote cloud microservice on kubernetes

Post by Anton Katilin »

How do you enable profiling, by adding -agentpath or attaching the agent to running instance?
Please ensure the agent startup option listen=all is specified: https://www.yourkit.com/docs/java/help/ ... ptions.jsp
Post Reply