Bug

Allowed memory size

Summary

open
Oct 23, 2006
Oct 23, 2006 / tino
Jan 5, 2009 / phsouzacruz
 

Attached files

No files uploaded
 
Hi all
Trying to add a member to a team for a project and I end up with :

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 82 bytes) in /var/www/db/db_item.inc.php on line 357

OS : Linux/ Ubuntu LAMP 64
Version latest 0.6
Is it fixed under 0.7 ?

from Edouard


Issue report

Minor
Have not tried
 

9 Comments

pixtur:Maybe he has to increase the memory limit in php.ini

11 years ago

At http://www.all-inkl.com (the provide running this server) the default memory limit is 40mb. I can imagine that 8mb is just not enough for streber...




binder:should not happen...

11 years ago

adding a team member should not exceed 8MB. In fact, if this should use 2MB its too much in my opinion. I'll take a look at this.

pixtur:please check it...

11 years ago

I have problems doing this on windows, because the memory size function is not supported here. But not that adding a team member does...
  1. load translation (maybe 200-400 kb in memory)
  2. init pagehandles (maybe 100kb) and basic object types (maybe 100 kb each)
  3. Lists all available persons including description etc. (maybe 20kb each)
But checking for memory consumption is really a good idea

guest:More Testing

11 years ago (5. update 11 years ago) -

It seems that the trouble is happening only when I log in as someone who has admin rights.

pixtur:Interessting...

11 years ago

May I ask, how many tasks/projects you have. Maybe there is a false SQL-statement somewhere that does not do a distinct query and returns too many rows...



binder:problem can be reproduced here

11 years ago

sorry, I changed the wrong php.ini! ;)
now the problem can be reproduced here, too...

we should refactor some list-rendering, cause theres a SQL-Query for each row; if there are many persons in the database (as we do have also), theres more than 8MB used (we do have some 12MB...)

pixtur:Are there other problems as well?

11 years ago

I guess those problems occur in other issues as well? Or is this a special problem of person list?

Maybe we should display memory consumption in footer

guest:New Comment

11 years ago -

we're examining the existing SQL-Queries.
PersonList could not be the only one affected...

pixtur:at streber.pixtur.de most page consume between 7 and 11 mb

11 years ago (2. update 11 years ago)

Since I don't know what to change about this, I removed this task from