Solved

Should I increase my PHP memory limit?

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

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

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

Suggested Solutions

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
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…
The viewer will learn how to count occurrences of each item in an array.
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…

789 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