How to adjust Php Woker Settings on App Platform ( Worker) ( memory_limit) ?

Im Setting up a Laravel on App Platform. I use horizon (with redis) for the Queue. And two dedicated Worker ( from App Platform) to run horizon and the scheduler. Everything is running and working as expected. The only issue that i have is that i dont find a way to change memory_limit for my php worker. The worker is using the same repo and ignores the user.ini in public folder which works for the Laravel App. My app is importing huge Data in long running Jobs. I already Chunked the jobs but im every time running in timeouts or memory issues. Someone went trough this already or can give me hints how to adjust the memory_limit and other php settings?

Submit an answer

This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer

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.

Hi @chhaaks,

I’ll strongly urge you to check the following question asked in the community:

To summarize it, you’ll need to put your .user.ini in your public folder with your other .PHP files and it should work as expected.

Hi @KFSys,

thanks for your answer. The worker itself is currently setup using 2G of memory. Unfortunately the php-memory limit is still at 128mb. How can i change these variables ? (memory_limit / max_execution_time / etc.)

Thanks :)

Hi @chhaaks,

I’ll recommend going over the documentation, it can be really helpful.

Go to, click on your app, and click on the Settings tab. Click the Worker you’d like to edit.

You can use the configuration settings you see here to change the Worker’s scaling behavior, modify environment variables, edit commands, and more.

Scaling is the process of adding more capacity to a component in your app. There are two kinds of scaling in App Platform:

  • Horizontal scaling adds more containers, which will be load-balanced.

  • Vertical scaling increases the amount of CPU and memory allocated to each container instance.

You can control how each component in an app scales. This configuration is available both in the app spec and in the control panel.