1

JMX では、という名前のファイルでユーザーのアクセス権を設定できますjmxremote.access(テンプレートは にあります<JAVA INSTALL>/jre/lib/management)。そこでは、ユーザーが..

   "readonly" grants access to read attributes of MBeans.
               For monitoring, this means that a remote client in this
               role can read measurements but cannot perform any action
               that changes the environment of the running program.

また..

   "readwrite" grants access to read and write attributes of MBeans,
               to invoke operations on them, and optionally
               to create or remove them. This access should be granted
               only to trusted clients, since they can potentially
               interfere with the smooth operation of a running program.

.. パーミッション。

ここで、JMC を介してフライト レコーダーのデータにアクセスするために使用する JXM ユーザーに対して、このアクセス制御機能を有効にしたいと思います。このユーザーには、デフォルトのセキュリティ標準に従って、必要最小限の権限を与えるという考えがあります。

--> ユーザーに許可を与えるだけで十分ですreadonlyか、それとも Java Flight Recorder もどこかに何かを書き込む必要がありますか?

4

1 に答える 1

3

JFR には特定の読み書き権限が必要です。

your-role-name-goes-here readwrite \
  create com.sun.management.*,com.oracle.jrockit.* \
  unregister

回答: https://community.oracle.com/thread/2588377

于 2015-01-28T11:26:24.873 に答える