• Forums
    • Public Forums
      • Community Connect
      • Dynatrace
        • Dynatrace Open Q&A
      • Application Monitoring & UEM
        • AppMon & UEM Open Q&A
      • Network Application Monitoring
        • NAM Open Q&A
  • Home /
  • Public Forums /
  • Application Monitoring & UEM /
  • AppMon & UEM Open Q&A /
avatar image
Question by Ronald M. · Aug 22, 2012 at 02:41 AM · production

How to monitor CPU load

Hi all,

In our Linux, Java environment, we use CPU load to monitor how stressful an app server is. Is there a way to set up such monitoring page in dynaTrace?

Thanks!
-Ronald

Comment

People who like this

0 Show 0
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

4 Replies

  • Sort: 
  • Most voted
  • Newest
  • Oldest
avatar image

Answer by Seetha E. · Aug 04, 2015 at 06:10 PM

Hi Paul Kuit,

 

Is your plugin stored in Community? Can you please give me link to it.

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image

Answer by Paul K. · May 18, 2013 at 11:09 PM

Hello all,

I wrote a plugin that queries for processes consuming the most CPU Time and/or Resident/WorkingSet memory and stores them as dynamic measures.

Windows measures are collected through Powershell, executing the following command:

powershell invoke-command -computer  "{get-process | fl ProcessName, ID, Handles, NPM, PM, WS, VM, CPU}"

Windows measure collections are only available for Collectors running on Windows, since it uses powershell. Make sure powershell´s remote execution is enabled on the remote machine by executing:

powershell enable-psremoting -force

*Nix measures are queried through SSH by executing command:

"top -n 1 -b"

The amount of collected processes can be configured through Plugin properties topMemory + topCPU. Values 5, 5 could bring up 10 dynamic measures since most consuming memory processes are not necessarily most cpu consuming. If only interested in top memory consuming, define topCPU=0.

The name of the dynamic measure contains only the name of the process. When creating a chart for a measure, select measure splitting 'processname' and filter the chart dashlet for the specific host or it will show processes from all monitored hosts.

Measures collected

for both Windows and Unix:

  • CPUTime (s)
  • Resident (Linux) / Workingset (Windows) memory (kB)
  • Virtual Memory (kB)

    for Linux only:

  • CPU (%)
  • Memory (%)
  • Shared Memory (kB)

    for Windows only:

  • Handles (occ)
  • Non Pageable Memory - NPM (kB)
  • Pageable Memory - PM (kB)

Feel free to send any comments/questions.

Regards,

Paul

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image

Answer by Viveks J. · May 06, 2013 at 06:15 PM

HI,

I have issue on production where CPU reached more than 80% and slow down my system, I was able to see same information from host agent and confirmed that it was not my JMV which caused CPU up, it was some other process on server which caused this, is there any way I can find out which process on server captured the high CPU?

Comment

People who like this

0 Show 2 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image Andreas G. ♦ · May 06, 2013 at 08:46 PM 0
Share

There is no automatic way in the moment to monitor all other processes on a machine. What our Host Monitoring feature provides is the overall CPU Usage of the Host and the CPU Usage of the invidvidual processes that have an Agent injected. If these numbers dont add up you know that some other process on that host consumes CPU

You can use our Windows and Unix Monitors to monitor CPU Usage of specific processes. But - you need to know which processes to monitor.

Another approach is to connect to these machines remotely and see which processes are running and consuming CPU. Depending on the OS you can use the OS specific CPU Monitoring Tools to figure this out

Andi

avatar image Viveks J. Andreas G. ♦ · May 06, 2013 at 09:06 PM 0
Share

Thanks Andreas for reply, I think its hosting team only which will be able to look at this as I dont know which process actually consumed the process. Thanks for help.

avatar image

Answer by Andreas G. · Aug 27, 2012 at 03:09 PM

Hi Ronald

Starting with dynaTrace 4.2 you automatically get Host Healt Information for every machine where you have a dynaTrace Agent, e.g: Java Agent installed. Host Health includes CPU Load which you can see in the new Host Health Dashboards or that you can put on a custom chart. The measures can be found under "System Monitoring -> Host Performance".

If you are not yet on dynaTrace 4.2 you will get CPU Load of the Java Process in case you have a dynaTrace Agent in that application. You can create a chart and add the measure such as "Current CPU Load"
If you need to monitor CPU of the host machine you can setup a Monitor that queries CPU data from one or more machines on a scheduled interval.

More information on monitoring can be found here:
Monitoring your System

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

How to get started

First steps in the forum
Read Community User Guide
Best practices of using forum

NAM 2019 SP5 is available


Check the RHEL support added in the latest NAM service pack.

Learn more

LIVE WEBINAR

"Performance Clinic - Monitoring as a Self Service with Dynatrace"


JANUARY 15, 3:00 PM GMT / 10:00 AM ET

Register here

Follow this Question

Answers Answers and Comments

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Problem with Monitor (Windows Performance Monitor)

Where I can review outbound requests from server

Get List of offline Agents of all system profiles

Performance Warehouse migration - SQL Server

Alerts and Maintenance Periods

Forum Tags

dotnet mobile monitoring load iis 6.5 kubernetes mainframe rest api dashboard framework 7.0 appmon 7 health monitoring adk log monitoring services auto-detection uem webserver test automation license web performance monitoring ios nam probe collector migration mq web services knowledge sharing reports window java hybris javascript appmon sensors good to know extensions search 6.3+ server documentation easytravel web dashboard kibana system profile purelytics docker splunk 6.1 process groups account 7.2 rest dynatrace saas spa guardian appmon administration production user actions postgresql upgrade oneagent measures security Dynatrace Managed transactionflow technologies diagnostics user session monitoring unique users continuous delivery sharing configuration alerting NGINX splitting business transaction client 6.3 installation database scheduler apache mobileapp RUM php dashlet azure purepath agent 7.1 appmonsaas messagebroker nodejs 6.2 android sensor performance warehouse
  • Forums
  • Public Forums
    • Community Connect
    • Dynatrace
      • Dynatrace Open Q&A
    • Application Monitoring & UEM
      • AppMon & UEM Open Q&A
    • Network Application Monitoring
      • NAM Open Q&A