Jump to content

Combinations - other memory limit settings?


Recommended Posts

Been playing with several settings and slightly annoyed I can get it right

 

I had 7000 combinations on the system last night and deleted the test store to start a fresh as I had played with it too much. Now the new fresh store will not let me make combinations pass 1000

 

There must be a setting somewhere that is kicking ....

 

memory_limit: 512mb on a 4gb ram VPS server

(and again to -1 thus removing memory limit)

max_execution_time: 180

max_input_time: 180

 

post_max_size: 20

upload_max_filesize: 20

 

config file

/* Debug only */

@ini_set('display_errors', 'on');

define('_PS_DEBUG_SQL_', true);

 

CSS optimised

Use Rijndael with mcrypt lib.

Using memcache

deactivated serverconfig for my IP address

 

tried several configurations to get this working again, all I get is a blank screen, are there other settings I should be looking at, the site is very fast it just wont load and I can not see any major bouncing in the memory usage from vsphere.

 

I am aware of http://www.presto-changeo.com/en/9-attribute-modules for which I have both standard and pro, I want to use the standard model

 

Secondly, how does one change the settings for the customisation field from a graphic to a standard file? I want to be able to attach any file to the order

Link to comment
Share on other sites

  • 1 month later...

Update: seems to be 'fixed' by setting memory limit to 512 (which does NOT make sense, that's waaayy to much for a single PS install)

 

 

PS 1.5.17, with about 15 multistores setup

 

Local server:

CPU : quadc , 2.40ghz

RAM: 4gig

 

Mem error so far only happens when using the product combinations

 

Before changing the memory limit to 512 (was already 256 which is also unreasonably much):

 

[Wed Oct 17 14:45:10 2012] [error] [client 192.168.1.70] PHP Fatal error:  Allowed memory size of 268435456 bytes exhausted (tried to allocate 125 bytes) in /var/www/HIDDEN/classes/db/Db.php on line 513, referer: http://HIDDEN/home/kassa/index.php?controller=adminproducts&id_product=62&updateproduct&token=ae428ca40e04b3049db2d239425aa06e
...
[Wed Oct 17 14:54:57 2012] [error] [client 192.168.1.70] PHP Fatal error:  Allowed memory size of 268435456 bytes exhausted (tried to allocate 40961 bytes) in /var/www/HIDDEN/tools/smarty/sysplugins/smarty_internal_templatebase.php on line 172, referer: http://HIDDEN/home/kassa/index.php?controller=adminproducts&id_product=44&updateproduct&token=ae428ca40e04b3049db2d239425aa06e

 

btw, did try with + without cache, same problem

Link to comment
Share on other sites

Prestashop does not handle more than 1,000-3,000 combinations very well.

You will get out of memory errors (as you saw), and the front end product page will take a long time to load, change attributes, as there is a massive calculation using Javascript of all the combinations (not to mention thousands of lines of JS code).

 

You can look into http://www.prestashop.com/forums/index.php?/topic/47363-module-attribute-wizard-pro-create-an-unlimited-number-of-attributes-and-display-as-radio-button-checkbox-dropdown-textbox-teaxtarea-files/ it should be supported for PS 1.5 in the next couple of weeks.

Link to comment
Share on other sites

×
×
  • Create New...