Solved

Should I increase my PHP memory limit?

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

These days socially coordinated efforts have turned into a critical requirement for enterprises.
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to dynamically set the form action using jQuery.

695 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