Skip to content
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

jdk-21.0.5 Cannot add a remote connection in jstatd mode #618

Open
XiFYuW opened this issue Dec 14, 2024 · 1 comment
Open

jdk-21.0.5 Cannot add a remote connection in jstatd mode #618

XiFYuW opened this issue Dec 14, 2024 · 1 comment
Labels

Comments

@XiFYuW
Copy link

XiFYuW commented Dec 14, 2024

VisualVM: 2.1.10
JDK: 21.0.5
Server startup script:

jstatd -J-Djava.security.policy=/jdk21/jdk-21.0.5/conf/jstatd.all.policy \
-J-Djava.rmi.server.hostname=126.209.23.25 \
-J-Djava.rmi.server.logCalls=true \
-J-Djava.net.preferIPv4Stack=true \
-p 8893

Security parameter configuration:

grant codebase "jrt:/jdk.jstatd" {
   permission java.security.AllPermission;
};

grant codebase "jrt:/jdk.internal.jvmstat" {
   permission java.security.AllPermission;
};

Run the netstat -tlpna | grep jstatd command as follows:
微信图片_20241214104509

The server port has been released.

When you return to the client link, see the following figure:
微信图片_20241214104513

jmx links are all right.

@XiFYuW XiFYuW added the bug label Dec 14, 2024
@thurka
Copy link
Member

thurka commented Dec 16, 2024

Is there any firewall between your local machine and remote one? How does the RMI log from jstatd looks like?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants