Cacti PHP Memory Exhausted at 64M but php.ini says 1024M

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
bapho
Posts: 5
Joined: Mon Jun 14, 2010 4:57 am
Location: Germany, Cologne
Contact:

Cacti PHP Memory Exhausted at 64M but php.ini says 1024M

Post by bapho »

Hi there,

I'm running two machines with cacti 8.7e on ubuntu 10.04 with php 5.3.2.

Everytime when i want to reindex my hosts via poller_reindex_hosts.php --id=All
i get the following error after he's done with about the half of the hosts.

PHP Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 72 bytes) in /usr/share/cacti/site/lib/xml.php on line 32

I've searched for this error, and i've increased my memory limit in the php.ini files to 1024M.

I just don't get it where these 64MB limitation comes from and google can't help me any further.


Thanks for any reply.


Greetings

Christopher
Voiper99
Cacti User
Posts: 276
Joined: Thu Mar 01, 2007 5:43 pm
Location: Melbourne, Australia

Post by Voiper99 »

Take a look in your php.ini file. I believe what you are looking for is the memory_limit variable. If you up that it should hopefully resolve your issue.
bapho
Posts: 5
Joined: Mon Jun 14, 2010 4:57 am
Location: Germany, Cologne
Contact:

Post by bapho »

Hi,

Thanks for your reply.

But thats exactly what i've already done in both php.ini files... one in the apache2 directory and the other one in /cli

Regards

Christopher
bapho
Posts: 5
Joined: Mon Jun 14, 2010 4:57 am
Location: Germany, Cologne
Contact:

Post by bapho »

Hey there,

Problem solved...

there is a 64mb limitation in the poller_rebuild_index.php file which caused this trouble. Maybe it was just to easy to resolve such an issue :-/


Christopher
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests