internal > Bug

Allowed memory size / #2646

Summary

open
Oct 23, 2006
Oct 24, 2006 / tino
Aug 15, 2007 / joerg
 

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

Oct 24, 2006
Maybe he has to increase the memory limit in php.ini
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

Oct 24, 2006
should not happen...
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

Oct 24, 2006
please check it...
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

Oct 27, 2006
version 5
More Testing
It seems that the trouble is happening only when I log in as someone who has admin rights.

pixtur

Oct 27, 2006
Interessting...
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

Nov 4, 2006
problem can be reproduced here
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

Nov 7, 2006
Are there other problems as well?
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

Nov 7, 2006
New Comment
we're examining the existing SQL-Queries.
PersonList could not be the only one affected...

pixtur

Jan 3, 2007
version 2
at streber.pixtur.de most page consume between 7 and 11 mb
Since I don't know what to change about this, I removed this task from v0.08

 

Comment / Update