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

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

Changing Named Methods settings

The NamedMethods setting for a Java EE agent is used to track specific methods. Specify the names of methods by forming a regular expression that matches the name or pattern. The method signature can be specified but it must be specified using the internal JVM format, as in the "DominateWorld" example below. For more information, see http://docs.oracle.com/javase/specs/#7035.

The JVM format for constructors may not be as expected. For example, for the constructor: com.quest.controller.AuthenticateAdmin.AuthenticateAdmin(), the correct signature to specify would be: com.quest.controller.AuthenticateAdmin.<init>().

1
Click the Named Methods tab of the Edit dialog box.
2
To add named methods, click Edit beside NamedMethods.
Click Add named method to define a named method.
5
Click Add to add a single method at a time.
Click Add multiple to open a text box where you can type several methods.

Next, specify the maximum number of named methods to track, as described in Changing the Maximum Number of Methods Tracked .

If you manually edit the instrumentation.config file, use the following syntax to specify named method instrumentation.

For example:

NamedMethods = {
"TakeOver": MethodList(
include /com\.globex\.takeover\..*/
),
"DominateWorld": MethodList(
include "com.globex.plan.DominateWorldServlet.doGet(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V",
include "com.globex.plan.DominateWorldHelper.dominate(Ljava/lang/String;Z[B)I",
),
"Globex": MethodList(
include "com.globex.pocket.Sugar",
include "com.globex.cypresscreek.HammockHut.sit",
exclude /(\.|^)globex\./
)
};

For more information about how to monitor specific methods, see the Monitoring Methods topic, in the Foglight for Application Servers User Guide.

Changing the Maximum Number of Methods Tracked

The MaxNumberOfMethodsTracked setting controls the maximum number of Named Methods that the Java EE agent tracks. If the Named Methods list contains a greater number of methods than the value set for MaxNumberOfMethodsTracked, only the first MaxNumberOfMethodsTracked methods are tracked.

For example, if you create a named method list that contains 101 methods, but leave the maximum number of methods tracked set to the default of 100, then only the first 100 methods that are run from the named method list are tracked. The method that is not tracked is the one that runs last.

1
Click the Named Methods tab of the Edit dialog box.
3
Click Save.

If you manually edit the instrumentation.config file, use the following syntax to specify the maximum number of methods tracked.

Object Tracking settings

The Object Tracking instrumentation settings for a Java EE agent determine how the agent tracks objects that are not reclaimed by the garbage collector. Changing any of these settings can have performance implications. Review the provided information before changing any settings.

Tracking object classes

Use the ObjectTrackerClasses setting to watch for objects that are never reclaimed by the garbage collector. You can specify groups of classes with allocated object instances that are tracked during a sampled request.

Object tracking impacts performance overhead if the number of tracked instances is too high. The simplest way to reduce imposed overhead is to track a smaller number of classes. Recording should be delayed until the application has reached a steady state (that is, after start-up work is complete and permanent objects have been created). Use the IgnoredAllocations setting to indicate which objects should not be tracked, even if those allocations are performed by classes in this tracked class list. For more information, see Ignoring specific objects.

NOTE: The ObjectTrackerClasses settings only take effect when object tracking is enabled. Object Tracking can be enabled and disabled on a per request basis, by setting the Enable Object Tracking option found in the Application Servers Monitor > Server JVM view. For more information, see the Foglight for Application Servers User Guide. The pre-instrumentor script must be run on all agent machines after changing either the ObjectTrackerClasses or IgnoredAllocations properties.

For example, the following procedure shows how to configure this object tracking:

Track all classes in the com.globex.plan package.
Track the com.acme.Widget class.
1
Click the Object Tracking tab of the Edit dialog box.
2
To add tracked object classes, click Edit beside ObjectTrackerClasses.
Click Add multiple to define several classes at once.
5
Click Add.
6

You may also want to ignore specific objects. For more information, see Ignoring specific objects.

If you manually edit the instrumentation.config file, use the following syntax to specify the object tracking instrumentation.

ObjectTrackerClasses = ClassList(
include "com.globex.plan.",
exclude /(\.|^)globex\./

include "com.acme.Widget",

include "java.util.Stack",
include "java.util.Vector",
);

This example tracks all classes in the com.globex.plan package, but it does not track any other classes with globex in the name. It also tracks the com.acme.Widget class, as well as the listed collection classes.

関連ドキュメント

The document was helpful.

評価を選択

I easily found the information I needed.

評価を選択