サポートと今すぐチャット
サポートとのチャット

Foglight for Java EE Technologies 5.9.11 - Installation Guide

Installing and Configuring Foglight for Java EE Technologies Integrating with JBoss Integrating with Apache Tomcat Integrating with WebLogic Domain Startup Scripts Integrating with WebSphere Integrating with WebSphere Liberty Integrating with Oracle AS Integrating with Spring Boot for Embedded Tomcat Creating a Generic Installation for Manual Java EE Agent Integration Managing Java EE Agent Installations, Integrations, and Configurations Managing Java EE Agent Configurations Managing Java EE Installation Java EE Integration Configuration FAQ and Troubleshooting Manually Integrating Application Server Appendix A: Java EE Application Methods AppendixB: Managing Permissions for the Java EE Integration Agent

WebSphere environments

WebSphere® are configured to use profiles. Therefore, configuration with the Java EE agent involves two steps. The first is to edit to the global setupCmdLine script. These changes only take effect if the environment variable QUEST_DEPLOYMENT_DIRECTORY has been set in your user profile setupCmdLine script. All other profiles ignore the code in the global setupCmdLine script.

Review the following exceptions before you configure your server.

Set the environment variable QUEST_PREINST_OPTS with the desired VM options. The environment variable QUEST_PREINST_OPTS is passed to the Java EE agent pre-instrumentor script.
UNIX®:

Complete the following steps to configure a WebSphere® environment.

By default, this script can be found in the <websphere_home>/bin/ directory.
3
Open the global setupCmdLine script in a text editor and make the following modifications:
Windows® Only — Add the following code to the end of the script:
UNIX® — Add the following code to the end of the script:
if [ -f "$QUEST_DEPLOYMENT_DIRECTORY/<integrate.sh>" -a -n "$QUEST_JAVA_ENV_OPTS" ];
then
. "$QUEST_DEPLOYMENT_DIRECTORY/
<integrate.sh>"
else
echo Java EE agent is NOT enabled
fi
4
Set <integrate.cmd/sh> to the name of the integration task you created in step 2. For example: integrate-Generic_installation_only_on_Windows_Install_Configs_and_pre-instrument.cmd.
5
Save your modified setupCmdLine script file.
6
Locate your profile setupCmdLine script. The default installation places it in WAS_HOME/profiles/<profile_name>/bin. Set the QUEST_DEPLOYMENT_DIRECTORY at the end of the profile script to the Installation directory defined in step 2 to enable monitoring for that profile.

Creating WebSphere services

If you are starting your servers, Node agents, or WebSphere® Deployment Managers as a service, create a Windows® Service to use the Java EE agent instrumentation. See the IBM® documentation for instructions on creating and installing a Windows Service with the WASService.exe tool. You can keep your old Windows Service, but ensure that only one service for a particular WebSphere server, Node agent, or WebSphere Deployment Manager has a startup type of Automatic. All others should be set to Manual or Disabled.

When creating a Windows Service to integrate with the Java EE agent, provide an extra argument to the -startArgs option:

For WebSphere server use:

" -Dquest.agent.websphere.server"

For WebSphere Node agent use:

" -Dquest.agent.websphere.nodeagent"

For WebSphere Deployment Manager use:

" -Dquest.agent.websphere.dmgr"

WAS_HOME\bin\WASService.exe -add "BASE server1 - with agent" ^
-servername server1 ^
-profilePath "C:\WebSphere6\profiles\AppSrv01" ^
-startArgs " -Dquest.agent.websphere.server" ^
-startType automatic

WAS_HOME\bin\WASService.exe -add "ND nodeagent - with agent" ^
-servername nodeagent ^
-profilePath "C:\WebSphere6\profiles\AppSrv01" ^
-startArgs " -Dquest.agent.websphere.nodeagent" ^
-startType automatic

WAS_HOME\bin\WASService.exe -add "ND dmgr - with agent" ^
-servername dmgr ^
-profilePath "C:\WebSphere6\profiles\Dmgr01" ^
-startArgs " -Dquest.agent.websphere.dmgr" ^
-startType automatic

Modifying the WebSphere startup scripts

Use the steps in this section to modify the WebSphere startup scripts.

Review the following exceptions before you configure your server.

Set the environment variable QUEST_PREINST_OPTS with the desired VM options. The environment variable QUEST_PREINST_OPTS is passed to the Java EE agent pre-instrumentor script.

Complete the following steps to modify a WebSphere startup script.

Restarting modified WebSphere servers

After you have modified the startup script, restart the WebSphere® server.

CAUTION: Foglight starts a Java EE agent for each instrumented server. When the Java EE agent connects to the Management Server, the Management Server console displays a message to confirm that a Java EE agent has connected. For example: INFO agent licenses assigned; Type: websphere, Host: <hostName>, CPUs: 1; CPU licenses in use: INFO Accepted DCE connection from agent "server1 (WebSphere)" (WebSphere 6.X). The log file for the Java EE agent also contains an INFO message stating that it has connected to the Management Server.

 

関連ドキュメント

The document was helpful.

評価を選択

I easily found the information I needed.

評価を選択