Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Memory Limit Rate Topic   - - - - -

 
  • fuoritempo
  • Member
  • Trial users
  • Join Date: 18-Apr 18
  • 42 posts

Posted 29 May 2018 - 03:25 PM #21

Hi guys, I took a vps with 2 CPU and 4GB of ram I use with cpanel, how much ram do I have to allocate to mysql?
 
A thank you


 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 11174 posts

Posted 29 May 2018 - 05:57 PM #22

My production server memory is getting exhausted even after setting memory limit to 1 GB. What could be wrong?

 

What @Tool said.  Also, is this happening in admin (backend) or frontend?  For frontend, I'd be very concerned.  For backend it might be common if you're doing import/export or backup/restore.  Note that there is no problem with increasing the memory_limit value.  It is a 'limit' not an 'allocation'.  So PHP will use memory it needs up until it reaches that point.  Then it will kill itself.  If it's only in the backend and the usage seems reasonable for the task at hand then you can setup your config.local.php similar to:

if( AREA == 'A' )
  ini_set('memory_limit', '2048M'):
else
  ini_set('memory_limit', '512M');

EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.