セキュリティ要件および構成

WebSphereでエージェントが正しく機能するにはすべての権限が必要となります。サーバーレベルおよびプロフィールレベルの両方にすべての権限を付与します。

セキュリティが設定された WebSphere の実行

J2EE セキュリティまたはグローバルセキュリティが有効なときに WebSphere を実行する場合は、WebSphere の server.policy ファイルを変更し、WebSphere と Java エージェント間の相互作用の問題を防ぐ必要があります。

codeBase 値は、ソースコードの場所を示します。その場所から、コードに権限を付与する必要があります。codeBase は URL 値であり、末尾の文字によって異なります。末尾が "/-"codeBase は、ディレクトリ内のすべてのファイル(クラスファイルと JAR ファイルの両方)と、再帰的にディレクトリに含まれるサブディレクトリ内のすべてのファイルと一致します。

  1. server.policy<websphere_profile_home>/properties または に配置されている <websphere_home>/properties ファイルに移動します。
  2. 次のコードブロックを WebSphere ファイルに追加します。

    構文

    grant codeBase "file:</full/path/to/agent_install_directory>/-" { permission java.security.AllPermission; };

    grant codeBase "file:/opt/appdynamics/javagent/agent4.5.1.23676/-" { permission java.security.AllPermission; };
  3. ファイルを保存します。

パフォーマンスモニタリングの統計

JMX 機能を動作させるには、Application servers > <server_name> > Performance Monitoring Infrastructure (PMI) で [Currently monitored statistic set] を [None ] 以外のオプションに設定します。

Run WebSphere with Security EnabledLink to Run WebSphere with Security Enabled

To run WebSphere while J2EE security or Global security is enabled, you must make changes to WebSphere's server.policy file to prevent problems with the interaction between WebSphere and the Java Agent.

A codeBase value indicates the location of the source code. You must grant permissions to the code from that location. The codeBase is a URL value, and depends on the characters at the end. A codeBase with a trailing "/-" matches all files, both class and JAR files, in the directory and recursively all files in subdirectories contained in the directory.

  1. Navigate to the server.policy file, located in <websphere_home>/properties or in <websphere_profile_home>/properties.
  2. Add this code block to the WebSphere server.policy file:
    Syntax:
    grant codeBase "file:</full/path/to/agent_install_directory>/-" { permission java.security.AllPermission; };
    Example:
    grant codeBase "file:/opt/appdynamics/javagent/agent4.5.1.23676/-" { permission java.security.AllPermission; };
  3. Save the file.