What are the Slack Archives?
Itβs a history of our time together in the Slack Community! Thereβs a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.
Because this space is not active, you wonβt be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..
Hello community, in which container do I need to increase PHP's memory limit to avoid getting this k
Hello community,
in which container do I need to increase PHP's memory limit to avoid getting this kind of error:
PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 20480 bytes) in /data/vendor/spryker/util-encoding/src/Spryker/Service/UtilEncoding/Model/Json.php on line 55 Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 20480 bytes) in /data/vendor/spryker/util-encoding/src/Spryker/Service/UtilEncoding/Model/Json.php on line 55 ErrorException - Exception: FATAL ERROR - Allowed memory size of 1073741824 bytes exhausted (tried to allocate 20480 bytes) in /data/vendor/spryker/util-encoding/src/Spryker/Service/UtilEncoding/Model/Json.php (55) Command: /data/vendor/bin/console queue:task:start sync.storage.product Trace: #0 /data/vendor/spryker/error-handler/src/Spryker/Shared/ErrorHandler/ErrorHandlerEnvironment.php(99): Spryker\Shared\ErrorHandler\ErrorHandler->handleFatal() #1 [internal function]: Spryker\Shared\ErrorHandler\ErrorHandlerEnvironment->Spryker\Shared\ErrorHandler\{closure}() #2 {main}
when executing the following command: docker/sdk console queue:task:start sync.storage.product
or maybe someone can tell what should I add in config_local.php to decrease the number off messages loaded from the sync.storage.product
queue
Comments
-
I have changed the memory limit in
spryker_b2b_dev_zed_us_1
andspryker_b2b_dev_zed_eu_1
, restarted the containers but the error is still there0 -
giovanni.piemontese Technical Lead @ LΓΆffelhardt Spryker Solution Partner Posts: 871 π§π»βπ - Cadet
Hi Vlad, the error come during data import maybe?
0 -
The error was returned while the Scheduler was suspended and I was trying to execute
docker/sdk console queue:task:start sync.storage.product
0 -
giovanni.piemontese Technical Lead @ LΓΆffelhardt Spryker Solution Partner Posts: 871 π§π»βπ - Cadet
Ok, sometimes it happend when to much expcetion are thrown and php go quickly out of memory.. Have u checked your exception log during sync storage?
0 -
in exception log I could find only this error
0 -
I know it is a memory limit issue, do you know in which container should I increase the memory limit ? or how to decrease the number of messages read from the
sync.storage.product
queue ?0 -
how much memory have you given to your docker?
0 -
Allowed memory size of 1073741824 bytes exhausted
0 -
This is too little, I would say
0 -
Usually we recommend to have at least 4 GB
0 -
I put it to 8 since Iβm running multiple envs at the same time
0 -
I am on Linux, I don't need to increase Dockers resources, I need to increase the ram limit inside one of the containers
0 -
okay, makes sense then
0 -
or decrease the number of messages read from the
sync.storage.product
queue0 -
found the solution, I had to add in config_local.php the following lines:
0 -
the default value was 10k
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 74 Spryker News
- 911 Developer Corner
- 771 Spryker Development
- 87 Spryker Dev Environment
- 361 Spryker Releases
- 3 Oryx frontend framework
- 34 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 25 Job Opportunities
- 3.2K π Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 69 Spryker Safari Questions
- 50 Random