Solved

Should I increase my PHP memory limit?

Posted on 2011-03-12
4
326 Views
Last Modified: 2012-06-22
I'm currently on a VPS with 2 gigs of ram.  I was wondering since I'm running 2 different forums on it.  1 vbulletin and one IPB, should I increase the memory limit of my PHP from 128 to higher?  I didn't know if the current amount was sufficient.  Also if I should increase, what should I increase to?
0
Comment
Question by:N R
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 36

Expert Comment

by:Loganathan Natarajan
ID: 35120124
If you are wondering about the memory limit issue, You can directly increase the PHP Memory Limit if you’ve access to the PHP.ini file on your server .. find the command,   memory_limit = 125M  
to change whatever

0
 
LVL 11

Author Comment

by:N R
ID: 35120128
It's currently set to 128mb.  But I'm wondering should it be more?
0
 
LVL 2

Accepted Solution

by:
sihar86 earned 500 total points
ID: 35120399
From http://php.net/manual/en/ini.core.php
memory limit is sets the maximum amount of memory in bytes that a script is allowed to allocate.
A script not all script, so I think 128 MB is too big for a script in forum.
except one of your script consist of heavy data processing.

My suggestion, maybe in apache there is some settings
to determine how much process can handled by apache concurrently.
Coz in forum usually there are many user that login in concurrent time
0
 
LVL 11

Author Comment

by:N R
ID: 35123206
Ah, ok makes sense then.  Well invision boards require 128mb by default on install, so I'll just leave at that for now.  I just didn't know how to monitor for performance issues then?
0

Featured Post

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to count occurrences of each item in an array.

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question