Non-core contributed modules

Problem with memory usage

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: 1.9
  • Fix Version/s: None
  • Component/s: Block: Create parent
  • Labels:
    None
  • Affected Branches:
    MOODLE_19_STABLE

Description

As received via email:

Hi,

I try to install your module "Create Parent Account Block", but I've got an error when I go to the admin page.

The 2 error messages are :

Fatal error: Allowed memory size of 100663296 bytes exhausted (tried to allocate 44 bytes) in /srv/www/htdocs/moodle/lib/dmllib.php on line 728

Fatal error: Allowed memory size of 100663296 bytes exhausted (tried to allocate 23 bytes) in /srv/www/htdocs/moodle/lib/moodlelib.php on line 7727

I verify the "memory_limit" php variable, it's set to 256M.
I think it's enough, I just try with 512M, but it's still doesn't work.

I have a look on the code of dmllib.php, the ligne 728 seems to fill an array from a SQL request.

We use Moodle 1.9.4+.

Thanks for your help and have a nice day.

--------------

Bruno Malaval

Activity

Hide
Mike Worth added a comment -

More info from Bruno Malaval via email:

When I say "admin page", it's the page we load after each module installation,
i.e https://www.e-formation.uha.fr/moodle/admin

This is the page which detect new modules installed, make changes in the database and display summary of these informations.

At this time, we have 390 courses, 11700 users (all our students and teachers) but only 1300 actives users.

Show
Mike Worth added a comment - More info from Bruno Malaval via email: When I say "admin page", it's the page we load after each module installation, i.e https://www.e-formation.uha.fr/moodle/admin This is the page which detect new modules installed, make changes in the database and display summary of these informations. At this time, we have 390 courses, 11700 users (all our students and teachers) but only 1300 actives users.
Hide
Keith Bloom added a comment - - edited

I have seen this before and I cannot remember the remedy, however I too am experiencing the memory limit error, even as I increase the allocation in the php.ini settings, the demand just escalates to throw the error.

After increasing allocation from 32MB to 64MB and restarting Apache/PHP, the /admin page ends with this message:

"Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 310423344 bytes) in Unknown on line 0"

I don't think it is actually keeping anything from working, however I am never at ease with an unsolved error.

Cheers,

Keith

Show
Keith Bloom added a comment - - edited I have seen this before and I cannot remember the remedy, however I too am experiencing the memory limit error, even as I increase the allocation in the php.ini settings, the demand just escalates to throw the error. After increasing allocation from 32MB to 64MB and restarting Apache/PHP, the /admin page ends with this message: "Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 310423344 bytes) in Unknown on line 0" I don't think it is actually keeping anything from working, however I am never at ease with an unsolved error. Cheers, Keith

People

Vote (2)
Watch (2)

Dates

  • Created:
    Updated: