RRDTool crazy process and RDD...
Moderators: Developers, Moderators
RRDTool crazy process and RDD...
Hi all,
I've been using Cacti since september without any considerable problem...
I have only one problem which i can't find any solution.
I have about 35 hosts, and i suppose i get about 100/150 requests (snmp/personal scripts)
For some reason i can't understand, sometimes, some graph go "crazy" and cannot graph anymore. It produce a rrdtool process that may eat any system resource, eating 50%-100% of cpu.
If i udpate webpage, another rrdtool process hangs, without show graph.
In this situations, i must "kill -9 $PROCESS".
The only way to clean this situation is to rebuild rrd database by delete its db file.
I use cacti 0.8.6c (upgraded today, with same problems) on Sun Blade-1000, Solaris 5.8.
I've been using Cacti since september without any considerable problem...
I have only one problem which i can't find any solution.
I have about 35 hosts, and i suppose i get about 100/150 requests (snmp/personal scripts)
For some reason i can't understand, sometimes, some graph go "crazy" and cannot graph anymore. It produce a rrdtool process that may eat any system resource, eating 50%-100% of cpu.
If i udpate webpage, another rrdtool process hangs, without show graph.
In this situations, i must "kill -9 $PROCESS".
The only way to clean this situation is to rebuild rrd database by delete its db file.
I use cacti 0.8.6c (upgraded today, with same problems) on Sun Blade-1000, Solaris 5.8.
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Using cactid or cmd.php for poller?
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
cmd.php.
Other information, prstat give:
PID USERNAME SIZE RSS STATE PRI NICE TIME CPU PROCESS/NLWP
5500 nobody 1640K 1568K cpu1 10 0 0:02.36 50% rrdtool/1
if i "ps -ef|grep 5500", i get:
nobody 5500 5499 49 10:59:03 ? 2:05 /usr/local/rrdtool-1.0.49/bin/rrdtool graph - --imgformat=PNG --start=111338274
If i get father process: "ps -ef|grep 5499":
nobody 5499 4677 0 10:59:03 ? 0:00 sh -c /usr/local/rrdtool-1.0.49/bin/rrdtool graph - --imgformat=PNG --start=1
In Solaris, i can test what process do with "truss". If I truss process 5500 (the process at 50% of cpu) nothing is displayed. If i "truss" father process (5499), i get:
truss -p 5499
waitid(P_PID, 5500, 0xFFBEF948, WEXITED|WTRAPPED|WNOWAIT) (sleeping...)
Other information, prstat give:
PID USERNAME SIZE RSS STATE PRI NICE TIME CPU PROCESS/NLWP
5500 nobody 1640K 1568K cpu1 10 0 0:02.36 50% rrdtool/1
if i "ps -ef|grep 5500", i get:
nobody 5500 5499 49 10:59:03 ? 2:05 /usr/local/rrdtool-1.0.49/bin/rrdtool graph - --imgformat=PNG --start=111338274
If i get father process: "ps -ef|grep 5499":
nobody 5499 4677 0 10:59:03 ? 0:00 sh -c /usr/local/rrdtool-1.0.49/bin/rrdtool graph - --imgformat=PNG --start=1
In Solaris, i can test what process do with "truss". If I truss process 5500 (the process at 50% of cpu) nothing is displayed. If i "truss" father process (5499), i get:
truss -p 5499
waitid(P_PID, 5500, 0xFFBEF948, WEXITED|WTRAPPED|WNOWAIT) (sleeping...)
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Should have asked this before, php version?
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Iceman,
You have a corrupt graph definition. What you need to do is edit the graphs one at a time under graph management until your browser locks up. The you will know what template to modify to fix the problem. This is a nasty unfortunate situation that we are looking to remedy in 0.9.
It sometimes happens when your graph syntax is buggered up (invalid). Updating rrdtool doesn't always fix the problem. (aka, it's an rrdtool bug).
TheWitness
You have a corrupt graph definition. What you need to do is edit the graphs one at a time under graph management until your browser locks up. The you will know what template to modify to fix the problem. This is a nasty unfortunate situation that we are looking to remedy in 0.9.
It sometimes happens when your graph syntax is buggered up (invalid). Updating rrdtool doesn't always fix the problem. (aka, it's an rrdtool bug).
TheWitness
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Btw, doesn't lock up my browsers.... I think TheWitness is seeing things...
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Not! Had this problem myself when creating graphs.
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Tobi fixed the Stack without Area race condition in either RRDTool 1.2.4-1.2.6. So, those lockups should go away.
That was the issue with me, building Stack Graphs would lock up the web browser if I did them in the wrong order. Again, if you use 1.2.x, don't remember what "x" is, you should not have that problem.
TheWitness
That was the issue with me, building Stack Graphs would lock up the web browser if I did them in the wrong order. Again, if you use 1.2.x, don't remember what "x" is, you should not have that problem.
TheWitness
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
OK, i've installed rrdtool 1.2.8 (together 1.0.49)
Now i read that i have to upgrade cacti to 0.8.6d to work with rrdtool 1.2.8
I read that no new rrdtool's implementation should work in cacti (i don't care)
If I upgrade, do i loose my old RRAs? Will my RRA update correctly by "php poller.php" in crontab with new rrdtool?
What is the best "step-by-step" procedure to upgrade without loose 5minutes polls (in the 10-15 minutes required to upgrade)? (rename old directory, unpack new, copy rra to new folder, ecc...)
Now i read that i have to upgrade cacti to 0.8.6d to work with rrdtool 1.2.8
I read that no new rrdtool's implementation should work in cacti (i don't care)
If I upgrade, do i loose my old RRAs? Will my RRA update correctly by "php poller.php" in crontab with new rrdtool?
What is the best "step-by-step" procedure to upgrade without loose 5minutes polls (in the 10-15 minutes required to upgrade)? (rename old directory, unpack new, copy rra to new folder, ecc...)
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Your old RRD files will remain compatible between 1.0.x and 1.2.x, but new RRD files will not.
TheWitness
TheWitness
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Who is online
Users browsing this forum: No registered users and 1 guest