Use the LongRunningUserMethods setting to customize the collection of performance data from methods that execute over a long period of time. By default, the Java EE agent waits for a method to finish executing before treating the collected data as complete. However, for methods such as the
run() method of a background thread or other methods that execute 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 executes instead of as one big piece when the long running method completes.
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.
If you manually edit the instrumentation.config file, use the following syntax to specify long running user methods and waypoints instrumentation.
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 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>().
If you manually edit the instrumentation.config file, use the following syntax to specify named method instrumentation.
The MaxNumberOfMethodsTracked setting controls the maximum number of Named Methods tracked by the Java EE agent. If the Named Methods list contains a greater number of methods than the value set for
MaxNumberOfMethodsTracked, only the first
MaxNumberOfMethodsTracked methods are tracked.
If you manually edit the instrumentation.config file, use the following syntax to specify the maximum number of methods tracked.