添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
Click the Start a free trial link to start a 15-day SaaS trial of our product and join our community as a trial user. If you are an existing customer do not start a free trial. AppDynamics customers and established members should click the sign in button to authenticate.

We  embed  the appdynamic nodejs agent  in our nodejs service.

When disable appdynamics function,  with 90 tps,  our nodejs service CPU usage is 40%.

When  enable  appdynamics function,  with 90 tps,  our nodejs service CPU usage is 60%.

After follow the optimize steps from https://community.appdynamics.com/t5/Knowledge-Base/How-do-I-troubleshoot-high-CPU-usage/ta-p/23266 ,   CPU usage still  60%, not any approvement!

maxProcessSnapshotsPerPeriod : Optional. The default is 2 . The number of automatic process snapshots allowed in processSnapshotCountResetPeriodSeconds seconds.

processSnapshotCountResetPeriodSeconds : Optional, defaults to 60 . Frequency, in seconds, at which the automatic process snapshot count is reset to 0.

  • autoSnapshotDurationSeconds : Optional, defaults to 10. Length, in seconds, of automatically-triggered process snapshots.
  • Regards,

    Hi Kyle,

    Thanks for the reply!

    We have tried adjust the three paramters(autoSnapshotDurationSeconds, processSnapshotCountResetPeriodSeconds, maxProcessSnapshotsPerPeriod), even set the alwaysAddEumMetadataInHttpHeaders to false for test,   but still get the same result of high CPU usage .

    Here is our Nodejs test code,

    const appdynamics= require("appdynamics");

    appdynamics.profile({
    controllerHostName: appdynamicsConf.controllerHostName,
    controllerPort: appdynamicsConf.controllerPort,
    controllerSslEnabled: appdynamicsConf.controllerSslEnabled,
    accountName: appdynamicsConf.accountName,
    accountAccessKey: appdynamicsConf.accountAccessKey,
    applicationName: appdynamicsConf.applicationName,
    autoSnapshotDurationSeconds: 60,
    processSnapshotCountResetPeriodSeconds: 120,
    maxProcessSnapshotsPerPeriod: 1,
    alwaysAddEumMetadataInHttpHeaders: false,
    tierName: appdynamicsConf.tierName,
    nodeName: os.hostname()
    });

    Regards!

    Thanks!

    We have tested the follow four scenarios with 90 tps ,  still get the same result.

    scenarios 1:  AppDynamics is disabled      ----  nodejs agent CPU used  41%

    scenarios 2: AppDynamics is enabled with default setting (processSnapshotCountResetPeriodSeconds: 60, maxProcessSnapshotsPerPeriod: 2,  autoSnapshotDurationSeconds: 10 )        ----  nodejs agent CPU used  57%

    scenarios 3: AppDynamics is enabled with special setting, (processSnapshotCountResetPeriodSeconds: 60, maxProcessSnapshotsPerPeriod: 10,  autoSnapshotDurationSeconds: 6 )         ----  nodejs agent CPU used  61%

    scenarios 4: AppDynamics is enabled with special setting (processSnapshotCountResetPeriodSeconds: 120, maxProcessSnapshotsPerPeriod: 1,  autoSnapshotDurationSeconds: 10 )      ---  nodejs agent CPU used  56%

    regards!

    Unable to install AppDynamics into Node app in Dynamic Languages (Node.JS, Python, PHP, C/C++, Webserver Agent) AppDynamics SAAS .NET Core on Graviton EC2 Instance (ARM64) in NET (Agent, Installation) How to set tiername in clusteragent to split reporting by cluster/namespace in Infrastructure (Server, Network, Database) Linux- Oracle Database agent is not displaying hardware metrics in Infrastructure (Server, Network, Database)