Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6077903
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:46:24+00:00 2026-05-23T10:46:24+00:00

I would like to measure CPU and Memory usages for a server during continuous

  • 0

I would like to measure CPU and Memory usages for a server during continuous integration, And I would represent them into several graphs. I use Round Robin Database files (*.rrd) to do it in java with RRD4J library.

I don’t know how to define Round Robin Archives…
I have tried this kind of RRA:

rrdDefCPU.addDatasource("CPU", DsType.COUNTER, 150, 0, 100);
rrdDefCPU.addArchive("RRA:AVERAGE:0.5:8:300"); 

Or

rrdDefCPU.addDatasource("CPU", DsType.COUNTER, 600, 0, 100);
rrdDefCPU.addArchive("RRA:AVERAGE:0.5:1:600"); 

In both cases, I record one measure per second, but I still 2 points on the graph for a period of 5 minutes. I want a graph with more of values ​on the same period.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T10:46:24+00:00Added an answer on May 23, 2026 at 10:46 am

    If you are not seeing more detail in your 5 minute interval, then I guess your step size is 5 minutes and you got it from copying the demo code. Please show your RrdDef constructor in your question.

    RrdDef rrdDef = new RrdDef(rrdPath, startTime, 300); // step size 300s
    

    Also, you probably want a GAUGE for cpu/memory usage, not a COUNTER which only goes up. If you use COUNTER by mistake, you get spiky output because RRD interprets a down move as an overflow and adds a very large amount to that observation.

    In your code, you are varying the Heartbeat size, which combines with Xff to determine what size gap is tolerated in the input. If you have continuous data, you won’t see any effect from changing HB.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm programming in python on windows and would like to accurately measure the time
In Javascript, I have a certain string, and I would like to somehow measure
I would like to know how to measure/know that one's stored procedure is optimum
I would like to create a calculated measure that sums up only a specific
I would like to limit the amount of physical memory a process can use
I would like to ask about Memory Overhead in java, I have a large
I would like to measure how much time a user spends on my website.
I measure coverage for my code using gcov library and I would like to
We are using JMeter in a heterogeneous environment and we would like to measure
I would like to measure a time (in seconds in integers or minutes in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.