Quantcast
Channel: Installing and upgrading help
Viewing all articles
Browse latest Browse all 47502

php Fatal Errors, memory exhaustion, limit 512mb

$
0
0
by Paul L.  

Started seeing more fatal errors (see below) regarding memory exhausted after recently upgrading moodle and php. Currently using php memory_limit of 512mb which I thought was on the high end.

We are at a slow time of the year so I am was concerned this may become a larger issue in the fall when the load is 5-10x more. We also have a number of courses >1GB.

Our environment is windows2008/IIS7.5/php7.1 64bit and similar separate server with mysql, which is also used for sessions. We recently upgraded from php5.6->7.1 and moodle 3.1->3.3

The error logs mention  session\manager.php and session\database.php so I thought it might be related to sessions, which I get the impression Moodle suggests using redis > disk > database .

Would anyone recommend switching sessions storage to File or just making the memory_limit larger first? Is there any potential downside of raising this memory limit value to 1G? Any downside to using File over Database for session storage?

Thanks

====fatal php errors======

PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in \cache\stores\static\lib.php on

PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in \cache\stores\static\lib.php on line 261
PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 40960 bytes) in \lib\classes\session\manager.php on line 530
PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 28672 bytes) in \lib\classes\session\database.php on line

Cannot find session record pbs503lloa7c9gbrbfst2lcivd for user 4494, creating new session.

PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 262144 bytes) in \m23\lib\classes\component.php on line 1040
Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 262144 bytes) in Unknown on line 0

PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in \cache\stores\static\lib.php on line 261
PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 40960 bytes) in \lib\classes\session\manager.php on line 530
PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 28672 bytes) in \lib\classes\session\database.php on line



Viewing all articles
Browse latest Browse all 47502

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>