melvin.e.shaw | 3 Dec 2007 18:56
Picon

Re: cmd.php running out of memory

I had a similar issue. My poller_output table in the cacti database had 
grown to be huge (like, hundreds of thousands of records), due to a custom 
script that got out of control. Truncating that table and rerunning poller 
seemed to do the trick for me 

Edson Manners <emanners <at> fsu.edu> 
Sent by: cacti-user-bounces <at> lists.sourceforge.net
12/03/2007 12:21 PM
Please respond to
Support requests/questions about cacti <cacti-user <at> lists.sourceforge.net>

To
cacti-user <at> lists.sourceforge.net
cc

Subject
[cacti-user] cmd.php running out of memory

Hi,
        I'm using cacti 0.8.6j with mostly default settings(using 
cmd.php). I have found that cmd.php seems to be running out of memory.
I found the following webpage (http://cacti.net/cactid_info.php) and did 
as suggested and poller.php returns with a time of about 426seconds and 
usually runs out of memory.

Out of memory (Needed 3600324 bytes)
12/03/2007 12:20:50 PM - SYSTEM STATS: Time:585.1627 Method:cmd.php 
Processes:1 Threads:N/A Hosts:37 HostsPerProcess:37 DataSources:1041 
RRDsProcessed:3038

I am running on RHEL5 - kernel 2.6.18-53 - php 5.1.6 - 2GB of RAM.

A top while "php poller.php" is running usually looks like this:

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+ 
COMMAND 
26047 root      15   0 1171m 1.8g 5464 S         8      87.0 
0:16.38             php

Anyone experience anything like this??? I've had this same setup working 
before.

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
cacti-user mailing list
cacti-user <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cacti-user

-----------------------------------------
This communication is for informational purposes only. It is not
intended as an offer or solicitation for the purchase or sale of
any financial instrument or as an official confirmation of any
transaction. All market prices, data and other information are not
warranted as to completeness or accuracy and are subject to change
without notice. Any comments or statements made herein do not
necessarily reflect those of JPMorgan Chase & Co., its subsidiaries
and affiliates.

This transmission may contain information that is privileged,
confidential, legally privileged, and/or exempt from disclosure
under applicable law. If you are not the intended recipient, you
are hereby notified that any disclosure, copying, distribution, or
use of the information contained herein (including any reliance
thereon) is STRICTLY PROHIBITED. Although this transmission and any
attachments are believed to be free of any virus or other defect
that might affect any computer system into which it is received and
opened, it is the responsibility of the recipient to ensure that it
is virus free and no responsibility is accepted by JPMorgan Chase &
Co., its subsidiaries and affiliates, as applicable, for any loss
or damage arising in any way from its use. If you received this
transmission in error, please immediately contact the sender and
destroy the material in its entirety, whether in electronic or hard
copy format. Thank you.

Please refer to http://www.jpmorgan.com/pages/disclosures for
disclosures relating to UK legal entities.
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4

Gmane