Solved

Should I increase my PHP memory limit?

Posted on 2011-03-12
4
317 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
  • 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Join & Write a Comment

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…
This article discusses four methods for overlaying images in a container on a web page
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

708 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now