Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Fri Jul 15, 2011 8:24 am 
Offline
Junior Member

Joined: Tue Jan 12, 2010 6:37 am
Posts: 33
What is the maximum value I can set in php.ini? I've noticed that I have a php.ini file on a per-site basis. My Linode is a 512 and I'm not sure if I can assign all 512MB? There's about a dozen sites running on my Linode.

Thanks


Top
   
 Post subject:
PostPosted: Fri Jul 15, 2011 8:41 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
As much as you like. However setting it to 512mb would mean a single php process could use all your ram and kill your server.

32mb is normally sufficient, some apps require 64mb and some really heavy image processors require up to 128mb

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
 Post subject:
PostPosted: Fri Jul 15, 2011 8:59 am 
Offline
Junior Member

Joined: Tue Jan 12, 2010 6:37 am
Posts: 33
Thanks for the info.

I'm running a script that parses the DOM of some large html pages and this gives memory errors at 128MB. I doubled it and it seems fine ...


Top
   
 Post subject:
PostPosted: Fri Jul 15, 2011 9:19 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
You doubled it to 256mb? You might want a bigger linode you won't be able to process many concurrent requests using that amount.

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
 Post subject:
PostPosted: Fri Jul 15, 2011 9:25 am 
Offline
Junior Member

Joined: Tue Jan 12, 2010 6:37 am
Posts: 33
What do you mean by concurrent requests exactly? It's a script that runs just for me, not a public site.


Top
   
 Post subject:
PostPosted: Fri Jul 15, 2011 9:39 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
For a script only you run then it probably wont matter, concurrent requests is requests processing at the same time, so I wouldn't run two of those scripts at once.

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
 Post subject:
PostPosted: Fri Jul 15, 2011 9:46 am 
Offline
Junior Member

Joined: Tue Jan 12, 2010 6:37 am
Posts: 33
Understood, thanks for your help.


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


Who is online

Users browsing this forum: No registered users and 1 guest


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