-
Notifications
You must be signed in to change notification settings - Fork 296
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Challenge connecting to jstatd running in k8s #542
Labels
Comments
The problem with |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With a bit of effort I'm able to connect visualVM to a java process running on kubernets, by forwarding the jmx port and using a configuration like below for starting my java process
Then I port forward 9010 to my localhost via kubectl and add
localhost:9010
as a JMX host in VVM and Magic , it works!Underneath
Local
, my k8s PID appears with visual statistics!However, I really wanted to use VVM to observe GC stats on the device. So I added the VGC plugin. But I get the
Not supported for this JVM
whenSo I started
jstatd
on the server likeAnd then I tried forwarding that port similar to above. And then I try to right click Local and addJStatD from the menu. But suprise, it doesn't work.
So I went down a rabbit hole trying to figure out why it didn't work. And I read elsewhere it did not work because jstatd really opens up 3 ports when it starts. And supposedly there were hacks to resolve this.
So I took the latest hack and built a release for it (long story). https://github.com/apple-corps/alt-jstatsd-build-image . Now I could try to run this hack'd jstatd binary and set and forward all the ports hoping that VVM would connect. And did it work, it did not :(
For completeness sake, here's how I ran the hack
And then through the logging I did see the following below in the jstatd log created by logCalls.
Regardless I guess I'm explaining my ignorance on why it doesn't work.
Describe the solution you'd like
If I'm able to connect to VVM via JMX as above, I'd similarly like to get the VGC stats.
The text was updated successfully, but these errors were encountered: