chamilo-lms icon indicating copy to clipboard operation
chamilo-lms copied to clipboard

Many users in a course

Open joachimlucas opened this issue 10 years ago • 7 comments

Hi I have a class with about 28,000 registered users. When I associate this class to a course and return to "users" tool, it can't display the first 20 users.

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 94 bytes) in /var/www/html/chamilo/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php on line 108

joachimlucas avatar Sep 28 '16 06:09 joachimlucas

What's the URL with the error?

jmontoyaa avatar Sep 28 '16 06:09 jmontoyaa

Hi Julio

it's http://myserver/chamilo/main/user/user.php?cidReq=YYYY&id_session=0&gidReq=0&gradebook=0&origin=

joachimlucas avatar Sep 28 '16 06:09 joachimlucas

Hi @djoshy, while your bug report is legitimate, I would suggest for now that you increase the amount of memory. Dealing with a 28,000 users class with only 128MB of RAM allowed for PHP should be OK, but this is a new case for us...

ywarnier avatar Oct 09 '16 20:10 ywarnier

@djoshy any information you could share on the context of this 28000 users' class is an interesting use case to me. If you want to extend on that privately, you can write to me at ywarnier_at-chamilo.org

ywarnier avatar Oct 12 '16 02:10 ywarnier

I'm unassigning this from our direct 1.11.0 objective, because it's more like an improvement than a big bug (although I do acknowledge that we shouldn't use that much memory to show 20 users)

ywarnier avatar Oct 12 '16 02:10 ywarnier

This is not immediately related and will probably not solve the lack of memory issue (although it might have a considerable impact), but commit d4d819b647cae68 might give you some help there. You will have to adapt it to your version of Chamilo, though.

ywarnier avatar Dec 23 '16 14:12 ywarnier

I couldn't reproduce the error. 1.11.x.

jmontoyaa avatar Feb 02 '17 11:02 jmontoyaa