<div dir="auto">Let me guess, you are using create/update API and the error arrises at arround 5k records.<div dir="auto"><br></div><div dir="auto">I think that the system fails at arround 5k, the reason is because they didn't think of bulk actions.</div><div dir="auto"><br></div><div dir="auto">Just today it took me almost 20 Min to create 3k records in orgs... With rest API using Pentaho data integration tool. I just think if the CRM could somehow batch the JSON accepting an array rather than an object this could be achieved. Of course this means effort in redesigning API.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il ven 5 feb 2021, 00:42 Rubén A. Estrada Orozco <<a href="mailto:rulotec1@gmail.com">rulotec1@gmail.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>I have a time interval workflow set to run every day at a specific time for the accounts module. The related action is to just update a field.</div><div><br></div><div>The accounts module currently has 33k records, which is not huge IMHO.</div><div><br></div><div>When running the vtigercron.php script, I get a memory exhausted error:</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>[CRON],"1612409402.1677",<a href="https://my_vtiger_instance.com/,Instance," target="_blank" rel="noreferrer">https://my_vtiger_instance.com/,Instance,</a>"2021-02-03 21:30:02","",[STARTS]</div><div>[CRON],"1612409402.1677",<a href="https://my_vtiger_instance/,Workflow," target="_blank" rel="noreferrer">https://my_vtiger_instance/,Workflow,</a>"2021-02-03 21:30:02","",[STARTS]</div><div>PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in /var/www/html/include/database/PearDatabase.php on line 181</div><div><br></div><div>Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in /var/www/html/include/database/PearDatabase.php on line 181</div></blockquote><div><br></div><div>My memory limit is 512M in config.inc.php</div><div><br></div><div>If I disable that workflow I don't get the error. So I'm certain it has to do with that particular workflow.</div><div><br></div><div>So the questions here are:</div><div><br></div><div>Is this a general problem with vtiger?</div><div>What are the known limitations for this kind of workflow?</div><div>Is it ok to increase the memory limit to say 1 GB?</div><div>any other tip or hint?</div><div><br clear="all"><div><div dir="ltr" data-smartmail="gmail_signature"><div dir="ltr">Saludos<div><br></div><div>Rubén</div></div></div></div></div></div>
_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer noreferrer" target="_blank">http://www.vtiger.com/</a></blockquote></div>