error in function.php need urgent help plis

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
alvee_poke
Posts: 7
Joined: Wed Dec 05, 2007 8:01 pm

error in function.php need urgent help plis

Post by alvee_poke »

Dear Moderators/Cacti Expert,

Kindly help me to solve this problem, i have installed flowview plugins and its works perfectly to all my device. BUUTT I have one device which have huge load traffic and when i want to see the current traffic of top 10 or top 100 its always show

Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 121 bytes) in /var/www/plugins/flowview/functions.php on line 277

i have increase my memory and memory limit in flowview_process.php and php.ini become 1G but its still face the same. Help me plisss ... thx in advance
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: error in function.php need urgent help plis

Post by Howie »

alvee_poke wrote:Dear Moderators/Cacti Expert,

Kindly help me to solve this problem, i have installed flowview plugins and its works perfectly to all my device. BUUTT I have one device which have huge load traffic and when i want to see the current traffic of top 10 or top 100 its always show

Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 121 bytes) in /var/www/plugins/flowview/functions.php on line 277

i have increase my memory and memory limit in flowview_process.php and php.ini become 1G but its still face the same. Help me plisss ... thx in advance
Restart apache. It only picks up changes in php.ini when it starts up. 268435456 is exactly 256MB.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
alvee_poke
Posts: 7
Joined: Wed Dec 05, 2007 8:01 pm

Re: error in function.php need urgent help plis

Post by alvee_poke »

Howie wrote:
alvee_poke wrote:Dear Moderators/Cacti Expert,

Kindly help me to solve this problem, i have installed flowview plugins and its works perfectly to all my device. BUUTT I have one device which have huge load traffic and when i want to see the current traffic of top 10 or top 100 its always show

Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 121 bytes) in /var/www/plugins/flowview/functions.php on line 277

i have increase my memory and memory limit in flowview_process.php and php.ini become 1G but its still face the same. Help me plisss ... thx in advance
Restart apache. It only picks up changes in php.ini when it starts up. 268435456 is exactly 256MB.

already but actually i still face the same problem and exactly show the same number ... kindly advice

thx in advance
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: error in function.php need urgent help plis

Post by Howie »

alvee_poke wrote:already but actually i still face the same problem and exactly show the same number ... kindly advice

thx in advance
Then it seems you have a php problem.

If you put the following into a test.php file and access it from the browser, what do you get for the memory_limit?

Code: Select all

<?php
    php_info();
?>
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

If this is poller related, you should do the following:

Code: Select all

grep -r -i "ini_set" /var/www/html/cact
Look for the "memory_limit". I am pretty sure that I have placed that in the poller.php. It should be increased. If it's a UI issue, you may have to seek out other areas that are limiting memoy.

Yes, and the memory limit should be increased by default in poller.php. If that turns out to be the problem, and so that I don't forget (again), can you please log a bug at http://bugs.cacti.net

Thanks,

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?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests