Ticket #123 (closed defect: fixed)

Opened 4 years ago

Last modified 2 years ago

rrdtool graph v1.2.24 on AIX 5.3 will hang ( Use ~ 90$ cpu )

Reported by: human Owned by: oetiker
Priority: major Milestone:
Component: rrd_graph Version: 1.2.24
Keywords: Cc:

Description

Given,

rrdtool v1.2.24 build on AIX 5.3 with xlC v8

Running ganglia ( gmetad v3.0.5 ) for a while. First everything works fine using ganglia's web interface. But after a while the browser say: Loading ....... for a graph. Looking at the process list i see a rrdttol graph process running using 90% of the cpu and never ending.

For debugging i used the following commands. On my system the first & second command are running but if i INCREASE the value for run B from --end 1195053850 to --end 1195053851 even run B will fail where run C will fail everytime on the give rrd database.

Any hints ?

$ cat rrdtest

echo AAAAAAAAAAA
truss -efa /usr/bin/rrdtool graph - \
        --imgformat PNG         \
         --start 1194965906     \
         --end 1195052306       \
         --width 300 --height 75        \
         --title weight         \
        --color BACK#ffffff     \
        DEF:sum="weight.rrd":sum:AVERAGE \
        AREA:sum#0000ff:"tcseptimus last day (now -1.00)"

echo BBBBBB

truss -efa /usr/bin/rrdtool graph -    \
        --imgformat PNG         \
        --start 1195050792      \
        --end 1195053850        \
        --width 300 --height 75 \
        --title weight          \
        --color BACK#ffffff     \
        DEF:sum="weight.rrd":sum:AVERAGE        \
         AREA:sum#0000ff:"tcvulcanus last hour (now -1.00)"

echo CCCCCC
truss -efa /usr/bin/rrdtool graph -    \
        --imgformat PNG         \
        --start 1195050792      \
        --end 1195054392        \
        --width 300 --height 75 \
        --title weight          \
        --color BACK#ffffff     \
        DEF:sum="weight.rrd":sum:AVERAGE        \
         AREA:sum#0000ff:"tcvulcanus last hour (now -1.00)"

Attachments

weight.rrd Download (11.8 KB) - added by human 4 years ago.
Trouble causing rrd database
weight.xml Download (99.3 KB) - added by human 4 years ago.

Change History

Changed 4 years ago by human

Trouble causing rrd database

comment:1 follow-up: ↓ 2 Changed 4 years ago by oetiker

you may have more success asking about these things on the mailinglist ...

comment:2 in reply to: ↑ 1 Changed 4 years ago by human

Replying to oetiker:

you may have more success asking about these things on the mailinglist ...

I just hoped that you test the given rrd database on your system to see i you have the same problem or not. The point is that the rrdtool graph v1.2.13 running against the test rrd database shows no problem. If it is working for you i can build a debug version ...

tia Hajo

Changed 4 years ago by human

comment:3 Changed 4 years ago by oetiker

  • Status changed from new to closed
  • Resolution set to fixed

Thanks for reporting this ... the problem was that rrdtool was not handling the case correctly where min and max wer equal and both negative ... the patch is in r1233.

Note: See TracTickets for help on using tickets.

NOTE: The content of this website is accessible with any browser. The graphical design though relies completely on CSS2 styles. If you see this text, this means that your browser does not support CSS2. Consider upgrading to a standard conformant browser like Mozilla Firefox or Opera but also Apple's Safari or KDE's Konqueror for example. It may also be that you are looking at a mirror page which did not copy the CSS for this page. Or if some pictu res are missing, then the mirror may not have picked up the contents of the inc directory.