AppPlatform "Assuming 512MB of RAM" even on Pro instance

I’m running an nginx-php stack on AppPlatform (for WordPress). The runtime log always says “Assuming 512MB of RAM” even though I’m using Pro instance with 1GB RAM. Is there anyway to force that number?

[2021-11-20 09:05:40] Using Nginx configuration file 'nginx/nginx_prod.conf'
[2021-11-20 09:05:40] Assuming 512MB of RAM
[2021-11-20 09:05:40] $WEB_CONCURRENCY env var is set, skipping automatic calculation
[2021-11-20 09:05:40] Starting php-fpm with 4 workers...
[2021-11-20 09:05:41] Starting nginx...
[2021-11-20 09:05:41] Application ready for connections on port 8080.

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hey there!

The amount of RAM provided to PHP by default is dependent on the RAM specified in the plan and will not use the full amount available by default. To change that you can set a .user.ini file in the same location as the php files you are serving. In that file you can specify the php_memory_limit to a value that you need. We’d recommend not using the full amount provided in the plan size to be sure your other processes have sufficient resources.

PHP memory App Platform

Hope it helps! Nate