CSWeb PHP Out of Memory

Other discussions about CSPro
Post Reply
wesnich
Posts: 7
Joined: June 5th, 2019, 11:16 pm

CSWeb PHP Out of Memory

Post by wesnich » June 1st, 2020, 2:33 pm

I upgraded an instances to 7.4. The upgrade gave me a success message. When I try logging in I get an error find these in the server logs.

[Mon Jun 01 14:02:03.203862 2020] [php7:error] [pid 25277] [client 10.82.6.220:54147] PHP Fatal error: Allowed memory size of 2097152 bytes exhausted (tried to allocate 32768 bytes) in /websites/csprodemo/www/var/cache/prod/ContainerTcdq4l7/appProdProjectContainer.php on line 1228
[Mon Jun 01 14:24:18.923183 2020] [php7:error] [pid 25471] [client 10.15.9.155:46832] PHP Fatal error: Allowed memory size of 2097152 bytes exhausted (tried to allocate 20480 bytes) in /websites/csprodemo/www/vendor/aura/sql/src/ExtendedPdo.php on line 217

We changed our max memory setting from 512mb up to 2gb. It's still showing the same issue. Any ideas what the issue could be?

aaronw
Posts: 298
Joined: June 9th, 2016, 9:38 am
Location: Washington, DC

Re: CSWeb PHP Out of Memory

Post by aaronw » June 1st, 2020, 3:54 pm

First, make sure you are updating the correct php.ini:
https://stackoverflow.com/questions/868 ... nd-php-ini

Next, you need to restart apache for the changes to php.ini to take affect.

wesnich
Posts: 7
Joined: June 5th, 2019, 11:16 pm

Re: CSWeb PHP Out of Memory

Post by wesnich » June 2nd, 2020, 12:09 pm

I see the error in my log above. The memory limit was set to 2mb and not 2gb. We fixed that but still it eats up all the memory and fails when trying to sign in.

[Tue Jun 02 11:05:18.266378 2020] [php7:error] [pid 4872] [client 10.15.9.155:46766] PHP Fatal error: Allowed memory size of 2147483648 bytes exhausted (tried to allocate 20480 bytes) in /websites/csprodemo/www/vendor/aura/sql/src/ExtendedPdo.php on line 217

From the logs here is what the login is calling.
[02/Jun/2020:11:05:06 -0400] "GET / HTTP/1.1" 200 3684 "-"
[02/Jun/2020:11:05:06 -0400] "GET /bower_components/metisMenu/dist/metisMenu.min.css HTTP/1.1" 304
[02/Jun/2020:11:05:06 -0400] "GET /bower_components/bootstrap/dist/css/bootstrap.min.css HTTP/1.1" 304
[02/Jun/2020:11:05:06 -0400] "GET /dist/css/sb-admin-2.css HTTP/1.1" 304
[02/Jun/2020:11:05:06 -0400] "GET /bower_components/font-awesome/css/font-awesome.min.css HTTP/1.1" 304
[02/Jun/2020:11:05:06 -0400] "GET /bower_components/metisMenu/dist/metisMenu.min.js HTTP/1.1" 304
[02/Jun/2020:11:05:06 -0400] "GET /dist/js/sb-admin-2.js HTTP/1.1" 304
[02/Jun/2020:11:05:06 -0400] "GET /bower_components/jquery/dist/jquery.min.js HTTP/1.1" 304
[02/Jun/2020:11:05:06 -0400] "GET /bower_components/bootstrap/dist/js/bootstrap.min.js HTTP/1.1" 304
[02/Jun/2020:11:05:07 -0400] "POST /login_check HTTP/1.1" 200 3880

Any ideas on what the issue might be?

savy
Posts: 51
Joined: December 27th, 2012, 1:36 pm

Re: CSWeb PHP Out of Memory

Post by savy » June 2nd, 2020, 6:14 pm

Please delete the folders under csweb/var/cache and restart Apache and check if it resolves the issue.

wesnich
Posts: 7
Joined: June 5th, 2019, 11:16 pm

Re: CSWeb PHP Out of Memory

Post by wesnich » June 4th, 2020, 11:06 am

That worked! Thank you for your help.

Post Reply