Question

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

Posted November 20, 2021 61 views
NginxPHP

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.

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.

×
Submit an Answer
1 answer

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 phpmemorylimit 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