Hey,
Sorry for my bad english.
I have an error during the execution of script poller.php with the command php4 /var/www/cacti/poller.php
"Fatal error : Allowed memory size of 8388608 bytes exhausted (tried to allocate 82 bytes in var/www/cacti/poller.php"
Information : I have 4500 graphs and 45 devices
My config is :
Cacti0.8.6g and cactid0.8.6e
Debian 2.6.9 woody
Apache1.3
PHP4 4.1.2
Mysql3.23.49
Net-snmp 5.2.1
RRDTOOL 1.0.35
I tried to allocate more memory in php.ini (like memory_limit=256M and max_execution_time=300) without success.
Can you give my some help please ??
Pascal
Fatal error : Allowed memory size of 8388608 bytes exhausted
Moderators: Developers, Moderators
- fmangeant
- Cacti Guru User
- Posts: 2345
- Joined: Fri Sep 19, 2003 8:36 am
- Location: Sophia-Antipolis, France
- Contact:
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
I strongly encourage all users to be at PHP 4.3.6 or above. It provides several very important features to Cacti.
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?
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Did you restart the web service/process after changing the php.ini?
[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]
yes, I restart the web service/process after changing the php.ini.
I want to know if the configuration of the poller (ie 15 process and 5 threads is good ??) this configuration maybe take a lot of memory.
I configure my poller with 30 process and only one thread and my problem was solved.
Thanks for your help.
Pascal
I want to know if the configuration of the poller (ie 15 process and 5 threads is good ??) this configuration maybe take a lot of memory.
I configure my poller with 30 process and only one thread and my problem was solved.
Thanks for your help.
Pascal
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
What is your mixture of scripts vs. snmp? If your percentage of scripts is higher, I would increase the processes to no more than twice the number of CPU's.
I have a 4 cpu Xeon PIII 550 and run 3 processes and 15 threads, and it run as fast as it will ever. The behavior that I have found is as follows:
1) If I increase the number of processes, the CPU load get's too high, which in turn deminishes www performance
2) If I increase the number of threads, context switching goes to high, again with marginal at best performance increases. It also deminishes web performance.
So, the rule of thumb to have no more than twice your number of process sticks for me. And definately keep it under 30 threads.
TheWitness
I have a 4 cpu Xeon PIII 550 and run 3 processes and 15 threads, and it run as fast as it will ever. The behavior that I have found is as follows:
1) If I increase the number of processes, the CPU load get's too high, which in turn deminishes www performance
2) If I increase the number of threads, context switching goes to high, again with marginal at best performance increases. It also deminishes web performance.
So, the rule of thumb to have no more than twice your number of process sticks for me. And definately keep it under 30 threads.
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 2 guests