Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 19th February 2008, 07:42
domino domino is offline
Senior Member
 
Join Date: Aug 2005
Posts: 364
Thanks: 0
Thanked 9 Times in 8 Posts
Default PHP "Resource Limits" Abuse?

Hi all,

What implications are there if I raise PHP Resource Limits to something like:

Code:
max_execution_time = 180
memory_limit = 256M
This is a dedicated server with 2gig DDR and C2D proc. I have enough resources to change the limits to anything I want because there is only one site hosted on it.

I am running WordPress on it that errors (error log) asking to raise both execution time and memory every week or so. WordPress is using a customized template heavily interacting with MySQL.

I don't know when I should say enough is enough, and go with another web application or template. What would you guys do in my case?
__________________
Shuttle XPC | Intel 865g | P4 3.2Ghz | ATI 9800 Pro
Hosts: Ubuntu 6.10 ~ XGL-Beryl SVN-Gnome | OS X 10.4.8 | WindowsXP
Virtual Appliances: Ubuntu Server 6.10 | WindowsXP | CentOS 4.4
Reply With Quote
Sponsored Links
  #2  
Old 19th February 2008, 10:14
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 153 Times in 150 Posts
Default

That depends on your web traffic, but a php application using more that 128MB definitely should be in the trash can. Full webmail suits like horde only recommend 32MB for php.
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
  #3  
Old 19th February 2008, 11:59
domino domino is offline
Senior Member
 
Join Date: Aug 2005
Posts: 364
Thanks: 0
Thanked 9 Times in 8 Posts
 
Default

thanks for the reply topdog. I was arguing with the template developer about the resource requirements. WordPress isn't the culprit in this case. It's the template they are developing which calls MySQL and requiring too much resources. I up the resource limit, after a few days or a week, I get time execute or memory cap error message again.

I just need a general consensus on upping the limit that high.

Quote:
That depends on your web traffic
That's what concerns me. At this time, they are only developing the template and very little traffic from clients and customers. I still receive the error when they add data to the teplates. I'm assuming that when real traffic from real clients pours in, I'm going to have to up the limits again. The question is, at what point do I say enough?
__________________
Shuttle XPC | Intel 865g | P4 3.2Ghz | ATI 9800 Pro
Hosts: Ubuntu 6.10 ~ XGL-Beryl SVN-Gnome | OS X 10.4.8 | WindowsXP
Virtual Appliances: Ubuntu Server 6.10 | WindowsXP | CentOS 4.4

Last edited by domino; 19th February 2008 at 12:03.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Freebsd 6.1 support misterm Installation/Configuration 10 9th April 2009 09:29
php eating cpu shajazzi Server Operation 15 15th August 2007 01:19
Slightly Confused (DNS & Server Help) JohnnyBGoode Installation/Configuration 26 14th August 2007 09:54
Apache2 Freezes celtic Server Operation 31 28th May 2007 17:18


All times are GMT +2. The time now is 08:51.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.