User Tools

Site Tools


tutorials:memory_errors:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
tutorials:memory_errors:start [2012/02/07 00:14]
james
tutorials:memory_errors:start [2015/06/02 14:30] (current)
geojames [What Memory Limit Should Be]
Line 40: Line 40:
 ===== What Memory Limit Should Be ===== ===== What Memory Limit Should Be =====
  
-As far as what memory limit you should have there is no telling.  We've seen our software work well in the default 8MB value that comes default.  But most servers this is not sufficient.  Almost ALL memory limit problems happen when uploading images.  On some servers we have seen the 64MB is the first value that doesn't cause any problems when uploading images.  Our first suggestion is 16MB then 32MB then 48MB and finally 64MB.  But note that even at 64MB you can exceed the memory limit when certain images are uploaded Keep increasing the value until you no longer see the error when uploading images.+As far as what memory limit you should have there is no telling.  We've seen our software work well in some default 32M configurations.  But for most servers this is not sufficient.  Almost ALL memory limit problems happen when uploading images.  Our first suggestion is 72M or above.  At those values we've seen almost no reports of issues.  If you see memory limit issues above 72M (128M or 256M) this should be reported to support for a possible closer examination  Keep increasing the value until you no longer see the error when uploading images.
  
-Also note that if your server is a **64-bit server**, it will need more memory than an almost identical 32-bit server, as 64-bit servers have a larger memory footprint than 32-bit servers, that is just how the hardware works.  On 64-bit servers you will need to set the memory limit significantly higher, we've seen some sites need as high as 128MB or even 256MB where the 32-bit counterpart might have only needed 64MB. 
  
 ===== How and Where to Change the Memory Limit ===== ===== How and Where to Change the Memory Limit =====
  
-The memory limit is a PHP environment variable set within the **php.ini** file.  The php.ini file provides all of the configuration information PHP needs at start up.  Many hosts allow you the ability to edit the php.ini file directly.  Other hosts allow you to override some or all of the server wide php.ini values by inserting a php.ini file with the override values in your working directories.  Still other hosts want complete control of this file and any changes to that file requires them to make those changes.  As to which of the above situations happens with your host you will need to contact them to have the value changed.+The memory limit is a PHP environment variable set within the **php.ini** file.  The php.ini file provides all of the configuration information PHP needs at start up.  Many hosts allow you the ability to edit the php.ini file directly.  Other hosts allow you to override some or all of the server wide php.ini values by inserting a php.ini file with the override values in your working directories.  Still other hosts want complete control of this file and any changes to that file requires them to make those changes.  As to which of the above situations happens with your host you will need to **contact the host** to have the value changed
 + 
 +Changing the php.ini file is **not something Geo support can do**, it is essentially a **server setting** and therefore you need to **contact your host** if you are not sure how to change it.
tutorials/memory_errors/start.1328573655.txt.gz · Last modified: 2014/09/25 16:55 (external edit)