php memory allowed size?

Status
Not open for further replies.

jchiu

New Member
Messages
32
Reaction score
0
Points
0
I am keep getting this
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 491520 bytes) in /home/jchiu/public_html/floforum/includes/utf/data/confusables.php on line 1

It's weird that the size I tried to allocate is less than the allowed memory. Why am I getting this error? Can you please look into this.

Thank you.

PS: I did not add any new files or modify any setting. All the files and settings were the same before the server move and everything works fine back then. Thank you.

BTW, Cpanel username: jchiu
askmytutor.x10hosting.com

If this is related to php upload max size... (I am only uploading 0.3 megs of jpg file ..one file..only to my phpbb forum)
Thanks
 

Livewire

Abuse Compliance Officer
Staff member
Messages
18,169
Reaction score
216
Points
63
The issue is you've already exceeded the maximum memory allowed when it went to allocate more - that's why it's kicking back a fatal error.

When it said tried to allocate 491520 bytes, that's the memory call that actually put it over the maximum memory - it's already gotten most of the maximum 33554432 bytes occupied somewhere else in the script already.



What I'M confused on is why exactly you're exceeding 32mb of ram used in one shot - that just seems really huge for a single script to be hitting in any case.
 

Smith6612

I ate all of the x10Pizza
Community Support
Messages
6,517
Reaction score
48
Points
48
The issue is you've already exceeded the maximum memory allowed when it went to allocate more - that's why it's kicking back a fatal error.

When it said tried to allocate 491520 bytes, that's the memory call that actually put it over the maximum memory - it's already gotten most of the maximum 33554432 bytes occupied somewhere else in the script already.



What I'M confused on is why exactly you're exceeding 32mb of ram used in one shot - that just seems really huge for a single script to be hitting in any case.

Infinite loop maybe? :biggrin:

To the OP: It sounds like your script is bugged. I'd check the coding of it to see what is going on. Uploading scripts should be using under a megabyte! Also the last I checked, the largest PHP upload you can do with x10Hosting is 2 megabytes. I'm not sure if this has changed or not, but I could check.
 
Last edited:

garrettroyce

Community Support
Community Support
Messages
5,609
Reaction score
250
Points
63
This happened to me recently. Turns out I was calling my error reporting class from my database class. But, the error reporter was trying to call the database class to log the error. Infinite loop, as Smith6612 pointed out :)
 
Status
Not open for further replies.
Top