How to fix «mmap() failed: [12] Cannot allocate memory» on a Composer command?


I get this error when I run composer require mage2pro/stripe:*
mmap() failed: [12] Cannot allocate memory

mmap() failed: [12] Cannot allocate memory

Fatal error: Out of memory (allocated 848306176) (tried to allocate 20480 bytes) in phar:///usr/local/bin/composer.phar/src/Composer/DependencyResolver/Rule.php on line 60.
can you help?


I support only the paying customers.

ok. thats understandable. thanks

I just bought your stripe extension. I am having issue with installing via composer. It gives memory limit errors.
The current memory for my hosting account is 718mb.
I am unable to create a swap file because my hosting company wont allow. I will like to install it myself.
Order email add:
Can you help?


Thanks for the purchase!
You are using Magento 2.2:
The official memory requirement for Magento 2.2 is 2GB:

Upgrading the Magento applications and extensions you obtain from Magento Marketplaces and other sources can require up to 2GB of RAM. If you are using a system with less than 2GB of RAM, we recommend you create a swap file; otherwise, your upgrade might fail.

So you just need to implement the official Magento system requirements.

Is a manual install not possible?

The official installation instruction is publicly available here: How to install a Mage2.PRO extension.

Wow thats a very cold answer. Its obvious now that i cannot install via composer as the memory issue persists.
Please issue a refund.

You can fill a claim to PayPal and try to convince them of that your violation the official Magento 2.2 system requirements and the official Mage2.PRO installation instruction is a my fault.

I google searched “mmap() failed: [12] Cannot allocate memory” and I came across this thread.

I read through them, and oh man. What a terrible customer service by Dmitry Fedyuk

I made an account just to write that Dmitry Fedyuk’s response to his customers was awful and I would look somewhere else for business.

I encourage others to do the same.


OK, you made it, then just fuck off.

Wow, why would anybody buy this with customer service like that!

1 Like

It is because they have money unlike you:

Disgusting Customer Service.

Hopefully you’ve since gone bankrupt.

1 Like

OK, the next gratuitous financial advisor is banned. Hopefully your ass is spacious enough to put all your predictions inside.
As usual, gratuitous financial advisors have a lot of time to make financial predictions on forums, but do not have $100 for a license.

Haha! Wow, we should be impressed. You’ve got one whole enterprise customer there! Keep up the great work, I’m sure you’ll eventually find some more suckers.

1 Like