<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: High CPU usage Nodejs Agent on linux in Splunk AppDynamics</title>
    <link>https://community.splunk.com/t5/Splunk-AppDynamics/High-CPU-usage-Nodejs-Agent-on-linux/m-p/727093#M5605</link>
    <description>&lt;P&gt;&amp;nbsp;Thanks!&lt;/P&gt;

&lt;P&gt;We have tested the follow four&amp;nbsp;scenarios with 90 tps ,&amp;nbsp; still get the same result.&lt;/P&gt;
&lt;P&gt;scenarios 1:&amp;nbsp; AppDynamics is disabled&amp;nbsp; &amp;nbsp; &amp;nbsp; ----&amp;nbsp; nodejs agent CPU used&amp;nbsp; 41%&lt;/P&gt;
&lt;P&gt;scenarios 2: AppDynamics is enabled with default setting (processSnapshotCountResetPeriodSeconds: 60, maxProcessSnapshotsPerPeriod: 2,&amp;nbsp; autoSnapshotDurationSeconds: 10 )&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ----&amp;nbsp; nodejs agent CPU used&amp;nbsp; 57%&lt;/P&gt;
&lt;P&gt;scenarios 3: AppDynamics is enabled with special setting, (processSnapshotCountResetPeriodSeconds: 60, maxProcessSnapshotsPerPeriod: 10,&amp;nbsp; autoSnapshotDurationSeconds: 6 )&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;----&amp;nbsp; nodejs agent CPU used&amp;nbsp; 61%&lt;/P&gt;
&lt;P&gt;scenarios 4: AppDynamics is enabled with special setting (processSnapshotCountResetPeriodSeconds: 120, maxProcessSnapshotsPerPeriod: 1,&amp;nbsp; autoSnapshotDurationSeconds: 10 )&amp;nbsp; &amp;nbsp; &amp;nbsp; ---&amp;nbsp; nodejs agent CPU used&amp;nbsp; 56%&lt;/P&gt;

&lt;P&gt;regards!&lt;/P&gt;</description>
    <pubDate>Thu, 18 Apr 2019 09:21:32 GMT</pubDate>
    <dc:creator>CommunityUser</dc:creator>
    <dc:date>2019-04-18T09:21:32Z</dc:date>
    <item>
      <title>High CPU usage Nodejs Agent on linux</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/High-CPU-usage-Nodejs-Agent-on-linux/m-p/727088#M5600</link>
      <description>&lt;P&gt;We&amp;nbsp; embed&amp;nbsp; the appdynamic nodejs agent&amp;nbsp; in our nodejs service.&lt;/P&gt;
&lt;P&gt;When disable appdynamics function,&amp;nbsp; with 90 tps,&amp;nbsp; our nodejs service CPU usage is 40%.&lt;/P&gt;
&lt;P&gt;When&amp;nbsp; enable&amp;nbsp; appdynamics function,&amp;nbsp; with 90 tps,&amp;nbsp; our nodejs service CPU usage is 60%.&lt;/P&gt;
&lt;P&gt;After follow the optimize steps from&amp;nbsp;&lt;A href="https://community.appdynamics.com/t5/Knowledge-Base/How-do-I-troubleshoot-high-CPU-usage/ta-p/23266" target="_blank"&gt;https://community.appdynamics.com/t5/Knowledge-Base/How-do-I-troubleshoot-high-CPU-usage/ta-p/23266&lt;/A&gt;,&amp;nbsp; &amp;nbsp;CPU usage still&amp;nbsp; 60%, not any approvement!&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2019 09:26:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/High-CPU-usage-Nodejs-Agent-on-linux/m-p/727088#M5600</guid>
      <dc:creator>CommunityUser</dc:creator>
      <dc:date>2019-04-16T09:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: High CPU usage Nodejs Agent on linux</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/High-CPU-usage-Nodejs-Agent-on-linux/m-p/727089#M5601</link>
      <description>&lt;P&gt;Hi Jesseka,&lt;/P&gt;

&lt;P&gt;For Node.js, it is usually process snapshots which lead to the CPU&amp;nbsp; overhead. You can find the settings to tweak this in this document:&amp;nbsp;&lt;A href="https://docs.appdynamics.com/display/PRO45/Node.js+Settings+Reference" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.appdynamics.com/display/PRO45/Node.js+Settings+Reference&lt;/A&gt;&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;
&lt;P&gt;&lt;CODE&gt;maxProcessSnapshotsPerPeriod&lt;/CODE&gt;: Optional. The default is&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;2&lt;/CODE&gt;. The number of automatic process snapshots allowed in processSnapshotCountResetPeriodSeconds seconds.&amp;nbsp;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;CODE&gt;processSnapshotCountResetPeriodSeconds&lt;/CODE&gt;: Optional, defaults to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;60&lt;/CODE&gt;. Frequency, in seconds, at which the automatic process snapshot count is reset to 0.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;CODE&gt;autoSnapshotDurationSeconds&lt;/CODE&gt;: Optional, defaults to 10. Length, in seconds, of automatically-triggered process snapshots.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Kyle&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2019 19:31:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/High-CPU-usage-Nodejs-Agent-on-linux/m-p/727089#M5601</guid>
      <dc:creator>Kyle_Furlong</dc:creator>
      <dc:date>2019-04-16T19:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: High CPU usage Nodejs Agent on linux</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/High-CPU-usage-Nodejs-Agent-on-linux/m-p/727090#M5602</link>
      <description />
      <pubDate>Wed, 17 Apr 2019 02:36:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/High-CPU-usage-Nodejs-Agent-on-linux/m-p/727090#M5602</guid>
      <dc:creator>CommunityUser</dc:creator>
      <dc:date>2019-04-17T02:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: High CPU usage Nodejs Agent on linux</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/High-CPU-usage-Nodejs-Agent-on-linux/m-p/727091#M5603</link>
      <description>&lt;P&gt;Hi Kyle,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Thanks for the reply!&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;We have tried adjust the three paramters(autoSnapshotDurationSeconds, processSnapshotCountResetPeriodSeconds, maxProcessSnapshotsPerPeriod), even set the&amp;nbsp;alwaysAddEumMetadataInHttpHeaders to false for test,&amp;nbsp; &amp;nbsp;but still get the same result of high CPU usage .&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Here is our Nodejs test code,&lt;/P&gt;
&lt;P&gt;const appdynamics= require("appdynamics");&lt;/P&gt;
&lt;P&gt;appdynamics.profile({&lt;BR /&gt;controllerHostName: appdynamicsConf.controllerHostName,&lt;BR /&gt;controllerPort: appdynamicsConf.controllerPort,&lt;BR /&gt;controllerSslEnabled: appdynamicsConf.controllerSslEnabled,&lt;BR /&gt;accountName: appdynamicsConf.accountName,&lt;BR /&gt;accountAccessKey: appdynamicsConf.accountAccessKey,&lt;BR /&gt;applicationName: appdynamicsConf.applicationName,&lt;BR /&gt;autoSnapshotDurationSeconds: 60,&lt;BR /&gt;processSnapshotCountResetPeriodSeconds: 120,&lt;BR /&gt;maxProcessSnapshotsPerPeriod: 1,&lt;BR /&gt;alwaysAddEumMetadataInHttpHeaders: false,&lt;BR /&gt;tierName: appdynamicsConf.tierName,&lt;BR /&gt;nodeName: os.hostname()&lt;BR /&gt;});&lt;/P&gt;

&lt;P&gt;Regards!&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 02:36:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/High-CPU-usage-Nodejs-Agent-on-linux/m-p/727091#M5603</guid>
      <dc:creator>CommunityUser</dc:creator>
      <dc:date>2019-04-17T02:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: High CPU usage Nodejs Agent on linux</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/High-CPU-usage-Nodejs-Agent-on-linux/m-p/727092#M5604</link>
      <description>Please try autoSnapshotDurationSeconds: 10&lt;BR /&gt;</description>
      <pubDate>Wed, 17 Apr 2019 16:43:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/High-CPU-usage-Nodejs-Agent-on-linux/m-p/727092#M5604</guid>
      <dc:creator>Kyle_Furlong</dc:creator>
      <dc:date>2019-04-17T16:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: High CPU usage Nodejs Agent on linux</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/High-CPU-usage-Nodejs-Agent-on-linux/m-p/727093#M5605</link>
      <description>&lt;P&gt;&amp;nbsp;Thanks!&lt;/P&gt;

&lt;P&gt;We have tested the follow four&amp;nbsp;scenarios with 90 tps ,&amp;nbsp; still get the same result.&lt;/P&gt;
&lt;P&gt;scenarios 1:&amp;nbsp; AppDynamics is disabled&amp;nbsp; &amp;nbsp; &amp;nbsp; ----&amp;nbsp; nodejs agent CPU used&amp;nbsp; 41%&lt;/P&gt;
&lt;P&gt;scenarios 2: AppDynamics is enabled with default setting (processSnapshotCountResetPeriodSeconds: 60, maxProcessSnapshotsPerPeriod: 2,&amp;nbsp; autoSnapshotDurationSeconds: 10 )&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ----&amp;nbsp; nodejs agent CPU used&amp;nbsp; 57%&lt;/P&gt;
&lt;P&gt;scenarios 3: AppDynamics is enabled with special setting, (processSnapshotCountResetPeriodSeconds: 60, maxProcessSnapshotsPerPeriod: 10,&amp;nbsp; autoSnapshotDurationSeconds: 6 )&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;----&amp;nbsp; nodejs agent CPU used&amp;nbsp; 61%&lt;/P&gt;
&lt;P&gt;scenarios 4: AppDynamics is enabled with special setting (processSnapshotCountResetPeriodSeconds: 120, maxProcessSnapshotsPerPeriod: 1,&amp;nbsp; autoSnapshotDurationSeconds: 10 )&amp;nbsp; &amp;nbsp; &amp;nbsp; ---&amp;nbsp; nodejs agent CPU used&amp;nbsp; 56%&lt;/P&gt;

&lt;P&gt;regards!&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2019 09:21:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/High-CPU-usage-Nodejs-Agent-on-linux/m-p/727093#M5605</guid>
      <dc:creator>CommunityUser</dc:creator>
      <dc:date>2019-04-18T09:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: High CPU usage Nodejs Agent on linux</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/High-CPU-usage-Nodejs-Agent-on-linux/m-p/727094#M5606</link>
      <description>&lt;P&gt;Is there any resolution for this?&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2019 17:41:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/High-CPU-usage-Nodejs-Agent-on-linux/m-p/727094#M5606</guid>
      <dc:creator>Umervali_Niyama</dc:creator>
      <dc:date>2019-05-14T17:41:04Z</dc:date>
    </item>
  </channel>
</rss>

