Welcome, Guest
Username: Password: Remember me

TOPIC: [FIXED] Fatal Error - Allowed Memory Exhausted

Fatal Error - Allowed Memory Exhausted 21 Jun 2013 01:13 #7585

  • jhallock
  • jhallock's Avatar
  • Offline
  • Senior Member
  • Posts: 43
  • Thank you received: 1
  • Karma: 0
I am getting a Fatal Error when trying to build, test or download my component:

Allowed memory size of 62914560 bytes exhausted (tried to allocate 524298 bytes)
The administrator has disabled public write access.

Fatal Error - Allowed Memory Exhausted 21 Jun 2013 11:29 #7586

  • Pantelis
  • Pantelis's Avatar
  • Offline
  • Senior Member
  • Posts: 47
  • Thank you received: 2
  • Karma: 1
The same for me.

Project : DJPro Total Control
The administrator has disabled public write access.

Fatal Error - Allowed Memory Exhausted 22 Jun 2013 11:21 #7608

  • Pantelis
  • Pantelis's Avatar
  • Offline
  • Senior Member
  • Posts: 47
  • Thank you received: 2
  • Karma: 1
Allowed memory size of 62914560 bytes exhausted (tried to allocate 1049967 bytes)
The administrator has disabled public write access.

Fatal Error - Allowed Memory Exhausted 23 Jun 2013 22:10 #7620

  • abcmix
  • abcmix's Avatar
  • Offline
  • New Member
  • Posts: 2
  • Karma: 0
The same for me.

Various projects.

"Allowed memory size of 62914560 bytes exhausted (tried to allocate 8192 bytes)"
The administrator has disabled public write access.

Fatal Error - Allowed Memory Exhausted 24 Jun 2013 11:31 #7622

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
I am currently working on this.

This is my main priority, and for the moment I cannot sort it out because my code is optimized to maximum already (almost).
I have now created a debug for this and I can see the memory distribution for the projects created.

I think I can optimize more, but it is a long way.
The solution is to increase memory (64 Mo for the moment), but I would like to optimize instead of doing this.

@Pantelis:
Did you changed your structure for N-M ?
Because your way is weired.
30 FK per tables means that you will have 30 Models instancied every time, and same with your SQL queries !!! Too much joins !

In your structure, create a link table containing 2 FK, pointing to your 2 tables.
In this N-M link table, you can add another field for example to handle the number (1 to 30), if you want to control the maximum quantity of links.

This N-M must be done manualy, but it is not a big deal...

This is a big issue for me, because, yes 2.5 is using more memory, so the projects wich was working before, will may exceed memory now. But if you build your component properly it should pass.

Anyway, if I do not find solution, I will increase memory to allow you to generate.
Coding is now a piece of cake
The administrator has disabled public write access.
The following user(s) said Thank You: jhallock

Fatal Error - Allowed Memory Exhausted 24 Jun 2013 13:52 #7631

  • Pantelis
  • Pantelis's Avatar
  • Offline
  • Senior Member
  • Posts: 47
  • Thank you received: 2
  • Karma: 1
Dear Admin,

I have created the N-M linkink and it is fine now, also i have deleted the tables with 30FKs....

Now i need to move on with this but i get this error. :(
The administrator has disabled public write access.

Fatal Error - Allowed Memory Exhausted 24 Jun 2013 14:13 #7632

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
Ok, stay in touch because now I have done this recent upgrade, I will now concentrate on memory issue as a priority.
This is really my priority now because If i keep this issue I will need to buy more ressources and I prefer to optimize. I receive server warning too often so you are the alone in this case.

My memory mapping is a good tool for debugging (last week work), I need now to investigate better. I can see that every table is putting around 1Mo in memory and to my opinion it is too much. Not normal at all.
There ins't any loop problem for sure, but for sure memory is filled with stupid things because regarding to entropy this is not normal.
I will extend your account period once fixed.
Coding is now a piece of cake
The administrator has disabled public write access.
The following user(s) said Thank You: Pantelis

Fatal Error - Allowed Memory Exhausted 25 Jun 2013 16:20 #7656

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
Fixed.

Please try again.
Coding is now a piece of cake
The administrator has disabled public write access.

Fatal Error - Allowed Memory Exhausted 25 Jun 2013 16:33 #7657

  • jhallock
  • jhallock's Avatar
  • Offline
  • Senior Member
  • Posts: 43
  • Thank you received: 1
  • Karma: 0
I am still getting: Allowed memory size of 62914560 bytes exhausted (tried to allocate 16175 bytes)

So it's really close - however I haven't setup the views for all of my tables.

I have 17 tables, I have views setup for 10 of them.
The administrator has disabled public write access.

Fatal Error - Allowed Memory Exhausted 25 Jun 2013 16:39 #7658

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
It is not possible because the limit is more than that now.
I tried your project (Chronos) and it passes.
Coding is now a piece of cake
The administrator has disabled public write access.
The following user(s) said Thank You: jhallock
Time to create page: 0.068 seconds

Get Started