Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: PHP memory error
PostPosted: Wed Feb 01, 2012 11:16 pm 
Offline
Newbie

Joined: Wed Feb 01, 2012 11:08 pm
Posts: 2
My site is off and all got was this message:



[Thu Feb 02 02:04:09 2012] [error] [client 66.249.72.210] PHP Fatal error: Allowed memory size of 262144 bytes exhausted (tried to allocate 261900 bytes) in Unknown on line 0

Some help will be very appreciated!

Thanks,
JRG


Top
   
 Post subject:
PostPosted: Wed Feb 01, 2012 11:50 pm 
Offline
Senior Member

Joined: Fri May 02, 2008 8:44 pm
Posts: 1121
[Forget what I wrote here before, I misread the numbers.]

Edit your php.ini and increase your memory limit. 256K is too low. Try 32M.


Top
   
 Post subject: PHP error message
PostPosted: Thu Feb 02, 2012 8:58 am 
Offline
Newbie

Joined: Wed Feb 01, 2012 11:08 pm
Posts: 2
We'll try your solution.
Thanks a lot.

_________________
JRG


Top
   
 Post subject:
PostPosted: Thu Feb 09, 2012 6:46 am 
Offline
Newbie

Joined: Thu Feb 09, 2012 6:39 am
Posts: 3
32M is too low...

128M...


Top
   
 Post subject:
PostPosted: Thu Feb 09, 2012 7:06 am 
Offline
Senior Newbie

Joined: Fri Apr 15, 2011 6:18 am
Posts: 8
john57 wrote:
32M is too low...

Based on what? You have no idea if 32M is too low or not without knowing what the application is doing.


Top
   
 Post subject:
PostPosted: Thu Feb 09, 2012 11:24 am 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
PHP's default is 128M, so PHP scripts (at least those written after the default was changed to 128M) will assume they have that much memory to play with. 32M is indeed too low in that only 128M is going to be enough for some random app that assumes it has at least as much RAM as the PHP default.

That said, I think I have mine set at 64M :P


Top
   
 Post subject:
PostPosted: Thu Feb 09, 2012 12:34 pm 
Offline
Senior Member

Joined: Wed Jul 21, 2010 8:04 pm
Posts: 119
It's all relative. Mine's set to 16M, and it hosts a real-time web app.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group