Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

Fatal error: Allowe...
 
Notifications
Clear all

Fatal error: Allowed memory size of 67108864 bytes exhausted

7 Posts
2 Users
0 Reactions
11.7 K Views
Klaus
(@climb4fun)
Posts: 449
Contributor
Topic starter
 
[#430]

Hi Babynus,

applying report "work plan per week", I get following error message:
"Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /users/climb4fun/www/projector/tool/projector.php on line 1037"

It happens only on a project which has a lot of real work records. On smaller projects it works well. Report "work plan per month" works fine as well.

LogFile out of my test environment

2012-03-29 10:30:39 ===== TRACE ===== NEW CONNECTED USER 'klaus'
2012-03-29 10:30:44 ===== TRACE ===== cron started at 29/03/2012 10:30:44
2012-03-29 10:31:05 ** ERROR ** ERROR **
2012-03-29 10:31:05 ** ERROR ** on file '/users/climb4fun/www/projector/model/IndicatorValue.php' at line (234)
2012-03-29 10:31:05 ** ERROR ** cause = Trying to get property of non-object
2012-03-29 10:38:04 ===== TRACE ===== DISCONNECTED USER 'Klaus'
2012-03-29 10:48:49 ===== TRACE ===== NEW CONNECTED USER 'klaus'
2012-03-29 10:48:53 ===== TRACE ===== cron started at 29/03/2012 10:48:53
2012-03-29 10:49:13 ** ERROR ** ERROR **
2012-03-29 10:49:13 ** ERROR ** on file '/users/climb4fun/www/projector/model/IndicatorValue.php' at line (234)
2012-03-29 10:49:13 ** ERROR ** cause = Trying to get property of non-object
2012-03-29 10:53:28 ** ERROR ** Error on SqlElement to get 'idBill' for Class 'PlannedWork'  : field 'idBill' not found in Database.
2012-03-29 10:53:28 ** ERROR ** Error on SqlElement to get 'idBill' for Class 'PlannedWork'  : field 'idBill' not found in Database.

Version 2.0.1

Klaus


 
Posted : 29 Mar 2012 13H02
babynus
(@babynus)
Posts: 14952
Member Admin
 

The default memory limit of your PHP server is 64M.
It is very few for a productive server.
I'll have a look on improvement of this report, but I must advise you to increase this limit (at least double it) otherwise you may reguliarly face this king of issue.

Regards.


 
Posted : 29 Mar 2012 14H27
babynus
(@babynus)
Posts: 14952
Member Admin
 

I had a look at the report : there is not much to optimse.
This report is not at all the more complex or memory loading report.

Do you reproduce the issue every time, or did you face it on a given context ?
(maybe another user was using a memory consiming process, such as pdf export, while you ran this report...)


 
Posted : 29 Mar 2012 14H52
Klaus
(@climb4fun)
Posts: 449
Contributor
Topic starter
 

First I checked memory limit:
In my test environment I have 64M memory limit.

In my productiv enviroment it's much more memory. I discovered, error message in my productiv environment is different:
If I didn't select a project and run report with wildcard then message is:

Fatal error: Maximum execution time of 30 seconds exceeded in /opt/lampp/htdocs/projector/report/globalWorkPlanning.php on line 76

If I select the project with most entries, then message is

Fatal error: Maximum execution time of 30 seconds exceeded in /opt/lampp/htdocs/projector/tool/projector.php on line 1261

Klaus


 
Posted : 29 Mar 2012 18H02
babynus
(@babynus)
Posts: 14952
Member Admin
 

Hi,
I understand better...

The two errors you logged are the same : time limit (timeout reached).
I'll have a look.
What is surprising is that it occurs only on this report ... or do you reproduce this issue on any other report ?

I'll try and increase Timeout at runtime for every report...
I'll also have a look at indexes in the database : as there is only one request, I don't really explain such a long time running.

Regards.


 
Posted : 29 Mar 2012 19H57
Klaus
(@climb4fun)
Posts: 449
Contributor
Topic starter
 

I did observe this error only on running report "work plan per week" with wildcard and running report for project with a lot of entries.


 
Posted : 30 Mar 2012 8H58
babynus
(@babynus)
Posts: 14952
Member Admin
 

I'll have a look.
It may be due to graph production (with no possible improvement) or to a missing index in Database (with possible improvment)

V2.1 should solve the issue (time limit extended to 5mn).


 
Posted : 30 Mar 2012 16H07
Share:

Scroll to Top