1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

JMX(RMI/JRMP)がリスニングするIPアドレスを制限する

Last updated at Posted at 2024-03-01

以下のように指定するとRMIレジストリがリスニングするアドレスを 127.0.0.1 のみに制限することが可能。
com.sun.management.jmxremote.host=127.0.0.1

デフォルトは 0.0.0.0 でリスニングするので、外部からも接続できる。
このオプションはJava9から指定可能。

RMIレジストリがJMXクライアント返却するスタブの接続先ホストを変更する場合は以下にように設定する。
java.rmi.server.hostname=localhost

ssh portfowardでjconsole接続するときなどに使う。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?