If you receive the message Allowed memory size of 123456789 bytes exhausted during Magento 2 compilation, you can try increasing the available memory by specifying -dmemory_limit=5G . The command might look like this:

Fixing Allowed memory size exhausted during compilation
Need help implementing this solution, or still looking for a fix to your Magento problem? Get in touch and I will be happy to help with your project.
Tags: