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..
Hey guys, do you know how to enlarge the usable memory for a single data import console command? `d
Hey guys,
do you know how to enlarge the usable memory for a single data import console command?
docker/sdk console data:import:my-stuff
I get the following error processing a quite large dataset:
PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted
Comments
-
Hello Michael, you could increase the global memory limit in your deploy.*.yml like in this screenshot.
0 -
I've seen that, but is there any chance to enlarge it only for this command (One time import)
0 -
If you can start the import manually you can switch to
docker/sdk cli
and then tryphp -d memory_limit=4096M vendor/bin/console data:import:my-stuff
0 -
or try
docker/sdk cli php -d memory_limit=4096M vendor/bin/console data:import:my-stuff
0 -
Worked like a charm! Thanks!
0 -
Another option would be to fix the exhaustive memory usage.
Wild guess, you did not disabled the propel instance pooling, which means every entity loaded during the process run is kept in memory.Propel::disableInstancePooling();
at the beginning of your import will solve this issue.
Downside is a slight increase of the runtime0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 69 Spryker News
- 894 Developer Corner
- 757 Spryker Development
- 83 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
- 22 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
- 68 Spryker Safari Questions
- 50 Random