Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To reduce the quantity of collected data and propagate mainly meaningful data, a filtering mechanism is used. This mechanism is used to filter nodes and invocations before loading the data into the PMDB.

Anchor
AboutDataFiltering
AboutDataFiltering
About the data filtering stages

The Precise for J2EE data filtering mechanism contains the following three stages:1.    Top

  1. Top N branches filtering

...

  1. . Sorts each invocation tree by service time, only keeping the top n entry points (with their underlying call tree), as defined in the filtering configuration.

...

  1. Filtering by service time

...

  1. . For each entry point, all underlying branches (including locked methods) with a service time lower than the defined percent of the entry point’s service time are filtered.

    Info

...

  1. No information regarding the filtered branch’s SQLs or exit points will be displayed.

...

  1. Filtering by work time

...

  1. . Filters branches (only branches, and keeps their underlying call tree) with a work time lower than the defined threshold.

...

  1. Info

    Locked methods are always displayed.

    It is highly recommended not to alter the default data filtering values. Changes to the default values should only be made in extreme cases that either require maximum data, such as POC environments, or in cases of data overflow where stricter data filtering must be applied.

Configuring data filtering

To configure data filtering:1.    Open

  1. Open the collector.xml file in the registry folder.

...

  1. Add the following element:
    <agent-config>
         <vendor>undefined (version undefined)</vendor>
         <memloginterval>100</memloginterval>
         <agginterval>30</agginterval>
         <topnsql>5</topnsql>
         <minSQLThreshold>100</minSQLThreshold>
         <loggerEnabled>true</loggerEnabled>
         <dirconnenabled>false</dirconnenabled>
        
         <dirconnport>20764</dirconnport>
         <exceptionFilterByName>.*</exceptionFilterByName>
        
         <filteringEnabled>true</filteringEnabled>
         <filteringMaxInvocationTrees>100</filteringMaxInvocationTrees>
        
         <filteringPercent>1</filteringPercent>
         <filteringThreshold>5</filteringThreshold>

         <useStartupClass>false</useStartupClass>

    </agent-config>

...

  1. Run the relevant CLI command as it appears in step 3 of

...

  1. Instance registry or Cluster registry.

The following table lists the available parameters:

Table 8-1    Data 1 Data filtering configuration parametersParameter    Description
filteringEnabled    Activates

ParameterDescription
filteringEnabled

Activates and deactivates data filtering.

Type: Boolean

Default value: true

...

filteringMaxInvocationTrees

The maximum number of entry points to keep, based on service time.

Type: Integer

Default value: 100

...

Info

For more information, see

...

...

...

filteringPercent

The minimum percent value of the entry point’s service time necessary to keep a node.

Type: Integer

Default value: 1

...

Info

For more information, see

...

...

...

filteringThreshold

The minimum work time value (milliseconds) threshold to keep a node.

Type: Integer

Default value: 5

...

Info

For more information, see

...

...

Keeping exceptions of filtered invocations

After selecting the data filtering method, the user can choose to mark the option: “Keep exceptions for filtered methods”. The exceptions will be included in the total per JVM, even though their source is not displayed.

...