簡體   English   中英

Java Flight Recorder:它是否需要JMX讀寫訪問權限或只讀取足夠的內容?

[英]Java Flight Recorder: Does it need JMX readwrite access or is readonly enough?

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.

..權限。

現在,我想為JXM用戶激活此訪問控制功能,我通過JMC使用該功能訪問飛行記錄器數據 - 根據默認安全標准,根據需要為該用戶提供盡可能少的權限

- >是否足以為用戶提供readonly權限,或者Java Flight Recorder是否還需要在某處寫入內容?

JFR需要一些特定的讀寫權限:

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

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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM