How to blow memory allocation

tmccormi wrote on Thursday, May 17, 2012:

Here’s a little thing we discovered. 

If you are converting balance forward records from a previous system, don’t arbitrarily put them all on the same “date of service” in the form_encounter file.   15,000 records with the same date causes a memory allocation fatal crash in billing_report.php

Just thought I’d share that bit of joy I’ve been experiencing today …

Tony
www.mi-squared.com / @tonymi2
oemr.org / @OEMR_org

rnagul wrote on Thursday, March 07, 2013:

Tony, Did you ever figure out a solution for this?

Ramesh

yehster wrote on Thursday, March 07, 2013:

https://github.com/openemr/openemr/blob/master/interface/globals.php#L10

One of the issues we’ve discovered is that OpenEMR overrides the PHP.ini settings for memory limit.  Not sure what the thinking was, it has been this way since 2008.

yehster wrote on Thursday, March 07, 2013:

The default is now 128M BTW.

http://php.net/manual/en/ini.core.php

tmccormi wrote on Friday, March 08, 2013:

That globals overide should be removed entirely.
-Tony

bradymiller wrote on Friday, March 08, 2013:

Hi,

Kind of funny that we also recommend 128M here:
http://www.open-emr.org/wiki/index.php/FAQ#What_are_the_correct_PHP_settings_.28can_be_found_in_the_php.ini_file.29_.3F

But then hard-code it to 64M in interface/globals.php…
Agree with Tony to remove it entirely.

-brady
OpenEMR

bradymiller wrote on Saturday, March 09, 2013:

Hi,

I just committed this to sourceforge (removed the overiide for php memory limit in interface/globals.php)

-brady
OpenEMR