一部のMBean属性には、Javaエージェントにレポートさせるべきでない機密情報が含まれます。app-agent-config.xml ファイルの <exclude object-name> 設定を使用して、そのような属性を除外するよう Java エージェントを構成できます。

MBean 属性を除外するには、次の手順を実行します。

  1. AppServerAgent/conf/app-agent-config.xml ファイルを開く。
  2. 新しい構成は、app-agent-config.xml で agent-overwrite プロパティが true に設定されるとすぐに有効になります。agent-overwritefalse の場合(デフォルト)、新しい構成は無視されるため、エージェントを再起動する必要があります。プロパティを true に設定します。

    <property name="agent-overwrite" value="true"/>

     

  3. JMXService のセクションを見つけます。次は、その例です。

    <agent-service name="JMXService" enabled="true">

     

  4. JMXService <configuration> セクションで、コメントの指示に従って <jmx-mbean-browser-excludes> セクションと <exclude object-name> プロパティを追加します。

    <configuration>
        <!--
           Use the below configuration sample to create rules to exclude MBean attributes from MBean Browser.
           <exclude object-name=<MBean name pattern> attributes=< * |comma separated list of attribute names> >
           The example below will exclude all attributes of MBeans that match "Catalina:*".
           <jmx-mbean-browser-excludes>
              <exclude object-name="Catalina:*" attributes="*"/>
           </jmx-mbean-browser-excludes>
        -->
     </configuration>
  5. ファイルを保存します。