Use the Custom Component Callbacks setting to specify the classes or interfaces that the custom components use to call customer written code. The default instrumentation settings include some custom component callbacks for Apache Struts and Spring.
For more information, see Appendix: Java EE Application Methods.
1 |
4 |
If you manually edit the instrumentation.config file, use the following syntax to specify custom component callback instrumentation.
Use the LongRunningUserMethods setting to customize the collection of performance data from methods that run over a long period of time. By default, the Java EE agent waits for a method to finish running before treating the collected data as complete. However, for methods such as the run() method of a background thread or other methods that run over a long period of time, it may be preferable to treat the data as complete at specific points in the code. This makes the data available in small pieces as the method runs instead of as one large piece when the long running method completes. Changing any of these settings can have performance implications.
The Java EE agent pauses at waypoint methods (LongRunningUserMethodWaypoints) to treat the data as complete before continuing. For best performance, use a minimal set of waypoint methods.
1 |
Click the Long Running Methods tab of the Edit dialog box. |
2 |
1 |
On the Long Running Methods tab of the Edit dialog box, click Edit beside LongRunningUserMethodWaypoints. |
2 |
4 |
If you manually edit the instrumentation.config file, use the following syntax to specify long running user methods and waypoints instrumentation.
LongRunningUserMethods = MethodList(
include "com.globex.plan.DominateWorldThread.run"
);
In this case, the method "com.globex.plan.DominateWorldThread.run" treats the data as complete each time the method executeProjectArcturus() is called from run(). The Java EE agent pauses at waypoint methods to treat the data as complete before continuing. A minimal set of waypoint methods allows for the best possible performance.
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 |
4 |
In the dialog box that opens, type the method name in the Specify a name box. |
5 |
Click OK. |
8 |
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 more information about how to monitor specific methods, see the Monitoring Methods topic, in the Foglight for Application Servers User Guide.
© 2024 Quest Software Inc. ALL RIGHTS RESERVED. Conditions d’utilisation Confidentialité Cookie Preference Center