<div dir="ltr">Hi everyone,<div><br></div><div>So I have a script that does something like this:</div><div><br></div><div><div><img src="cid:ii_kglonuwr0" alt="image.png" style="margin-right: 25px;"><br></div></div><div><div>It gets data from an sql server database and updates accounts' fields in vtiger.</div><div>It's a greatly simplified version, but the essence is that of the above code.</div><div><br></div><div>I execute if from the command line. But after some time, I get an "Allowed memory size of 92274688 bytes exhausted"</div><div>In this example I use only 5000 records instead of the actual ~32k I need to update. And I lowered PHP's memory_limit to 88MB from 1GB to be able to get to the error quickly.</div><div><br></div><div>What you can see in the following screenshots is that memory usage keeps increasing until all available memory is exhausted. Why would that happen? I thought it should remain  constant. It's as if PearDatabase was eating up the memory.</div><div><br></div><div><div><img src="cid:ii_kglosu1z1" alt="image.png" width="562" height="331"><br></div></div><div><br></div><div><div><img src="cid:ii_kglouw9d2" alt="image.png" width="562" height="230"><br></div></div><div><br></div><div>This is supposed to run a few times a day and it needs to be efficient.</div><div><br></div><div>Any thoughts?</div><div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Saludos<div><br></div><div>Rubén</div></div></div></div></div></div></div>