SAP Knowledge Base Article - Public

1631978 - Diagnostic Agent Error : "Metric Limit exceeded: 1000" in Diagnostics Agent

Symptom

  1. Missing host metrics in Workload Analysis or Introscope Enterprise Manager(e.g. CPU data)
  2. The sections "Workload By Task Types" and "History of Response Time of <SID>" can be missing data if they're based on Diagnostics data.
  3. The following error is shown in the SMDAgentApplication log of the Diagnostics Agent:
    Thread[CIP|CMSPCIP3_CIP_03 AbapInstance/3600,5,WILYHOST_SCHEDULER:ExecTG]] Error com.sap.smd.wily.hostagent.action.IsProxyJCOAction$SchedulerGroup - extractMetrics(): Metric could not be passed to Introscope
    [EXCEPTION]
    com.sap.smd.wily.hostagent.metric.MetricException: Metric Limit exceeded: 1000
    at com.sap.smd.wily.hostagent.metric.MetricArea.createNewDataRecorderMetric(MetricArea.java:625)
    at com.sap.smd.wily.hostagent.metric.MetricArea.recordDataPoint(MetricArea.java:663)
    at com.sap.smd.wily.hostagent.action.IsProxyJCOAction$SchedulerGroup.reportNumericalMetric(IsProxyJCOAction.java:251)
    at com.sap.smd.wily.hostagent.action.IsProxyJCOAction$SchedulerGroup.extractMetrics(IsProxyJCOAction.java:203)
    at com.sap.smd.wily.hostagent.action.AbstractJCOAction.doRun(AbstractJCOAction.java:60)
    at com.sap.smd.wily.hostagent.action.AbstractAction.run(AbstractAction.java:82)
    at com.sap.smd.wily.hostagent.Scheduler$RunnerAdapter.run(Scheduler.java:156)
    at com.sap.smd.server.exec.TaskRunner.run(TaskRunner.java:47)
    at com.sap.smd.server.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:785)
    at java.lang.Thread.run(Thread.java:836)

Environment

  • Any version of Diagnostics Agent

Reproducing the Issue

  1. Logon to the SAP Solution Manager
  2. Navigate to the Agent Admin
  3. Start the Agent Log Viewer
  4. Check for the error mentioned in the symptom of this KBA

You can also check the metrics relevant for this limit in the Introscope Investigator tree of the "SAP HostAgent Process"

  1. Login to Introscope Workstation or Webview
  2. Choose the node "SAP Oscol"
  3. Check if the metrics reach ~1000

Cause

By default only 1000 metrics are allowed per "action" in wilyhost to avoid flooding the Enterprise Manager. Potentially more than 1000 metrics are generated from SAP Host Agent in wilyhost (e.g. due to many file systems being monitored).

Resolution

  1. Go to diagnostics agent admin, tab "application configuration", select application "com.sap.smd.agent.application.wilyhost"
  2. On the right choose the scope of your agent, switch to Edit mode, and change the value for metric.limit.per.action to 2000
    Please make sure to only change the setting for a specific Diagnostics Agent (scope) not the global setting!
  3. Save
  4. Restart the relevant diagnostics agent and wait for some time to see if the metrics turn active again.

Keywords

SMD, , note, 797147, metric, limit, exceeded, 1000, DE1CLNT970 SUSR_ZBV_GET_REMOTE_PROFILES, com.sap.smd.wily.hostagent.metric.MetricException, DAA, Diagnostic Agent, Wily, Introscope , KBA , SV-SMG-DIA-SRV-AGT , Agent Framework , XX-PART-WILY , Introscope by CA Technologies , Problem

Product

SAP Business ByDesign all versions